Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

Hey, Scripting Guy! How Can I Use Windows PowerShell Jobs in a Script?

(image)   (image) Hey, Scripting Guy! Your examples this week on using Windows PowerShell jobs have all been from the command line. Is it possible to use Windows PowerShell jobs in a script? If so, how would I do it? -- AG   (image) Hello AG, Microsoft Scripting Guy Ed Wilson at your service. The fog covers my front lawn like a ...

Hey, Scripting Guy! How Can I Manage Windows PowerShell Jobs?

(image)    (image) Hey, Scripting Guy! I am not sure how much help running the Get-Process cmdlet as a job is going to be for me in my work environment. I kind of get what you are trying to do—provide an illustrative technique for working with Windows PowerShell jobs—but I have things that take a really long time. I need ...

Hey, Scripting Guy! How Can I Start, Receive, and Manage Jobs in Windows PowerShell 2.0?

(image)    (image) Hey, Scripting Guy! I have been thinking about writing a script and using the .NET Framework class system.thread to give me the ability to do multiple things at once. I need to perform a query of Active Directory Domain Services (AD DS) that will consume a decent amount of time. While waiting for that query to ...

Hey, Scripting Guy! Weekend Scripter: How Can I Run Windows PowerShell Commands Remotely?

(image)  Microsoft Scripting Guy Ed Wilson here. It is Sunday evening in Charlotte, North Carolina, in the United States, which means it is Monday morning on the other side of the world. I was up late last night finishing yesterday’s Weekend Scripter article. My good friend, Jit, found me on Office Communicator, and we chatted for a...

Hey, Scripting Guy! Weekend Scripter: Accessing Environmental Variables

(image)  Microsoft Scripting Guy Ed Wilson here. I spent the day at SQL Saturday in Charlotte, NC. I could not resist the opportunity to network with that many rabid Windows PowerShell addicts. I mean, anyone who gives up their Saturday to come to a Microsoft office and sit in training sessions all day is dedicated. Definitely my type of ...