Showing archive results for 2014

Sep 12, 2014
Post comments count0
Post likes count0

Why Are All These Services Starting?

Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using WMI to find out how services start.  Hey, Scripting Guy! I was looking at the processes on my workstation, and I see lots of things running. I suspect many of these are actually services. But I am wondering how I can use Windows PowerShell to find services that start automatically....

Scripting Guy!Windows PowerShellscripting techniques
Sep 11, 2014
Post comments count0
Post likes count0

PowerTip: Use PowerShell to Cast to WMI UInt Value Type

Doctor Scripto

Summary: Use Windows PowerShell to cast to the WMI UInt value type.  I am comparing data from WMI, and it seems strange. I found the value type is a UInt32, and when I looked it up, I found that it is an unsigned 32-bit integer. How can I use Windows PowerShell to create one of these?  Use [uint32] and cast your normal...

Scripting Guy!Windows PowerShellPowerTip
Sep 11, 2014
Post comments count0
Post likes count0

Use PowerShell and WMI to Glean Basic Operating System Information

Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell and WMI to obtain basic operating system information.  Hey, Scripting Guy! I need to check on computers on my network to find out the operating system, service pack level, and whether the computer has been rebooted in the last 30 days. Can you help with this? &md...

Scripting Guy!Windows PowerShellscripting techniques
Sep 10, 2014
Post comments count0
Post likes count1

PowerTip: Find Value from PowerShell Hash Table

Doctor Scripto

Summary: Look up values from a Windows PowerShell hash table.  How can I look up a specific value that is associated with a specific key in a Windows PowerShell hash table?  Use the Item method and supply the key, for example: $hash = @{    2 = "Removable disk"    3="Fixed local disk" &nbs...

Scripting Guy!Windows PowerShellPowerTip
Sep 10, 2014
Post comments count0
Post likes count0

Inventory Drive Types by Using PowerShell

Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to detect drive types.  Hey, Scripting Guy! We have a number of workstations in our network. Many of the users bring USB keys from home to transfer their files. Others have large external USB drives attached to their machines, and others have portable CD/DVD devi...

Scripting Guy!Windows PowerShellscripting techniques