# Powershell constrained language mode effects

**URL:** <https://forums.powershell.org/t/powershell-constrained-language-mode-effects/22033>\
**Category:** PowerShell Help\
**Created:** [April 3, 2023, 1:14am UTC](https://forums.powershell.org/t/powershell-constrained-language-mode-effects/22033 "2023-04-03T01:14:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![david-zemdegs](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/david-zemdegs/32/1461_2.png) [@david-zemdegs](https://forums.powershell.org/u/david-zemdegs)\
**Post date:** [April 3, 2023, 1:14am UTC](https://forums.powershell.org/t/powershell-constrained-language-mode-effects/22033/1 "2023-04-03T01:14:19Z")

</div>

Hi,  
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  
David

---

<div class="post-metadata">

**Author:** ![david-zemdegs](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/david-zemdegs/32/1461_2.png) [@david-zemdegs](https://forums.powershell.org/u/david-zemdegs)\
**Post date:** [April 5, 2023, 12:57am UTC](https://forums.powershell.org/t/powershell-constrained-language-mode-effects/22033/3 "2023-04-05T00:57:17Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Matt](https://avatars.discourse-cdn.com/v4/letter/m/a6a055/32.png) [@Matt](https://forums.powershell.org/u/Matt)\
**Post date:** [April 5, 2023, 4:09am UTC](https://forums.powershell.org/t/powershell-constrained-language-mode-effects/22033/4 "2023-04-05T04:09:24Z")

</div>

[PowerShell Constrained Language Mode - PowerShell Team (microsoft.com)](https://devblogs.microsoft.com/powershell/powershell-constrained-language-mode/)

some good information in this blog post.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/powershell/original/1X/385e4f9fe133561ad30a814262fe0e0ae6bc3ef0.png) [@system](https://forums.powershell.org/u/system)\
**Post date:** [February 10, 2024, 5:34pm UTC](https://forums.powershell.org/t/powershell-constrained-language-mode-effects/22033/5 "2024-02-10T17:34:04Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
