Powershell constrained language mode effects

Our security folk want to set a group policy to apply constrained language mode everywhere.
We have a script server with 10s of thousands of lines of automation code running regularly. Will applying that setting to that server break things? Our automation code uses load of .net and com objects and weird and wonderful cmdlets from lots of different systems.

Thanks. Reading further it seems major things will break as we use dotnet calls and com objects that are not supported in this mode.

PowerShell Constrained Language Mode - PowerShell Team (microsoft.com)

some good information in this blog post.

1 Like