Scripting Blog

A place to learn about PowerShell and share stories of automation

Hey, Scripting Guy! Quick-Hits Friday: The Scripting Guys Respond to a Bunch of Questions (1/29/10)

In this post:   How Can I Run This Windows PowerShell Command on a Remote Computer? Hey, Scripting Guy! I wanted to run the DU tool on several servers in my environment. Is there a way to script this request via Windows PowerShell? I can run it for one server by doing something like this. PS> du -v "z:windows" | sort -...

Hey, Scripting Guy! How Can I Create Managed Service Accounts?

   Hey, Scripting Guy! The pointy-headed boss is on a rampage. The problem is he has no idea why he is rampaging. This guy makes Nick Bottom seem like Aristotle. His latest obsession concerns service accounts. He wants me to create user accounts, with names like SQL_Service_Account, make these accounts Domain Administrators, and set ...

Dandelions, VCR Clocks, and Last Logon Times: These Are a Few of Our Least Favorite Things

  (Note: This blog post appeared originally as an article on the old Microsoft Script Center. It was originally published in December 2005. We are resurrecting it here by popular demand.) Sometimes the things that should be so easy turn out to be incredibly difficult. For example, have you ever tried to get rid of dandelions? (One of the ...

Hey, Scripting Guy! Can I Use Windows PowerShell to Manage AD DS Security Groups?

  Hey, Scripting Guy! I am a MCSE and I still remember my instructor at the training center running around the room shouting, “Users go into groups, and groups get assigned rights and permissions.” Over and over again in different manners and in different language, but always with the same intent, he kept repeating the same ...

Hey, Scripting Guy! How Can I Create Users and Organizational Units with Active Directory Domain Services Cmdlets?

  Hey, Scripting Guy! I am interested in using Active Directory Domain Services (AD DS) cmdlets to create users and organizational units. Is this a hard thing to do? I only ask this because I am an extremely busy network administrator who has barely had time to begin looking at Windows PowerShell. I do not have a lot of time to spend ...

Feedback usabilla icon