Scripting Blog

A place to learn about PowerShell and share stories of automation

How Can I Lower the Priority of a Process Using a Script?

Hey, Scripting Guy! How can I lower the priority of a process using a script?-- HS Hey, HS. As many of you know, all processes are not created equal; instead processes are assigned priority values. Processes with a high priority are executed more often (and thus appear to run faster) than processes with a lower priority. For example, both ...

How Can I Display the Vertical and Horizontal Sizes of a .JPG File?

Hey, Scripting Guy! How can I display the vertical and horizontal resolutions of a .JPG file?-- ST Hey, ST. This is a very commonly-asked question, and for the longest time we had no answer for it: nothing built into the operating system seemed capable of returning this information, and even Dsofile, a COM object released by the Microsoft ...

How Can I Get a List of All the Disabled User Accounts in Active Directory?

Hey, Scripting Guy! How can I get a list of all the disabled user accounts in Active Directory?-- RT Hey, RT. Now, just remember, you asked for this. We have a script that returns a list of disabled user accounts in Active Directory; the only problem is that part of the script is a little cryptic (to say the least), and we won’t be able ...

How Can I Rename a Local Area Connection?

Hey, Scripting Guy! How can I rename a local area connection?-- AP Hey, AP. You know, you hurt our feelings here: we Microsoft types spent a lot of time coming up with clever and catchy names like Local Area Connection, Local Area Connection 2, and Local Area Connection 3. And now you say you want to change those names? That hurts. But you ...

How Can I Add an Email Address to the proxyAddresses Attribute?

Hey, Scripting Guy! How can I add an email address to the proxyAddresses attribute without overwriting all the existing attributes?-- DH Hey, DH. For those of you who aren’t too familiar with the proxyAddresses attribute (and, alas, that includes the Scripting Guys) proxyAddresses is an attribute added to Active Directory by Microsoft ...