WMI (Windows Management Instrumentation) is part of any Windows operating system and a common and widely used way of getting information about a...
posts-powershell
Converting Word Documents from .doc to .docx (Part 2)
Converting old Word documents to the new .docx format can be a lot of work, and in part 1 you learned the basic steps to automate conversion....
Converting Word Documents from .doc to .docx (Part 1)
Converting old Word documents to the new .docx format can be a lot of work. Thanks to PowerShell, you can automate the conversion: function...
Exploring PowerShell Modules
Most PowerShell commands live in modules, and by adding new modules, you can add new commands to your PowerShell environment. To find out whether a...
WMI Explorer
WMI (Windows Management Instrumentation) is a great information source: you can find almost any information about your computer somewhere. The hard...
Turning Objects into Hash Tables
Often, a single object needs to be examined, i.e. a process or an Active Directory user. When you display an object in a grid view window such as...
Object Magic (Part 4)
How about turning a single object into a hash table? This way, you can display one object property per line when you output the object in a grid...
Object Magic (Part 3)
Let’s assume you want to hide all object properties that have no value (are empty). Here is a simple approach: # get any object $object =...
Object Magic (Part 2)
Via the secret “PSObject” property, you can get detailed information about object members. For example, if you’d like to know...
Object Magic (Part 1)
In PowerShell, most data are represented as PSObjects, a specific object “wrapper” added by PowerShell. To get to this specific wrapper,...
Encrypting Text (Part 2)
This is the second part of our text encryption/decryption series. In the first part you learned how you can safely encrypt text on a machine. Now...
Encrypting Text (Part 1)
Let’s take a look at a safe way of encrypting text on a computer. The below Protect-Text function takes any text and encrypts it...