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
Post a Comment