Skip to content

A few little scripts that I use to troubleshoot group policy.

License

Notifications You must be signed in to change notification settings

rndadhdman/PWSH-Group-Policy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

DPB_Group_Policy

Here we have a few little scripts designed to help with group policy. This is my first public script, please let me know if I need to fix things.

Modules Needed

You will need the active directory and the grouppolicy modules.

Get-ComputerPCGPO

Grabs the group policy form target computer for either the computer itself or for the user name provided, assuming the username is on the computer.

Get-GPOName

Often times I can't remember all the names of group policy but I will remember parts of the name. In this script I can quickly search for group policy names.

Search-UsersOnComputerForGPO

This little bad boy will search all the users in a single computer for a group policy that you tell it. The best part is it combines the Get-UsersGPO and Get-GroupPolicyName. This way if you can't remember the full name, your good to go.

Like I said before, this is my first time creating a module. I have been making scripts for years, but never a module. I thought I would share it. I hope you all like it.

About

A few little scripts that I use to troubleshoot group policy.

Resources

License

Stars

Watchers

Forks

Packages