Showing posts with label Group Policy. Show all posts
Showing posts with label Group Policy. Show all posts

Tuesday, July 3, 2012

Powershell and Group Policy : "Find all Group Policy Objects in a domain environment using Powershell"

 

Hi,

As you know that yesterday we install "RSAT" tools and enable the "Group Policy" module for powershell. You can refer to this link about enable Group Policy Module.

After Enabling our "Group Policy Module" our first task is to list all Group Policies. Let See which cmdlet we can use.

Lets Start.

Make sure you have RSAT Tool Installed and Enabled the Group Policy in Optional Features (http://newdelhipowershellusergroup.blogspot.in/2012/07/enable-group-policy-powershell-module.html)

Import group Policy Module

Import-Module Grouppolicy

02-07-2012 20-08-30


One our Module is loaded,


we can use Get-Gpo -All


Our today's target is simple , it is to "list  all Group Policy Objects"


run Get-Gpo -All and after that we will get all of our group policies.


03-07-2012 11-31-14


That's all for now , now we know that to list all Group Policy Objects we need to run "Get-Gpo -All" cmdlet.


Thanks!


Aman Dhally


Buy-More-Twitter-Followers   4fb29548b6adc


tom_hit

Monday, July 2, 2012

Enable Group Policy Powershell Module for Windows 7 domain client Computer.

 

Hi,

today i was planning to do few things with my "Group Policies", as usual i prefer to do it using PowerShell.

As you all know that to use Group Policy related stuff we need to import its module first. In windows 7 the group policy module in not enabled by default. We need to install it and then enable it.

The process it .

and after installing RSAT tool.

Click on start and search for "OptionalFeatures"

Click on it.

02-07-2012 19-07-13

and go to "Remote Server Administration Tools" expand it m and then expand "Feature Administration Tools" and tick on "Group Policy Management tools" and then click on "OK" 

02-07-2012 18-57-23

when it done installing, Open your Powershell Console and type : Import-Module GroupPolicy

No error for now..

02-07-2012 20-08-30 

Let see what if it imported it or not.

Get-Command -Module GroupPolicy


02-07-2012 20-09-20


All Done ,, Seem fine


Now we can start messing up with Group policies using Powershell. ;o) 


:)


 


Thanks!


Aman Dhally



Buy-More-Twitter-Followers   4fb29548b6adc