PowerShell for Windows Admins:

Powershell


October 14, 2015  4:59 AM

NICs with IP addresses

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
CIM, Powershell, WMI

A question on the forum asked about discovering those network adapters that had IP addresses configured. The user had tried PS> Get-WmiObject -Class Win32_NetworkAdapterConfiguration -Filter "IPAddress IS NOT NULL" Get-WmiObject : Invalid query "select * from...

October 13, 2015  10:38 AM

NSlookup in PowerShell

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
DNS, Powershell

nslookup.exe is a command line executable that is used to discover the IP address of a remote machine from its FQDN. The results look something like this: PS> nslookup powershell.org DNS request timed out. timeout was 2 seconds. Server:  UnKnown Address: ...


October 5, 2015  7:04 AM

Scripting Games September 2015

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

The puzzle for September is here http://powershell.org/wp/2015/09/05/september-2015-scripting-games-puzzle/ with the write...


October 3, 2015  2:18 PM

Windows PowerShell in Action, Third Edition

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Books, Powershell

PowerShell in Action by Bruce Payette has been THE book for the PowerShell expert to learn how PowerShell works under the covers. If you  wanted to know how PowerShell works and why it works the way it does – this was the book.  PowerShell in Action second edition was written when PowerShell...


October 2, 2015  8:24 AM

Quick update check

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell, WSUS

Want to check on any updates that haven’t been fully applied in your environment. Run this on your WSUS server (2012 R2) £> Get-WsusUpdate -Classification All -Status Any -Approval AnyExceptDeclined | where InstalledOrNotApplicablePercentage -ne 100 You can modify the...


October 1, 2015  2:47 AM

Strings and collections

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

A question on the forum brought up a point that often confuses PowerShell novices. QUESTION: What’s the difference between $computers = 'W12R2SUS, W12R2DSC' and $computers = 'W12R2SUS', 'W12R2DSC' ANSWER: The first is a string PS> $computers.GetType() | ft -a IsPublic...


September 30, 2015  1:16 PM

PowerShell DSC for Linux 1.1

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Linux, Powershell

PowerShell DSC for Linux 1.1 has been released.

    0 Comments     RSS Feed     Email a friend


September 30, 2015  12:24 PM

Controlling copies

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

I was recently asked about ‘forcing’ a copy so that only the files you want are copied Consider a folder with lots of files. I want to copy those files that start with the letter t and have a txt extension PS> Get-ChildItem -Path C:\test2\t*.txt

    0 Comments     RSS Feed     Email a friend


September 30, 2015  8:23 AM

WMF 5.0 production preview–installed

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

I’ve installed WMF 5.0 PP on a number of Windows 2012 R2 (full GUI and server core). Installation was over the top of a mixture of PowerShell 4.0 and various versions of PowerShell 5.0 previews. Installation worked in all cases. I’ve not noticed any problems with using powershell 5.0 in...


September 29, 2015  1:42 PM

Win32_ReliabilityRecords Class

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
CIM, Powershell, WMI

The Win32_ReliabilityRecords class was introduced with Windows 7. It contains information from the Windows Event Log related to system reliability. The most interesting properties are the Message and the TimeGenerated £> Get-WmiObject -class win32_reliabilityRecords | select -First 1 | fl...


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: