PowerShell for Windows Admins:

July, 2014


July 24, 2014  2:22 PM

History cmdlets

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

There are 4 cmdlets for working with the history in a PowerShell session: Add-History – adds an entry to the history Clear-History – clears the history Get-History -enables you see the current history Invoke-History – enables you to run a line in your history Get-History is the one I...

July 23, 2014  2:10 PM

Its mandatory Jim but not as we know it

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

A uestion was asked on the forum about whether a parameter could be made mandatory sometimes and nor other – in particular if a parameter could be made mandatory if another parameter was used. My initial thought was that it couldn’t but a little experimentation with parameter sets produced...


July 22, 2014  3:09 PM

msmvps.com is back

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Security

My blog on msmvps.com is back at http://blogs.msmvps.com/richardsiddaway/


July 22, 2014  6:08 AM

July 22 2014–deal of the day

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Books

Half off my book PowerShell and WMI. Use code dotd072214au at www.manning.com/siddaway2/ Also Half off PowerShell in Depth, Second Edition. Use code dotd072214au at www.manning.com/jones6/  


July 21, 2014  1:45 PM

Bad practice – – creating objects

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

Another in my occassional series on bad practices I’ve seen and recommend you avoid.  This time I want to look at creating objects. I recently saw some code that looked a bit like this: $os = Get-CimInstance -ClassName Win32_OperatingSystem $comp = Get-CimInstance -ClassName...


July 20, 2014  1:45 PM

Docker and DSC for Linux

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

Docker is a way to “virtualise” applications on Linux machines. With DSC for Linux you can manage Docker instances Bookmark and Share     0 Comments     RSS Feed     Email a friend


July 20, 2014  1:39 PM

DSC Resource Kit Wave 5

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

The next wave of the DSC resource kit has arrived – see Bookmark and Share     0 Comments     RSS Feed     Email a friend


July 20, 2014  11:49 AM

msmvps.com is down

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Security

My mirror blog on msmvps.com is down – as is the rest of the site.  It is being worked on. In the meantime transfer here


July 15, 2014  2:20 AM

PowerShell Summit Europe 2014 – – update 5

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

Registration is now open. Access through Events menu at powershell.org


July 14, 2014  11:41 AM

Formatting disks – – the new way

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Windows 2012

Last time I showed how to format disks using the Win32_Volume CIM class. If you need to perform this activity on a Windows Server 2012/Windows 8 or later system you can use a couple of cmdlets from the Storage module Get-Volume | where DriveLetter -ne 'C' | Format-Volume -FileSystem NTFS...


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: