Scripting Blog

A place to learn about PowerShell and share stories of automation

How Can I Remove an Item from a List Box in an HTA?

Hey, Scripting Guy! In an HTA, how can I remove an item from a list box?-- LW Hey, LW. You know, we Scripting Guys are forward-thinking guys and, as such, we never look back. Did we put an item in a list box? If so, there must have been a darn good reason for that and we’d never even consider removing it. What’s done is done, you know; ...

How Can I Clear the Logon Script Path for All My Users?

Hey, Scripting Guy! How can I clear the logon script path for all my users?-- TF Hey, TF. You know, during in a momentary bout of insanity one of the Scripting Guys once agreed to play his son in an Xbox college football game. “It’s really easy to play,” noted the Scripting Son, who then proceeded to provide a brief tutorial on how to...

How Can I Check to See if a User Exists in an NT 4 Domain?

Hey, Scripting Guy! How can I check to see if a user exists in an NT 4 domain?-- PA Hey, PA. You know, if you were to ask us, “How do you back your car out of your driveway?” we’d probably tell you that - after checking all the mirrors - we turn so that we’re facing directly out the back window of the car and then slowly and ...

How Can I Remotely Start an Interactive Process?

Hey, Scripting Guy! How can I remotely start an interactive process?-- IS Hey, IS. Well, the short answer is this: you can’t, at least not on Windows XP or Windows Server 2003. On those two versions of Windows any processes started remotely run in a hidden window: those processes can’t be interactive because the user will never see them...

How Can I Return a List of All the Users Whose User Account Never Expires?

  Hey, Scripting Guy! How can I return a list of all the users whose user account never expires?-- PG Hey, PG. You know, no one - not even his own mother! - has ever claimed that the Scripting Guy who writes this column is a genius. Needless to say, then, the first time he read this question he thought it said, “How can I return a ...