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
- Get MAC Address from IP Address
- Delete Inactive User Profiles with PowerShell
- Getting GPO GUID, Name from Active Directory
- Get the NetBIOS AD Domain Name from the FQDN
- Export DNS Server Records with PowerShell
- Delete a List of Computer Accounts from Active Directory
- Scriptomatic on Windows 7 Solved
- Too many permissions in AD
- ShareEnum Alternative
- LDAP Ping
Tag Archives: GPO
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
If you use GPOs to enforce baselines, you may find that your enterprise is moving from version 1.1 to version 1.2 of a GPO. Unfortunately for you, version 1.1 linked in a dozen places. Wouldn’t you rather just you search … 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
Our Active Directory lead recently complained to me that he didn’t have a good way to compare Group Policy Objects. I had already written the Group Policy Reporter, which exports GPOs to HTML files, and it occurred to me that … Continue reading
Over the past few months I have been spending more and more time working with PowerShell. I have gone to Windows 8 on my personal laptop, and am impressed by PowerShell 3.0. I have joined the Charlotte PowerShell User’s Group which … Continue reading