Monthly Archives: March 2018

PowerShell v6.0.2

PowerShell v6.0.2 is available from The only real change is that .NET core 2.0.6 is used in this release to counter the Hash Collision vulnerability – A number of changes that affect the way the project builds and … Continue reading

Posted in PowerShell v6 | 1 Comment

Set active hours

Last time time you saw how to get the current active hours. This is how you set the active hours. $sb = {   Set-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings -Name ActiveHoursStart -Value 10 -PassThru   Set-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings -Name ActiveHoursEnd -Value 22 -PassThru } … Continue reading

Posted in Powershell, Windows 10, Windows Server 2016 | Leave a comment

Get Active Hours

Windows 10 and Server 2016 (and later) have the concept of active hours. These are the hours you define as working hours in effect. This is how you get active hours for a system $sb = {   param([string]$computerName)      $ahs … Continue reading

Posted in Powershell, Windows 10, Windows Server 1709, Windows Server 2016 | Leave a comment

Cmdlet parameters

I discovered another way to investigate cmdlet parameters. If you dig into the output of Get-Command you’ll see it has a parameters property PS> Get-Command Clear-RecycleBin | select parameters Parameters ———- {[DriveLetter, System.Management.Automation.ParameterMetadata], [Force, System.Management.Automation.ParameterMetada… If you expand the parameters … Continue reading

Posted in Powershell | Leave a comment

Finding special folders

Windows has a number of special folders. These can be accessed either directly through the file system – for example the Documents special folder is C:\<user>\Richard\Documents or through code. But how do you go about finding special folders. The easiest … Continue reading

Posted in COM, Powershell | Leave a comment