Monthly Archives: September 2019

Receive-Job Keep parameter

The Receive-Job Keep parameter is required if you want the data contained in the job to remain available. if you don’t use the –Keep parameter (a switch) the data will be deleted. Its a pain to remember to use the … Continue reading

Posted in Powershell | Leave a comment

PowerShell Day UK 2019 slides and code

Had a great day at PowerShell Day UK 2019. The PowerShell Day UK 2019 slides and code for my session are available at https://github.com/RichardSiddaway/PSDay2019.

Posted in Powershell | Leave a comment

UK PowerShell day is Saturday

The UK PowerShell day is Saturday – 28 September  – two days away. If you want to be there tickets are still available – https://psday.uk/ If you’re going – say hello See you there

Posted in Powershell | Leave a comment

Ternary operator

PowerShell v7 preview 4 adds a Ternary operator to PowerShell. A ternary operator is a way to provide shortened coding for a simple if-else block. Its an operator that takes three operands rather than the usual two hence the name … Continue reading

Posted in PowerShell 7 | 1 Comment

Get-ExecutionPolicy

I’ve used Get-ExecutionPolicy since PowerShell v1 and never stopped to think about it. The cmdlet normally returns just the current policy PS> Get-ExecutionPolicy RemoteSigned However, if you dig a little deeper PS> Get-ExecutionPolicy -List         Scope ExecutionPolicy         —– ————— MachinePolicy       … Continue reading

Posted in Powershell | 1 Comment

PowerShell v6.2.3

PowerShell v6.2.3 is available from https://github.com/PowerShell/PowerShell/releases It fixes a debugging performance issue and updates the .NET SDK and runtime framework version. Similar fixes are available in v6.1.6 released at the same time

Posted in PowerShell v6 | Leave a comment

Hyper-V VM IP address

Saw a question about getting the Hyper-V VM IP address. One thing with Hyper-V is that the VM has to be running for you to retrieve the IP address. Once you VM is running you can get the IP address … Continue reading

Posted in Hyper-V, Powershell | Leave a comment