Command equivalent Sed in powershell ! please


hello everyone,

make shell script extract figure on.

here's example seek figure:

s-1-5-21-2266954777-2911002515-1883294743

result:

ps c: \ users \ hackmed \ searches \ pictures \ documents \ script> whoami /  user information ------------------------  username sid ================== ================================ ============== hackmed-pc \ hackmed s-1-5-21-2266954777-2911002515-1883294743-1000  thank you



thank you


hi habiba,

try then:

$user = new-object system.security.principal.ntaccount("$env:userdomain\$env:username") $sid = $user.translate([system.security.principal.securityidentifier]) $sid.accountdomainsid.tostring()

cheers,
fred


there's no place 127.0.0.1



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

2008 Windows Deployment Server Properties Error

Can no longer user MS Update - Files required to use Microsoft Update are no longer registered

How do a find data in one file, search for it in another file and if not found, write a custom message to another file