PowerShell for Windows Admins:

March, 2018

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 = -split $str
PS>...

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 competition.
I’ve posted 10 prequel puzzles on powershell.org. Each...

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

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 = Get-Item -Path...

About This Blog

A blog for Windows administrators, Architects, Consultants and System Integrators maximizing the use of PowerShell and WMI. Simple solutions to everyday problems using two tools that should be available on every Windows system. Save time, save effort, script now!

We use cookies and other similar technologies (Cookies) to enhance your experience and to provide you with relevant content and ads. By using our website, you are agreeing to the use of Cookies. You can change your settings at any time. Cookie Policy.