All the scripts are saved as .txt files. Newer files have a "View Script" button which will let you save or open a script in notepad. For earlier posts, the easiest way to download with IE is to right click on the link and use "Save Target As". Rename file from Name_ext.txt to Name.ext.
To see a full post after searching, please click on the title.
PowerShell Scripts were written with Version 3 or 4.
https connections are supported.
All new users accounts must be approved, as are comments. Please be patient. It is pretty easy to figure out my email address from the scripts, and you are welcome to contact me that way.
Top Posts & Pages
- Fast PowerShell Treeview OU Selection Form
- Remove DNS Host Record and PTR with PowerShell
- Delete Inactive User Profiles with PowerShell
- Get the Parent OU for an AD Object
- Test Whether Organizational Unit or Account Exists
- Export DNS Server Records with PowerShell
- Get MAC Address from IP Address
- Get Distinguished Name of Many computers in PowerShell (Revised)
- Create Import file for Remote Desktop Connection Manager 2.7
- Check for Broken Sids
Category Archives: Group Policy Objects
How quickly can you answer this question: Which Group Policies reference batch files, vbscripts, or PowerShells? What is the best way to get the information and present it into a spreadsheet? I did it by searching SysVol for the script.ini … Continue reading
It is annoying that there isn’t a command line for the Group Policy Editor. To edit a GPO you must 1) open the Group Policy Management Console, 2) Open the list of Group Policies, 3) select the GPO you want … Continue reading
You don’t have to rely on the Group Policy Module to resolve the display name of a GPO from the GUID, or the GUID from the display name. Here are two short functions that will get that information from Active … Continue reading
Clearing the GPO cache on a computer may be the only way to fix a persistent problem. Doing this involves deleting files, registry entries, and rebuilding the security database. Clear-GPOCache.ps1 works by creating a custom batch file on the remote … Continue reading
Get-AllGPOsLinkedToOU.ps1 returns a unique list of all GPO’s linked to an OU. You can also run a onelevel or subtree search to get a unique list of linked OUs at or below the selected OU. You are prompted for the … Continue reading
This script deletes the locally stored copies of GPOs and forces a GPUPdate on a computer. Reset-GPOCache.ps1 works by a remote connection to the registry provider to get the path to the Group Policy\History folder, then deletes the files beneath … Continue reading
The Get-GPResultantSetOfPolicy cmdlet in the GroupPolicy module of PowerShell has a parameter for a user name. Often I have no idea who has logged onto the computer. Get-RSOP.ps1 uses WMI to give you a pick list of users on the … Continue reading
Here is the unsupported method from Microsoft for editing the path for shares and printers inside a GPO. From a server — 1) Backup the problem GPO to your desktop 2) Edit the gpreport.xml and backup.xml files 3) Import the … Continue reading