Articles

PowerShell articles, tutorials, and guides from community experts.

Don Jones
Training

Calling all PowerShell Teachers/Trainers

I’m in the process of building a referral list for teachers and trainers who work with Windows PowerShell. My goal is to build a “find a trainer” page here on PowerShell.org, with the ability for prospective clients to send an inquiry via email. This would be for customers seeking …

Don Jones

PowerShell Great Debate: Credentials

Credentials suck. You obviously don’t want to hardcode domain credentials into a script - and PowerShell actually makes it a bit difficult to do so, for good reason. On the other hand, you sometimes need a script to do something using alternate credentials, and you don’t necessarily want …

Don Jones
Announcements

TechSessions: Free PowerShell Webinars

PowerShell.org is going to be launching TechSessions this Fall. These will be ~1 hour online webinars, which you’re welcome to attend live. We’ll also record them and make the recordings available. In most cases you will need to register for each one, so that we can send the appropriate …

Don Jones
PowerShell Summit

PowerShell Summit City Selection Criteria

As you may know, we’re in the process of putting together a PowerShell Summit Europe for Fall 2014. It’s a big task, with a lot of financial risks, so we try to get it right. Folks have been helpful on Twitter in offering city selection ideas… but there’s a bit more involved …

Don Jones

PowerShell Great Debate: Piping in a Script

Take a look at this: `# version 1 Get-Content computers.txt | ForEach-Object { $os = Get-WmiObject Win32_OperatingSystem -comp $_ $bios = Get-WmiObject Win32_BIOS -comp $_ $props = @{computername=$_; osversion=$os.version; biosserial=$bios.serialnumber} New-Object PSObject -Prop $props } version 2 …

Boe Prox
PowerShell for Admins

Working with the WSUS API and the SUSDB Database using PowerShell

Tthe WSUS API can be used to perform a multitude of WSUS tasks from approving patches, removing clients to creating automatic approval rules to many other things. By diving deeper into the API reveals that we can also find out the name of the SQL server (if using a remote SQL database server) that …

Don Jones
Announcements

PowerShell Summit… EUROPE?!?!?

I have received a lot of interest in a PowerShell Summit Europe, and we are starting to look at doing one in 2014. I know that’s a long way off, but it takes time to put these together when everyone’s volunteering that time! I have put together a very short survey to see if there is any …

Don Jones

PowerShell Great Debate: Backticks

Here’s an age-old debate that we can finally, perhaps, put an end to: The backtick character for line continuation. The basic concept looks like this: Get-WmiObject -Class Win32_BIOS -ComputerName whatever -Filter "something='else'"This trick relies on the fact that the backtick …