Monthly Archives: January 2017

Append data to a file

A question on the forums – the user wanted to append data to a file. This is a common scenario when you’re creating a log file. There’s 2 easy ways to do this. Lets create a couple of variables with … Continue reading

Posted in Powershell Basics | Leave a comment

Powershell versions

An explanation of PowerShell versions is available here – http://itknowledgeexchange.techtarget.com/powershell/powershell-versions-2/

Posted in Powershell | Leave a comment

Finding DNS static records

An interesting question from the forums about finding DNS static records You can view the records in a DNS zone Get-CimInstance -Namespace root\MicrosoftDNS -ClassName MicrosoftDNs_Atype -ComputerName W16DC01  -Filter “DomainName = ‘manticore.org’” | select OwnerName, Timestamp, IPAddress but how do you … Continue reading

Posted in DNS, Powershell, PowerShell and CIM | Leave a comment

Using Hyper-V

When you think of using Hyper-V most people think of virtualising their infrastructure – big servers running 10s, 100s or even 1000s of virtual machines. There is another reason for using Hyper-V You can use Hyper-V to create a VM … Continue reading

Posted in Hyper-V | Leave a comment

Summit 2017–seats going fast

Seats at eh PowerShell Summit –  https://eventloom.com/event/home/summit2017 – are going fast. We’ve sold over 70% of the seats – they’re current 55 seats left split between 4-day and 3-day passes. The 3-day passes don’t go on sale until 12 February … Continue reading

Posted in Powershell, Summit | Leave a comment

Learn Hyper-V – Deal of the day – January 28 2017

Deal of the Day January 28: Half off my book Learn Hyper-V in a Month of Lunches. Use code dotd012817au at http://bit.ly/2jAIfWK More information from DOTD’s page at https://www.manning.com/dotd

Posted in Books, Hyper-V | Leave a comment

wmic deprecated

I saw a forum post today where the question involved the use of the wmi command line tool wmic. Wmic was deprecated in Windows Server 2012 – https://technet.microsoft.com/en-us/library/hh831568(v=ws.11).aspx. It will eventually be removed. You should use the CIM cmdlets instead … Continue reading

Posted in PowerShell and CIM, PowerShell and WMI | Leave a comment

Community Lightning Demos

We are continually evolving the content we present at the PowerShell Summit. This year we’re bringing back something that was a feature of the early PowerShell Deep Dives and Summits – the Community Lightning Demos. We have a session set … Continue reading

Posted in Powershell, Summit | Leave a comment

WMF 5.1 now available

The download for WMF 5.1 for down level operating systems is now available: https://blogs.msdn.microsoft.com/powershell/2017/01/19/windows-management-framework-wmf-5-1-released/ WMF 5.1 can be installed on Windows 7 and 8.1 plus Windows Server 2008 R2, 2012, 2012 R2 Windows 10 and Server 2016 already have PowerShell … Continue reading

Posted in Powershell | 1 Comment

Using $_

The $_ symbol seems to be causing confusion from some recent forum questions I’ve seen. $_ represents the current object on the pipeline – if you want to know why $_ was chosen you’ll have to read PowerShell in Action! … Continue reading

Posted in Powershell | Leave a comment