PowerShell for Windows Admins


March 24, 2011  1:08 PM

Regular Expression Slides

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

 

The slides, scripts and cheat sheet from Tome’s regular expression presentation are now available

http://cid-43cfa46a74cf3e96.office.live.com/browse.aspx/PowerShell%20User%20Group/March%202011

March 23, 2011  3:11 PM

Regular Expression Recording

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

The recording of the PowerShell UG meeting last night is available

Richard Siddaway has invited you to view a Microsoft Office Live Meeting recording.
View Recording
Recording Details
Subject: Regular Expressions in PowerShell
Recording URL: https://www.livemeeting.com/cc/usergroups/view
Recording ID: TRG55D
Attendee Key: Bd+;%:H8Z

This Office Live Meeting invitation is a personal invitation meant only for you. It should not be forwarded. If you received this email by mistake or require Live Meeting Assistance, please refer to the Live Meeting Assistance Center at http://r.office.microsoft.com/r/rlidLiveMeeting?p1=12&p2=en_US&p3=LMInfo&p4=support

Enjoy


March 23, 2011  1:54 PM

PowerShell Deep Dive Line Up

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

 

Dmitry has collected all of the currently available information on the upcoming PowerShell Deep Dive

http://dmitrysotnikov.wordpress.com/2011/03/23/powershell-deep-dive-recap/


March 21, 2011  1:15 PM

Documenting WMI

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

Its been said many times that tracking down documentation on WMI classes can be difficult. This script will help to some degree

001
002
003
004
005
006
007
008
009
010
011
012
013
014
015
016
017
018
019
020
function get-wmidoc {
param
 (
 
[string]$class
)

$data = Get-WmiObject -List $class -Amended 

"Methods"
$data | select -ExpandProperty methods

"Properties"
$data | select -ExpandProperty properties

"Qualifiers"
$data | select -ExpandProperty qualifiers

}

Take a WMI class name as a parameter (assumes that using root\cimv2 namespace but could add namespace as another parameter) then get the amended listing.  The methods, properties and qualifiers can be displayed.


March 21, 2011  1:07 PM

PowerShell UG Live Meeting tomorrow

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

Don’t forget the UK PowerShell UG meeting tomorrow – 22 March. Details from

http://richardspowershellblog.wordpress.com/2011/02/27/uk-powershell-groupmarch-2011/


March 15, 2011  1:20 PM

PowerShell and WMI–Chapters 6 & 7 in MEAP

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

Chapters 6 and 7 have been released for PowerShell and WMI. It is available through the Manning Early Access Program (MEAP) at http://www.manning.com/siddaway2/
The available chapters cover:

  1. Solving Administrative Challenges
  2. Using PowerShell
  3. WMI in Depth
  4. Best Practices
  5. System Documentation
  6. Disk System
  7. Registry

Chapters 8 to 10 covering the File system; Services and Processes; and Printers respectively are in the pipeline. I’m currently working on chapter 11 on Networking. The code to accompany the MEAP chapters is also available for download from the URL above.


March 15, 2011  1:18 PM

PowerShell module for PKI

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

PowerShell MVP Vadims Podans has released a PowerShell module for working with PKI. It works against Windows 2003 /2003 R2/ 2008 and 2008 R2 Certificate Authorities.

If you are using Certificate Services in your environment you need this.  Download from http://pspki.codeplex.com/


March 13, 2011  1:38 PM

WMI–Provider Load Failure

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

I’m currently writing Chapter 11 of PowerShell and WMI and its about using the WMI classes related to networking. I tried the Win32_NetworkAdapter on the HP laptop I use for writing and everything worked fine. Tried it on my Lenovo that I use as a Hyper-V server and got a Provider Load failure error.

PS> Get-WmiObject -Class Win32_NetworkAdapter
Get-WmiObject : Provider load failure
At line:1 char:14
+ Get-WmiObject <<<<  -Class Win32_NetworkAdapter
    + CategoryInfo          : InvalidOperation: (:) [Get-WmiObject], ManagementException
    + FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.Commands.GetWmiObjectCommand

 

This is definitely in the realms of not good. At this point I was imagining WMI rebuild or even a complete server rebuild.

I tried

Get-WmiObject -Class Win32_NetworkAdapterConfiguration

 

and it worked. Now that’s confusing.

Did a Bing search and found this post

http://blogs.infosupport.com/blogs/markw/archive/2009/02/26/Win32_5F00_network-adapter-_2200_provider-load-failure_2200_.aspx

which walks through how to use wbemtest to see what is happening.

Turns out like the author of the post I had the Intel WiFi tools installed but didn’t have an Intel wireless card. The LAN card is Intel so I guess that’s where the tools came from.  The wifiwmip.dll seems to be to blame for the problem. 

Removed the intel WiFi tools and everything now works.


March 13, 2011  3:47 AM

PowerShell Deep Dive–more sessions announced

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

The agenda for the first PowerShell deep dive is filling up

http://www.theexpertsconference.com/us/2011/general-information/2011-powershell-deep-dive/

http://blogs.msdn.com/b/powershell/archive/2011/03/13/more-deep-dive-info-including-abstracts-from-the-powershell-team.aspx

 

The speaker list includes:

Jeffrey Snover

Bruce Payette

Kenneth Hansen

Don Jones

Kirk Munro

Brandon Shell

Jeffrey Hicks

Sean Kearney

James O’Neill

 

oh yeah -  and me

 

This is going to be an awesome two days – if you are interested in PowerShell you need to be there


March 9, 2011  1:16 PM

2011 Scripting Games

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

Message from the Microsoft Scripting Guy

The 2011 Scripting Games begin on April 4, 2011 and run through April 15, 2011. What is the Scripting Games, you may ask? Well simply put, the Scripting Games are the premier learning event of the year for IT Pro’s and others who wish to master Windows PowerShell. Comprising 10 events, a registered contestant has seven days to create a solution to a scenario driven problem and post their code to a MVP maintained script repository for evaluation by a panel of internationally recognized judges. Daily leaderboards and prize drawings help to maintain the suspense throughout the two-week international event.

During the 2011 Scripting Games hundreds of contestants will submit thousands of scripts that will be reviewed by dozens of judges. Hundreds of thousands of spectators from all around the world will view the games themselves. Last year, participants from more than 100 countries participated in the Scripting Games. With an emphasis on real world scripting scenarios and problems, the scripts will be of immediate value to both the participants and to the spectators.

Preparation for the 2011 Scripting Games is already underway, with a learning guide, step-by-step tutorials, videos and other resources being generated on a daily basis. The 2011 Scripting Games all in one page is the portal for the games themselves. The 2010 Scripting Games all in one page is still available, as are the events from the 2009 Scripting Games.

àAction: Grab the 2011 Scripting Games badge and display it on your blog to show your support for the games.


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: