Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Get-Me   (RSS)
Sorry, but there are no more tags available to filter with.

Get-Me.ps1

On an internal mailing list someone asked how to get the SID for the current context using PowerShell. Chris Bellée correctly responded: ([Security.Principal.WindowsIdentity]::GetCurrent()).user.accountdomainsid.value I used this to create a script: Get-Me.ps1
Posted by PowerShellTeam | 3 Comments
Filed under:
 
Page view tracker