PowerShell for Windows Admins:

PowerShell 3


October 20, 2012  1:08 PM

UK PowerShell Group–November 2012



Posted by: Richard Siddaway
PowerShell 3, User Group

When: Tuesday, Nov 13, 2012 7:30 PM (BST)

Where:

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

PowerShell workflows are one of the major...

October 16, 2012  2:27 PM

DnsClient module: #1 Get-DnsClientServerAddress



Posted by: Richard Siddaway
DNS, PowerShell 3, Windows 8, Windows Server 2012

Started to investigate the DnsClient module.  First cmdlet to catch my eye was Get-DnsClientServerAddress.

Always good to know a way to find the DNS server.

PS> Get-DnsClientServerAddress

  Bookmark and Share     0 Comments     RSS Feed     Email a friend


October 15, 2012  11:21 AM

PowerShell 3 and Word



Posted by: Richard Siddaway
PowerShell 3

 

This is a common scenario

$word = New-Object -ComObject "Word.application"       ...


October 14, 2012  4:07 AM

CDXML modules and nouns



Posted by: Richard Siddaway
PowerShell 3, Windows 8

CDXML modules don’t expose the verb and the noun of the cmdlets they publish.  If you want to discover the set of nouns in a CDXML module you need a bit of brute force:

Get-Command -Module DhcpServer |
foreach {
  ($_.Name -split "-")[1]


September 27, 2012  1:07 PM

Jobs, WMI, CIM and more jobs



Posted by: Richard Siddaway
PowerShell 3, WMI

Background jobs were one of the most undervalued aspects of PowerShell v2. With the introduction of PowerShell v3 we get ways to schedule those jobs. In this post though I want to look at the new CIM cmdlets and jobs.

Using the WMI cmdlets most PowerShell users have done something like...


September 24, 2012  12:10 PM

WMI over WSMAN



Posted by: Richard Siddaway
PowerShell 3, WMI

Every time I look at PowerShell v3 I seem to find a new way to access WMI!

I’ve covered the –ComputerName and –CimSession parameters before but to recap

We duplicate the way Get-WmiObject works:

$computer = $env:COMPUTERNAME
Get-CimInstance -ClassName...


September 23, 2012  9:40 AM

PowerShell remoting and upgrading to Windows 2012



Posted by: Richard Siddaway
PowerShell 3, Windows 2008 R2, Windows Server 8

I have a number of  virtual machines running Windows 2008 R2 and I upgraded one of them to Windows 2012 – an over the top upgrade rather than a format and clean install

I found that Get-PSSession –Computername didn’t work against that machine.

This parameter now looks...


September 21, 2012  12:46 PM

Using –showwindow



Posted by: Richard Siddaway
PowerShell 3

The new –showwindow parameter in Get-Help pops up a little window containing the FULL help file.  Much better than having to rememebr to use –full.  PowerShell immediately returns the prompt so you can continue working – means you can have a number of help files...


September 11, 2012  11:22 AM

Finding the drive letter of a mounted VHD



Posted by: Richard Siddaway
PowerShell 3, Windows 8, WMI

In Windows 8/2012 you can mount a VHD into the file system. Is there a way to discover the drive letter of the mounted VHD

function get-mountedvhdDrive {            
			


September 4, 2012  2:46 PM

PowerShell v3 download



Posted by: Richard Siddaway
PowerShell 3

The download for PowerShell v3 – now know as Windows Management Framework as you get PowerShell, WinRM and new WMI API is now available from

Bookmark and Share     0 Comments     RSS Feed     Email a friend