PowerShell for Windows Admins:

Windows 8


March 11, 2013  2:07 PM

Network Adapters–Disable/Enable



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

Last time we saw the Get-NetAdapter cmdlet from the NetAdapter module

PS> Get-NetAdapter | ft Name, InterfaceDescription, Status -a

Name    ...

March 4, 2013  2:23 PM

Network adapters



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

The WMI classes Win32_NetworkAdapter and Win32_NetworkAdapterConfiguration have seen a lot of use over the years. They can be a bit fiddly to use which is why the NetAdapter module in Windows 8/2012 is a so welcome.

Lets start by looking at basic information gathering

PS>...


March 1, 2013  2:23 PM

Windows 8 Kindle app



Posted by: Richard Siddaway
Windows 8

Amazon have released an update for the Windows 8 Kindle app that appears to have resolved the corrupted display issue that occurred after every few pages of reading.

I would recommend updating the app immediately. The app now seems to be usable.


December 14, 2012  4:17 AM

PowerShell v3 installed modules



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

This is the list of installed modules in PowerShell v3 on Windows 8

AppLocker
Appx
BitLocker
BitsTransfer
BranchCache
CimCmdlets
DirectAccessClientComponents
Dism


October 23, 2012  11:50 AM

DnsClient module: #2 DnsClient & Cache



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

The DnsClient module has a number of Get- cmdlets

Get-DnsClient | Format-List InterfaceAlias, ConnectionSpecificSuffix, Register*, UseSuffix*

An example of the output is

...


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


October 12, 2012  12:08 PM

Windows 8 update



Posted by: Richard Siddaway
Windows 8

The first Windows 8 update became available this week.  This fixes some issues that have come up during the OEM process.  Fast and frequent updates sound good to me.

In addition number of apps have been updated – one I really like is the addition of conversation groupings...


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 2, 2012  12:43 PM

Windows 8 RTM startup



Posted by: Richard Siddaway
Windows 8, WMI

I was looking at Win32_OperatingSystem today and noticed that the last boot up time wasn’t right

PS> Get-CimInstance -ClassName Win32_OperatingSystem | select LastBootUpTime

LastBootUpTime
--------------
17/08/2012 10:02:11

17 August isn’t right...