Category Archives: PowerShell v6

Install-Module in PowerShell v6.2 RC 1

Further to my last post it appears that Install-Module in PowerShell v6.2 RC1 DOESN’T follow the rules. In an elevated session if the scope parameter ISN’T used it will install to $home\Documents\PowerShell\Modules The default appears to be CurrentUser regardless. You … Continue reading

Posted in PowerShell v6 | Leave a comment

Install-Module Scope parameter

Be aware of the Scope parameter when using Install-Module. The following rules apply: Allusers scope installs to $env:ProgramFiles\PowerShell\Modules CurrentUser scope installs to $home\Documents\PowerShell\Modules NoScope defined: – – For an elevated PowerShell session, Scope defaults to AllUsers – –  For non-elevated … Continue reading

Posted in PowerShell v6 | Leave a comment

PSTempDrive

The release of PowerShell v6.2 release candidate 1 brings more experimental features including PSTempDrive. You can view the currently available experimental features using get-ExperimentalFeature.  You’ll find a total of four: PSCommandNotFoundSuggestion PSImplicitRemotingBatching PSTempDrive PSUseAbbreviationExpansion Install PSTempDrive using Enable-ExperimentalFeature –Name PSTempDrive … Continue reading

Posted in PowerShell v6 | Leave a comment

PowerShell v6.2 release candidate 1

PowerShell v6.2 release candidate 1 is available – https://github.com/PowerShell/PowerShell/releases The only breaking change is to how Join-String works in a non-pipeline scenario.  That shouldn’t be a big issue as Join-String is new to v6.2. The security fixes from v6.1..3 have … Continue reading

Posted in PowerShell v6 | Leave a comment

PowerShell v6.1.3 install problem

PowerShell v6.1.3 install problem prevented my from changing the working directory. The introduction of the –WorkingDirectory parameter pwsh.exe has caused problems – usually forcing PowerShell to ignore any directives in your profile to set a working folder.  In previous versions … Continue reading

Posted in PowerShell v6 | Leave a comment

PowerShell v6.1.3

PowerShell v6.1.3 has been released – https://github.com/PowerShell/PowerShell/releases It primarily fixes the security issues from CVE-2019-0627 CVE-2019-0631 CVE-2019-0632 which are to do with User Mode Code Integrity policy bypasses and CVE-2019-0657 which is to do with domain spoofing I expect the … Continue reading

Posted in PowerShell v6 | Leave a comment

PowerShell v6 experimental features

The ability to have PowerShell v6 experimental features surfaced in the PowerShell v6.2 previews. In preview 4 there are two experimental features. PSImplicitRemotingBatching   – Batch implicit remoting proxy commands to improve performance PSUseAbbreviationExpansion   – Allow tab completion of cmdlets and … Continue reading

Posted in PowerShell v6 | Leave a comment