Showing results for December 2008 - Page 3 of 3 - PowerShell Team

Dec 2, 2008
0
0

Get-Me.ps1

PowerShell Team
PowerShell Team

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]::GetCurrent() ...

Dec 2, 2008
0
0

Apologizes for the Confusion

PowerShell Team
PowerShell Team

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/default.asp...

Dec 2, 2008
0
0

Get-Everyone

PowerShell Team
PowerShell Team

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 # Gets...

Get-Everyone