UK PowerShell Group–November 2012
Posted by: Richard Siddaway
| When: Tuesday, Nov 13, 2012 7:30 PM (BST) |
| Where: |
*~*~*~*~*~*~*~*~*~*
PowerShell workflows are one of the major...
| When: Tuesday, Nov 13, 2012 7:30 PM (BST) |
| Where: |
*~*~*~*~*~*~*~*~*~*
PowerShell workflows are one of the major...
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
This is a common scenario 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 | 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... 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 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... 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... 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 The download for PowerShell v3 – now know as Windows Management Framework as you get PowerShell, WinRM and new WMI API is now available from
0 Comments
RSS Feed
Email a friend
PowerShell 3 and Word
Posted by: Richard Siddaway
PowerShell 3$word = New-Object -ComObject "Word.application" ...
CDXML modules and nouns
Posted by: Richard Siddaway
PowerShell 3, Windows 8
foreach {
($_.Name -split "-")[1]
Jobs, WMI, CIM and more jobs
Posted by: Richard Siddaway
PowerShell 3, WMI
WMI over WSMAN
Posted by: Richard Siddaway
PowerShell 3, WMI
Get-CimInstance -ClassName...
PowerShell remoting and upgrading to Windows 2012
Posted by: Richard Siddaway
PowerShell 3, Windows 2008 R2, Windows Server 8
Using –showwindow
Posted by: Richard Siddaway
PowerShell 3
Finding the drive letter of a mounted VHD
Posted by: Richard Siddaway
PowerShell 3, Windows 8, WMIfunction get-mountedvhdDrive {
PowerShell v3 download
Posted by: Richard Siddaway
PowerShell 3
