PowerShell for Windows Admins:

PowerShell v2


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...


July 18, 2011  12:36 PM

Joining objects



Posted by: Richard Siddaway
Network, PowerShell v2, WMI

PowerShell doesn’t have the equivalent of an SQL Union statement that lets you join objects together. What you can do is use New-Object to create the joined output.

As an example that recently came up on a forum

$outputs 
				
				
  Bookmark and Share     0 Comments     RSS Feed     Email a friend


July 17, 2011  4:17 AM

Can I? Should I?



Posted by: Richard Siddaway
Automation, PowerShell v2

The question “Can I do X with PowerShell?” comes up very frequently.

PowerShell provides access to a huge range of functionality:

  • .NET
  • COM
  • WMI
  • Microsoft and third party products

Usually the answer is “Yes, you...


July 7, 2011  2:12 PM

July User group meeting details–PowerShell Remoting



Posted by: Richard Siddaway
PowerShell v2, User Group


When: Tuesday, Jul 26, 2011 7:30 PM (BST)


Where:

*~*~*~*~*~*~*~*~*~*

A look at PowerShell Remoting using individual commands, Invoke-Command and PowerShell sessions. How to configure remoting and get the best out of it

Notes


Richard...


July 6, 2011  1:13 PM

PowerShell and WMI webcast



Posted by: Richard Siddaway
PowerShell v2, WMI

I have been invited by PowerShell.com to give a webcast on 7 September 2011 @ 12 noon Central Time (6pm UK time).

The webcast is entitled Get the most from PowerShell and WMI

Register here