Category Archives: Powershell

Hidden files

If you suspect there are hidden files in a folder you can use the Attributes parameter to discover them: PS> Get-ChildItem -Path c:\test -Attributes H OR PS> Get-ChildItem -Path c:\test -Attributes h OR PS> Get-ChildItem -Path c:\test -Hidden If you … Continue reading

Posted in Powershell | Leave a comment

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

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

Pet peeves

Back in July I mentioned the using ? instead of Where-Object was a pet peeve. I’ve been asked a few times since for other pet peeves. The order of peevishness changes over time but these three will probably be always … Continue reading

Posted in Powershell | Leave a comment