PowerShell for Windows Admins:

PowerShell v2


June 28, 2011  3:48 PM

Quick Tip: Discovering service start accounts



Posted by: Richard Siddaway
PowerShell v2, WMI

Do you know which accounts are used to start the services running on your machines? if you need this information try:

Get-WmiObject -Class Win32_Service | select Name, DisplayName, StartName

For a remote machine this becomes

Get-WmiObject -Class Win32_Service...

June 25, 2011  12:28 PM

Read the Scripting Guy Blog



Posted by: Richard Siddaway
PowerShell v2

I had the pleasure of meeting Microsoft’s Scripting Guy, Ed Wilson and his charming wife at the recent PowerShell Deep Dive. As well as being very nice guy Ed  also has a huge depth of knowledge on scripting in general and PowerShell in particular. His


June 24, 2011  12:41 PM

PowerShell Basics: Loops



Posted by: Richard Siddaway
PowerShell v2

A loop is used to repeat one or more commands a certain number of times or while a condition is true.  There are a number of ways of generating a loop in PowerShell. These examples show the basic structure of each loop type.

1
				
								
				 

				Bookmark and Share

				   

				 0 Comments
				   

				  RSS Feed
				   

				  Email a friend

			
			
			


June 18, 2011  4:06 AM

PowerShell resources: Tip of the Day



Posted by: Richard Siddaway
PowerShell v2

Have a look at the RSS feed available from http://powershell.com/cs/blogs/tips/

There are some good ideas in the tips and if nothing else it will get you thinking about PowerShell


June 16, 2011  1:26 PM

root\wmi – WmiMonitorColorCharacteristics



Posted by: Richard Siddaway
Hardware, PowerShell v2

The rather long winded name of this class might put you off but it does show something useful

Get-WmiObject -Namespace root\wmi -Class WmiMonitorColorCharacteristics

produces these results (dropping the system properties)

  Bookmark and Share     0 Comments     RSS Feed     Email a friend


June 16, 2011  11:03 AM

New MEAP release for PowerShell and WMI



Posted by: Richard Siddaway
Books, PowerShell v2, WMI

Chapters 10 and 11 have been added to the PowerShell and WMI early access release – www.manning.com/siddaway2

Chapter 10 is about printers and it covers:

  • discovering printer configurations;
  • testing printer...


June 14, 2011  11:12 AM

Scripting Guy Blog- PowerShell and WMI



Posted by: Richard Siddaway
Books, PowerShell v2, WMI

The Scripting Guy is running a series of posts this week featuring articles taken from PowerShell books published by Manning (www.manning.com). Yesterday was Don Jones’ PowerShell Lunches, today is my PowerShell and WMI

Read the articles and get the...


June 13, 2011  3:06 PM

Calculated Fields



Posted by: Richard Siddaway
PowerShell v2

You have probably seen something like this many times

Get-WmiObject -Class Win32_LogicalDisk -Filter "DriveType=3" |
select @{Name="FreeSpace";Expression={$_.Freespace / 1GB}}

We take an object and perform a calculation to in effect make a new...


June 9, 2011  3:14 PM

Date Formats–custom formats



Posted by: Richard Siddaway
PowerShell v2

I’ve added examples of practically all of the custom elements that can be used in a date format

"d...


June 8, 2011  1:34 PM

PowerShell and WMI forum



Posted by: Richard Siddaway
PowerShell v2, WMI

I will be moderating a new forum for PowerShell on powershell.com  http://powershell.com/cs/forums/217.aspx

The forum is slanted towards PowerShell and WMI but happy to take...


Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: