PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, August 24, 2022

[FIXED] How to install GroupPolicy module for PowerShell?

 August 24, 2022     gpo, group-policy, module, powershell, windows-7     No comments   

Issue

I just started writing scripts in PowerShell.
The desired script is supposed to create a local GroupPolicyObject (GPO) which will be specified afterwards. Research showed that it could be done with the New-GPO command within the GroupPolicy module for PowerShell. I tried to install the mentioned module but unfortunately nothing I found worked. May I ask for help?

I am using Windows 7 and Powershell 5.1.14409.1005

Error I receive when running example from Microsoft page (New-GPO -Name TestGPO -Comment "This is a test GPO."): Error when running (New-GPO -Name TestGPO -Comment "This is a test GPO.") - example provided by Microsoft


Solution

Step 1. Install RSAT from Microsoft site:

https://www.microsoft.com/en-in/download/details.aspx?id=7887

Step 2. Enable Group Policy from Windows Features.

Following link describes the steps in details:

https://www.powershellmagazine.com/2012/05/14/managing-group-policy-with-powershell



Answered By - Prashant Singh
Answer Checked By - Willingham (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing