Category Archives: PowerShell v6

Active Directory cmdlets in PowerShell v6.1.1

Just discovered that you can run the Active Directory cmdlets in PowerShell v6.1.1 BUT there is a huge caveat. The Windows 10 October 2018 (Windows 10 1809) update includes the RSAT tools (including the AD tools) as optional features. This … Continue reading

Posted in PowerShell and Active Directory, PowerShell v6 | Leave a comment

Finding the minimum and maximum values

Finding the minimum and maximum values in a set of numbers is ridiculously easy with PowerShell. I’ve created a function in line with the other techniques I’ve shown but in reality could be be done equally well as a single … Continue reading

Posted in Powershell, PowerShell v5, PowerShell v6 | Leave a comment

Test-Connection cmdlet

The Test-Connection cmdlet wasn’t included in PowerShell v6.0 but did make a come back in v6.1. The v6.1 version of Test-Connection has some serious issues as I’ve described before. Work is being done at the moment to remedy those issues … Continue reading

Posted in PowerShell v6 | Leave a comment

PowerShell v6.2 preview 1

PowerShell v6.2 preview 1 quietly appeared yesterday – https://github.com/PowerShell/PowerShell/releases No major breaking changes. New features include: Type accelerators for unsigned integers Support for cd+ Test-ModuleManifest update to correctly populate nested modules Set-Service –status stopped will also stop dependencies   The … Continue reading

Posted in PowerShell v6 | Leave a comment

PowerShell v6.1 working directory

PowerShell v6.1 introduced a very annoying change in that a –workingdirectory parameter was added to pwsh.exe. When you install v6.1 working directory is automatically set to ~ which is your home folder. The workingdirectory doesn’t play nice with your profile. … Continue reading

Posted in PowerShell v6 | Leave a comment

PowerShell v6.1

PowerShell v6.1 was released last week – there’s no big ticket items like v6.0 but a lot of bug fixes and minor improvements. You can download from https://github.com/PowerShell/PowerShell/releases and find the release notes at https://docs.microsoft.com/en-us/powershell/scripting/whats-new/what-s-new-in-powershell-core-61?view=powershell-6

Posted in PowerShell v6 | 2 Comments

PowerShell new line

A PowerShell new line can be generated using `n. It’s one of a series of special characters recognised by PowerShell. The full list of Windows PowerShell v5.1 special characters is: `0    Null `a    Alert `b    Backspace `f    Form feed `n    … Continue reading

Posted in Powershell, PowerShell v5, PowerShell v6 | Leave a comment