Tag Archives: Scripting

Getting GPO GUID, Name from Active Directory

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

Posted in Active Directory, Functions, Group Policy Objects, PowerShell, Scripting, Scriptlets | Tagged , , , | Leave a comment

Add-WindowsFeature Alternative for Client OS

Waiting for the add remove features dialog populate on my client OS computer is slow.  Since I started using Add-WindowsFeature wither Server 2008, and Install-WindowsFeature beginning with Server 2012, I was disappointed by the lack of a similar cmdlet for … Continue reading

Posted in PowerShell, Scripting, Windows 10, Windows 7, Windows 8, Windows Administration | Tagged , , | Leave a comment

Fix Creation Date Later than Date Modified with PowerShell

A weird and annoying thing happened to my home directory at work when it was moved from Windows to a storage appliance. The file CreationTime was lost on all the files and was set to the date of the data … Continue reading

Posted in PowerShell, Scripting, Scriptlets, Windows Administration | Tagged , , | Leave a comment

Adding Terminal Services Information to User Reports

Add-ADTSInfo.ps1 adds TerminalServicesHomeDrive, TerminalServicesHomeDirectory, TerminalServicesProfilePath and AllowLogon as additional members returned by a query of Active Directory user objects.  As you may know, when looking at a user’s properties in the Active Directory Users and Computers MMC there is a tab … Continue reading

Posted in Active Directory, Functions, PowerShell, Scripting | Tagged , , , | Leave a comment

Get Oldest Windows Event

Get-OldestEvent.ps1 is a PowerShell advanced function which returns the oldest event from a Windows computer event log, and will help you determine the rollover time for an event log by also returning the age of the record as a time … Continue reading

Posted in PowerShell, Scripting, Security, Windows Administration | Tagged , , | Leave a comment

Passwords for Password Resets

I discovered that my script to generate passwords, RandomPW.vbs, isn’t popular with users because the passwords are random.  I have an even more complicated but unposted PowerShell version with the same issue. I wanted to create something that was easier … Continue reading

Posted in PowerShell, Scripting, Security, Windows Administration | Tagged , , , | Leave a comment

Test Whether Organizational Unit or Account Exists

Here are two quick functions which I have recently found useful. The first tests whether a user account exists. It takes the Domain and Identity as arguments. Using the “Stop” error action with Try/Catch keeps it from showing any errors. … Continue reading

Posted in Active Directory, PowerShell, Scripting | Tagged , , | Leave a comment

That VbScript worked in XP, Why Not Now?

Do you have a script that worked with your x32 XP computer, but no longer works in Windows 7 or 8 x64?  I am finding that some of the scripts I wrote have this problem.  Somethings may rely on an … Continue reading

Posted in Scripting, VbScript, Windows 7, Windows 8 | Tagged | Leave a comment

Laptop Return Reminder

We love our users, yes we do!  Especially the ones who walk out the door with a laptop that they refuse to return.  Having a computer off the corporate network for an extended period of time can create problems with … Continue reading

Posted in Scripting, Security, VbScript, Windows Administration | Tagged , | Leave a comment

Make RDP files

MakeRDPFiles.vbs is a vbscript based on the RDP History script posted earlier.  It take your RDP history and creates a folder with connection files for each of the systems you have previously connected to.  Rename from .txt to .vbs.

Posted in Computing, Scripting | Tagged , | Leave a comment