How to restrict powershell for all users except for a particular group using GPO

Imthyas 116 Reputation points
2020-12-11T11:11:45.633+00:00

47422-pow4.pngHi All,
I have followed the below and applied a GPO, i can see that GPO is being applied when i check the result in gpresult, but
i am still able to open the Windows Powershell.

https://activedirectorypro.com/disable-powershell-with-group-policy/?unapproved=16419&moderation-hash=ba4bff4efb6af0b3077febec2feb9560#comment-16419

I mean when I check the gpresult for the logged in user, it shows policy applied , but it shows first this one:

Software Restriction Policies/Security Levels
Policy Setting
Default Security Level Unrestricted

Though down it shows the powershell block , i have applied, i think the above one is taking precedence.

47367-pow1.png47309-pow2.png47338-pow3.png

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,322 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,443 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,510 questions
0 comments No comments
{count} votes

Accepted answer
  1. Imthyas 116 Reputation points
    2020-12-11T17:42:15.073+00:00

    I got it working , I removed the default file settings which came when I created the Additional rules for Restrictions.

    It is working as expected now.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.