While helping a peer at a Junior College clean up a their Active Directory I wrote this one liner to set the Display Name field uniformly for all of their accounts. It just takes every AD account with a specific UPN and sets display name to Last, First for each user based on what they already have in AD for Given Name and Surname.
Category Archives: PowerShell
PowerShell, Write log and email
One of the key components to many of my scripts is to have it produce either a transcript or CSV or both and send out an email with that attached. You can take and modify this code to make files for input into a Database or to simply send out a “I ran a script” email.
PowerShell, Rename Computer Remotely
In keeping with the last few posts this is a short but handy IT tool in a short but (hopefully) handy post. Computer naming conventions are a common practice in almost every organization. However, sometimes a machine gets misnamed or moved and we need to rename it. Of course you could send a tech or sysadmin to lay-on-hands and change the computer name through the GUI but that is time consuming and if the machine is at a remote site impractical. Luckily PowerShell can help us out here.
Show IE trusted sites from PowerShell
Like most organizations Sul Ross uses Active Directory Group Policy Objects to manage the Trusted Sites list in the Internet Explorer Internet Zone. If you are a part of Sul Ross and need to have a site added University wide or just to a single computer please reach out to help desk by emailing techassist@sulross.edu or calling extension 8888. If you’d like to just check what sites are listed in the Trusted Sites section on your computer you can run the following command.