Showing archive results for 2014

Oct 10, 2014
Post comments count0
Post likes count0

Use PowerShell to Identify When Hotfixes Are Installed

Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to list when hotfixes are installed.  Hey, Scripting Guy! Our corporate security person has tasked my manager with finding out about the number of hotfixes released by Microsoft each month. My manager, of course, passed the buck to me. I think I could probably fi...

Scripting Guy!Windows PowerShelloperating system
Oct 9, 2014
Post comments count0
Post likes count0

PowerTip: Empty Hash Table with PowerShell

Doctor Scripto

Summary: Learn how to easily empty a hash table by using Windows PowerShell.  I want to write new values to a hash table, and I want to ensure that it contains none of the original keys or values.            How can I accomplish this task without deleting and re-creating the hash table?  Use the Clear&nb...

Scripting Guy!Windows PowerShellPowerTip
Oct 9, 2014
Post comments count0
Post likes count0

Convert a Script to a PowerShell Function

Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, talks about converting a script to a Windows PowerShell function. Microsoft Scripting Guy, Ed Wilson, is here. When I have a script that I think I will use more than once or twice, it often makes sense for me to convert it to a function. If it is something I will use on a regular basis, I might add th...

Scripting Guy!Windows PowerShellscripting techniques
Oct 8, 2014
Post comments count0
Post likes count0

PowerTip: Use PowerShell to Find Information about Object Properties

Doctor Scripto

Summary: Learn how to use Windows PowerShell to find information about object properties.  How can I use Windows PowerShell to look at information about the properties of an object stored in a variable?  Use the PSObject property, and look at the Properties collection, for example: $a = @{} $a.psobject.properties

Scripting Guy!Windows PowerShellPowerTip
Oct 8, 2014
Post comments count0
Post likes count0

Extend the Encode/Decode PowerShell Script

Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, talks about extending his ASCII encode/decode Windows PowerShell script. Microsoft Scripting Guy, Ed Wilson, is here. I am a huge advocate of learning by playing around. Maybe that is why I did such a good job back when I was in kindergarten—and why I had such a tough time in high school. Who knows...

Scripting Guy!Windows PowerShellscripting techniques