PowerShell for Windows Admins:

PowerShell v2


August 18, 2011  1:01 PM

Find the MAC address



Posted by: Richard Siddaway
Network, PowerShell v2, WMI

One thing that has bugged me for years is having to use the /all parameter with ipconfig to get the MAC address. It also doesn’t work on remote machines. bah humbug.

The MSNdis_EthernetCurrentAddress class in the root\wmi namespace offers a quicker way


				
								
				 

				Bookmark and Share

				   

				 0 Comments
				   

				  RSS Feed
				   

				  Email a friend

			
			
			

August 4, 2011  1:40 PM

Authentication, Impersonation and Privileges



Posted by: Richard Siddaway
PowerShell v2, WMI

So, you want to use a new WMI namespace you have discovered that lets you work with IIS.

PS> Get-WmiObject -Namespace 'root\webadministration' -List -ComputerName web01
Get-WmiObject : Access denied
At line:1 char:14
+ Get-WmiObject <<<< ...


August 3, 2011  2:36 AM

Network speeds–the faster ones



Posted by: Richard Siddaway
PowerShell v2

Quick update to

Bookmark and Share     0 Comments     RSS Feed     Email a friend


August 2, 2011  9:02 AM

Using enums



Posted by: Richard Siddaway
PowerShell v2, WMI

Following on my post about using enums http://msmvps.com/blogs/richardsiddaway/archive/2011/08/02/enums.aspx

I thought it...


August 1, 2011  6:57 AM

Where to select



Posted by: Richard Siddaway
PowerShell v2, WMI

Using select-object (aliased to select in common usage) to reduce the number of properties passing into further processing is a common aspect of using PowerShell. However, its not the only place we can do it.

Consider this scenario.

We need to test the network client on a number...


July 31, 2011  9:11 AM

PowerShell Cheat Sheet



Posted by: Richard Siddaway
PowerShell v2

This may be useful for people starting PowerShell. If you can’t remember what punctuation sign does what in PowerShell get a copy of this cheat sheet

Bookmark and Share     0 Comments     RSS Feed     Email a friend


July 29, 2011  3:08 PM

Network Adapter speed and duplex



Posted by: Richard Siddaway
Network, PowerShell v2, WMI

One thing that can cause problems on the network is the duplex setting on the network adapter.  If this doesn’t match the switch port then at best you will get performance issues and at worst no connectivity.

The speed of the connection can be obtained from Win32_NetworkAdapter...


July 27, 2011  2:54 AM

Just a thought



Posted by: Richard Siddaway
PowerShell v2, WMI

I’ve working with WMI a lot recently and frequently seen things like this

Get-WmiObject -Class Win32_OperatingSystem -ComputerName dc02

Get-WmiObject -Class Win32_ComputerSystem -ComputerName dc02

Get-WmiObject -Class Win32_LogicalDisk -ComputerName dc02

Each of...


July 20, 2011  3:09 PM

Can I? Should I?–examples–legacy scripts



Posted by: Richard Siddaway
PowerShell v2

In this post http://msmvps.com/blogs/richardsiddaway/archive/2011/07/17/can-i-should-i.aspx I stated that PowerShell...


July 20, 2011  2:49 PM

July 2011–User Group reminder



Posted by: Richard Siddaway
PowerShell v2, User Group

Next Tuesday – 26 July there will be a UK user group session looking at PowerShell remoting:

  • cmdlets with remoting capabilities
  • .NET remoting capabilities
  • Invoke-Command
  • PowerShell sessions
  • WinRm and WSMan cmdlets

Details on joining the live...


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: