header image

Archive for January, 2017

Append data to a file

Posted by: | January 31, 2017 Comments Off on 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 multi-line data PS> $data = @’ >> This is >> multiline data >> […]

under: PowerShell Basics

Powershell versions

Posted by: | January 31, 2017 Comments Off on Powershell versions |

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

under: PowerShell

Finding DNS static records

Posted by: | January 29, 2017 Comments Off on 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 know which are static records.   There isn’t an obvious way to do […]

under: DNS, PowerShell, PowerShell and CIM

Using Hyper-V

Posted by: | January 29, 2017 Comments Off on 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 so you can install an application that may conflict with you standard workstation […]

under: Hyper-V

Summit 2017–seats going fast

Posted by: | January 28, 2017 Comments Off on 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 and we’ll be moving 3-day to 4-day as sales happen between now and then. […]

under: PowerShell, Summit

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

Posted by: | January 27, 2017 Comments Off on 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

under: Books, Hyper-V

wmic deprecated

Posted by: | January 27, 2017 Comments Off on 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 of wmic. The syntax is much easier and the resultant code is easier […]

under: PowerShell and CIM, PowerShell and WMI

Community Lightning Demos

Posted by: | January 24, 2017 Comments Off on 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 aside on Wednesday afternoon for this. Timescales will depend on the number of people wanting […]

under: PowerShell, Summit

WMF 5.1 now available

Posted by: | January 24, 2017 Comments Off on 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 5.1 and don’t need this install. if installing on Windows 7 or Server 2008 R2 […]

under: PowerShell

Using $_

Posted by: | January 12, 2017 Comments Off on 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!   You can use $_ in a number of situations – in commands that […]

under: PowerShell

Older Posts »