Articles

PowerShell articles, tutorials, and guides from community experts.

Richard Siddaway

Select-String confusion

I have seen a lot of confusion recently over the use of Select-String. One mis-conception is that you need to use Get-Content to pipe the file contents into Select-String. Not so. Select-String will read the file for you. If you just want to scan the files in a single folder to find a specific …

Richard Siddaway

Number of processors in a box

WMI enables you find the number of processors in your system: PS> Get-WmiObject -Class Win32_ComputerSystem | fl Number* NumberOfLogicalProcessors : 2 NumberOfProcessors : 1 This works fine for Windows Vista/Windows 2008 and above. Earlier versions of Windows mis-report the number of processors …

Don Jones
PowerShell for Admins

Writing 10961: Trademarks

Microsoft’s a big company, and that makes it a big target for lawsuits. We all know that. But what doesn’t always sink in is how careful the company has to be. For example, in Microsoft Official Curriculum course 10961, Automating Administration with Windows PowerShell 3.0, I have to …