Monthly Archives: March 2018

PowerShell join

I looked at PowerShell split a few posts back. This time I’ll look at the opposite action – PowerShell join. Lets look at a simple string PS> $str = ‘PowerShell for Windows and Linux’ and split it PS> $strs = … Continue reading

Posted in Powershell | Leave a comment

Iron Scripter 2108

Iron Scripter 2018 is the scripting competition we’re holding at the PowerShell Summit on 12 April 2018. The task for the main event is still under wraps but even if you can’t make the Summit you can benefit from the … Continue reading

Posted in Powershell, Summit | Leave a comment

Windows server futures

A blog post – https://cloudblogs.microsoft.com/windowsserver/2018/03/29/windows-server-semi-annual-channel-update/ – has clarified Windows server futures. Going forward the Semi-Annual Channel (SAC) releases – Server 1803 is due very soon  – will concentrate on containers (applications and hosts) and fast innovation application scenarios. Releases will … Continue reading

Posted in Windows Server | Leave a comment

Installing Win32 OpenSSH

I’ve had a number problems Installing Win32 OpenSSH https://github.com/PowerShell/Win32-OpenSSH/wiki/Install-Win32-OpenSSH since it became available and required for SSH based remoting in PowerShell v6 Every time I install a new version the instructions have changed. Admittedly the installation is getting easier BUT … Continue reading

Posted in PowerShell v6 | 2 Comments

Windows Server 2019 preview

A Windows Server 2019 preview is available – https://cloudblogs.microsoft.com/windowsserver/2018/03/20/introducing-windows-server-2019-now-available-in-preview/ The build number is 17623 and its also the preview of the next Semi-Annual Channel release. GA is set for H2 2018 Server 2019 is a Long term Servicing Channel release … Continue reading

Posted in Windows Server 2019 | Leave a comment

PowerShell split

The PowerShell split operator is used to split strings based on a delimiter. The default delimiter is white space PS> $str = ‘AA BB CC DD EE FF GG’ PS> -split $str AA BB CC DD EE FF GG You … Continue reading

Posted in Powershell | Leave a comment

PowerShell v6.1.0 preview 1

The first preview release of PowerShell v6.1 is available at https://github.com/PowerShell/PowerShell/releases There are a few breaking changes you should check out. Most of the changes are minor engine updates and bug fixes. There are no big new features in this … Continue reading

Posted in PowerShell v6 | Leave a comment

PowerShell v6.0.2

PowerShell v6.0.2 is available from https://github.com/PowerShell/PowerShell/releases The only real change is that .NET core 2.0.6 is used in this release to counter the Hash Collision vulnerability – https://github.com/PowerShell/Announcements/issues/4 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