-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Labels
Hacktoberfest-AcceptedAccepted to participate in HacktoberfestAccepted to participate in HacktoberfestIssue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.The issue is fixed.WG-RemotingPSRP issues with any transport layerPSRP issues with any transport layer
Description
This would effectly add the command "Set-StrictMode -version 5" at the beginning of the scriptblock.
The reason why should should be a parameter vs just having the user add that line to every script is that it allows someone to set this via $PSDefaultParameterValues and have it affect an entire corpus of scripts (without having to change the scripts itself).
Here is the workaround that I wrote to implement this:
https://www.powershellgallery.com/packages/Invoke-Command
Metadata
Metadata
Assignees
Labels
Hacktoberfest-AcceptedAccepted to participate in HacktoberfestAccepted to participate in HacktoberfestIssue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.The issue is fixed.WG-RemotingPSRP issues with any transport layerPSRP issues with any transport layer