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
- Delete Inactive User Profiles with PowerShell
- Getting GPO GUID, Name from Active Directory
- Delete a List of Computer Accounts from Active Directory
- Scriptomatic on Windows 7 Solved
- Export DNS Server Records with PowerShell
- Convert data from Get-ADUser and Get-ADComputer for Export-CSV
- Programatically Uninstall Outlook Patch KB2412171
- Who Joined Computer Account to AD Domain
- Export PowerShell script output to Text with Out-Notepad
- LDAP Ping
Category Archives: Alan’s Favorites
Undelete-ADObject.ps1 is a GUI form based script for undeleting user, computer, group, print queue, and contacts from Active Directory. You can display all of the objects of the selected type, or search by the name. I use this script frequently. … Continue reading
There are some delegations of permissions within Active Directory which cannot be made without extra effort. Some properties are flagged as hidden in a file called Dssec.dat, in %windir%\System32 on computers with the Active Directory Users and Computers (ADUC) MMC. … Continue reading
Mail enabling new users should be easy to do from within the Exchange management console. If you are in a really large organization, you soon discover that it is painfully slow. When we create new users it takes time to … 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
Over time, Active Directory delegations tend to accumulate and drift from the standards in the enterprise. Removing the delegations for a user or group can be slow, especially if you do it manually. Microsoft has a good article about this process, but … Continue reading
I often look at the code of others with respect and admiration. Peter Kriegel (Germany) wrote Export-XLSX.ps1, an amazing script which lets you export data into a real XLSX file without Excel being installed. The script also enables you to … Continue reading
I know, finding the “maximum” MTU is a redundancy, as MTU is an acronym for “Maximum Transmission Units”. However, my needs were to find all the MTUs to each hop of a tracert. Like many scripts, Find-MaxMTU.ps1 turned out to be … Continue reading
How can you tell whether an Active Directory domain controller is functioning properly? How do you know whether some over-zealous VLAN ACL is blocking necessary ports? Testing ICMP, is easy, just ping it. Testing LDAP response isn’t hard, I wrote … Continue reading
My first attempt at a GUI to select objects properties demonstrated that I didn’t have a firm grasp on how to pipeline an object through an advanced function. The problem I had at the time was not understanding how to … Continue reading
OUADSPathToClip.ps1 is an updated version of OUADSPath2Clip.ps1 and is an example implementation of the new Select-OU.ps1 script. Fast navigation of OU structure to copy the OU’s DistinguishedName into your clipboard. Version 1.1 allows control of form and button text.