PowerShell Team

Automating the world one-liner at a time…

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 # Get-Me.ps1 [Security.Principal.WindowsIdentity]::...

Apologizes for the Confusion

If you visited our blog yesterday and were driven to go get a basket of "Freedom Fries" - you can relax.If you visited our blog yesterday and thought we were trying to get some class - I'm sorry to say that that is not the case.  The good news is that there is a new PowerShell blog in French at http://blogs.technet.com/powershell/...

Get-Everyone

Jeffery Snover just posted a Get-Me script.  The Get-Me script finds out the principal of the user running PowerShell.  In case you ever wanted to know how to get all of the users on a machine (or from a domain), here's a quick function that queries WMI for users. function Get-Everyone([switch]$fromDomain) { #.Synopsis...