Skip to main content

Windows Administration · Windows 10, Windows 11

How to Restrict PowerShell on Windows

Identify which roles can run approved PowerShell tasks and which devices run those tasks. Use the application's supported Windows control and protect scheduled maintenance, software deployment, and support automation during testing.

By CtrlOne Team

Version-specific guidance

  • Windows 10

    Check Windows 10 edition and build before selecting an application-control method and confirm the installed PowerShell editions.

  • Windows 11

    Check the installed Windows PowerShell and any separate PowerShell versions. Keep authorized management and support jobs in the verification plan.

Identify the installed PowerShell editions

Inventory Windows PowerShell and any separately installed PowerShell releases on the pilot. Match your policy to the edition and build, and identify the scripts and administration tasks teams rely on.

Use the right policy for the outcome

Microsoft provides execution policy for script-handling preferences. For an enforced administration or script boundary, use an approved Windows application-control approach. Review Microsoft's guidance for PowerShell under App Control for Business or AppLocker.

Audit before enforcing

Begin with audit mode where supported. Verify required scripts and operations with their intended accounts. Record the expected PowerShell behavior, and prove the authorized support and policy-recovery workflow on a representative pilot.

Plan and validate PowerShell scope

  1. Inventory installed editions

    Confirm PowerShell versions, users, and necessary automation on the pilot.

  2. Review application control in audit

    Use the approved Microsoft control and validate expected workflows before enforcement.

  3. Test administration and recovery

    Verify the intended constraints, approved maintenance tasks and policy restoration.

Frequently asked questions

Which PowerShell installation should I test?

Test each installed PowerShell edition and build that users or authorized automation rely on.

Can I set only an execution policy?

Use Microsoft's execution policy reference for script-handling preferences and application control guidance for enforced boundaries.

References

Protect approved administration workflows

Audit a representative pilot and verify necessary PowerShell workflows before enforcing restrictions.