PowerShell for Windows Admins:

January, 2017


January 31, 2017  2:17 PM

Append data to a file

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

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

January 31, 2017  11:22 AM

Powershell versions

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

There are two common questions around PowerShell versions. Firstly, what version of PowerShell am I running? The easiest way to answer this is to open a PowerShell console and use the built in $PSVersionTable variable

PS>...


January 29, 2017  9:50 AM

Finding DNS static records

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
CIM, DNS, Powershell

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,...


January 29, 2017  8:23 AM

Using Hyper-V

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
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...


January 28, 2017  2:16 PM

Summit 2017–seats going fast

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

Seats a the 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...


January 27, 2017  11:32 AM

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

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Hyper-V

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


January 27, 2017  4:48 AM

wmic deprecated

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

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 - 0 Comments     RSS Feed     Email a friend


January 24, 2017  3:10 PM

Community Lightning Demos

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

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


January 24, 2017  2:37 PM

WMF 5.1 now available

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

The download for WMF 5.1 for down level operating systems is now available: 0 Comments     RSS Feed     Email a friend


January 12, 2017  10:48 AM

Using $_

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

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


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: