Getting volume data with PowerShell

It has always irritated me that I cannot export data from the disk management snap-in in Windows. Take this example from an Exchange server: It would be very nice to be able to export this data to a CSV to create a quick storage report. Unfortunately you can’t. But with PowerShell you can! This command …

Enabling Windows Search on Windows Server 2008 R2

As with Windows Server 2008, Windows Search is included as part of the OS and can be installed through Server Manager or PowerShell. Unfortunately it is located in a not quite intuitive place… To enable Windows Search on Windows Server 2008 R2 you must start the Add Roles wizard and then select File Services Role, …

Group Policy WMI filters

WMI filters are useful to further filter Group Policy Objects (GPOs), beyond what is possible/convenient with groups. Distinguish between x86 and x64 computers: x86 Select AddressWidth from Win32_Processor where (AddressWidth=”32″) x64 Select AddressWidth from Win32_Processor where (AddressWidth=”64″) Determine Windows version: Use this filter to determine the Windows version and role: select * from Win32_OperatingSystem where …