Scripting Blog

A place to learn about PowerShell and share stories of automation

PowerTip: Use a .NET Framework Class in PowerShell to Get User Info

Summary: Use a .NET Framework class in Windows PowerShell to get user name and domain name information.  How can I use a .NET Framework class in Windows PowerShell to get a user name and domain in the format userdomain\username, without building a string?  Use the Name property from the GetCurrent static method of...

PowerTip: Audit Special Privilege Use with PowerShell

Summary: Learn how to audit special privilege use with Windows PowerShell. How can I easily find information about auditing special privileges that are assigned to various logon IDs if I am running Windows 8 and Windows Server 2012? Start Windows PowerShell with Admin rights. Use the Get-EventLog cmdlet to query the security event ...

Use PowerShell and Regular Expressions to Search Binary Data

Summary: Guest blogger and pioneer of the PowerSploit module talks about using Windows PowerShell and regular expressions to search binary data. Microsoft Scripting Guy, Ed Wilson, is here. Today we kick off a four-part Windows PowerShell and security series with a new guest blogger, Matt Graeber. The Scripting Wife and I had the privilege of ...