Giter VIP home page Giter VIP logo

pwsh-group-policy's Introduction

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-UsersGPO

This script will grab the group policy that has been applied to a user on a target machine. You can choose mutliple users and computers as well. So, if you want to know each policy applied to bob from marketing while he was on all of the marketing computers and compare it to fob, this is how you would do that. Get-UsersGPO -Usernames Bob,Fob -ComputerNames Marketing1,Marketing2,Marketing3,Marketing4,Marketing5

If the computer is powered off the script will present an warning that the computer is off. If the script can run on the computer for whatever reason, then the script will state the data was not collected.

You also may use the Credentials tag. It is a object and requires as such.

Get-PCGPO

This script grabs the applied group policy information to the computer in question. For example Get-PCGPO -ComputerNames , will give you the group policy information from both servers.

Once again, if the comptuer is powered off, then you will be greated with a warning.

Get-GroupPolicyName

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.

pwsh-group-policy's People

Contributors

rndadhdman avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.