Scripting Blog [archived]

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

Hey, Scripting Guy! Weekend Scripter: Configuring W32Time Service Logging

(image)   Microsoft Scripting Guy Ed Wilson here, yesterday I wrote a script that configured my domain controller with an external time source. After doing that, I thought it would be a good idea to have the ability to enable and disable diagnostic logging for the W32Time service. I ran across a pretty good knowledge base article, KB ...

Hey, Scripting Guy! Weekend Scripter: Configuring an Authoritative Time Server in Windows Server

(image)   Microsoft Scripting Guy Ed Wilson here. I finally had a chance to sit down and catch my breath from the 2010 Scripting Games. I reviewed some awesome scripts, and learned many new tricks. I happened to notice that my desktop computer clock was about five minutes slow. I checked and the domain controller was also slow. After ...

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 ...

Hey, Scripting Guy! How Do I Calculate Server Uptime?

(image) Hey, Scripting Guy! I loved your idea about tracking what time my server came up and subtracting it from the current time. I bow at your feet! But guess what? My pointy-headed boss says that does not mean jack squat (or words to that effect). He said to really prove server uptime, I need to track the amount of time the server was ...

Hey, Scripting Guy! How Long Has My Server Been Up?

(image) Hey, Scripting Guy! Everyone at work has the idea that our network is unreliable. However, I know that our servers are seldom down. How can I prove to them that I know my stuff?-- HB(image) (image) Hi HB, You are really asking two questions. The first I can help you with. However, the veracity of your correctness claim is up to ...