Articles

PowerShell articles, tutorials, and guides from community experts.

pscookiemonster
PowerShell for Admins

Finding Evil LDAP Queries

Have you ever wondered what LDAP queries were hitting your domain controllers? Even outside of fun investigations, it can be insightful to get a sampling of queries hitting your domain controller. The more services you have integrated with Active Directory, the more likely a vendor or sysadmin …

Don Jones
Scripting Games

2015-October Scripting Games Puzzle

Our October 2015 puzzle might take us beyond the realm of one-liners, but it circles back to the August 2015 theme of retrieving information from the web. This is another scenario that actually has a lot of real-world applications, in that there’s a lot of practical uses in the work …

David Jones
Tools

Convert ISO and WIM to VHD with a module

Convert-WindowsImage.ps1 is a very popular method to create VHD’s with. However it’s not a module, and in it’s current form cant be added to one. So I have started a new project on GitHub called WindowsImageTools and posted the results to the PowerShell Gallery. It has a few …

Stephen Owen
PowerShell for Admins

How to handle oAuth from PowerShell

One of the coolest features of PowerShell is the many tools we have available to work with services on the web, be they SOAP, REST, RPC or even WSDL services. It’s no question, PowerShell makes it very easy to pull down data from any of these places. Unfortunately, getting data from a service …

Mike Roberts
PowerShell for Admins

PowerShell Scheduled Jobs and Tableau analytics

Here’s a brief rundown of how we leverage a few Cmdlets from the PSScheduledJob module to manage our Analytics stack. For those of us on the Analytics team at Pluralsight , PowerShell is the lynch-pin which binds our two worlds together. To manage the gaps inherent in all platforms (since one tool …

Jonas Sommer Nielsen
PowerShell for Admins

Take home from PowerShell Summit Europe

WOOHA it’s been a great week. I sat down last night my brain all fried and tried to compile a list of things to remember from the past week. There is much focus on “changing the mindset” of the community. Get into the DevOps mindset and become a toolmakers. This is my take-home …

Matt Laird
PowerShell for Admins

Store Secured Password in PowerShell Script

Automation is awesome, but what if you need to run a script with elevated privileges? If you are following security best practices then the account you login with most likely doesn’t have the required elevated privileges. Storing your password in plain text in your scripts is no good either. …