Monday, July 6, 2009

Microsoft Technet Summer Scripting Games : Javelin Throw

I was invited to be a guest commentator for the Javelin Throw event during the recently concluded Microsoft Technet's Summer Scripting Games. For this scenario, I had to write a time logger with time-stamped text entries that describe a particular activity. I created a VB script that accepts user inputs as arguments, stores these together with the date and time of the activity, amount of time spent on the activity, the status of the activity and some remarks onto a CSV file.



You can find my write-up and solution at this link:

Thursday, June 25, 2009

Checking for Remote Desktop Status of a Remote Server

Here's a script that checks for the Remote Desktop feature status of a remote server. The server hostnames are read off a servers.ini file. The server's registry is then queried for the DWORD value of fDenyTSConnections under the server's HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server registry key.




Wednesday, June 24, 2009

List Local Users of Remote Systems (Powershell)

Here's a Powershell script that reads the hostnames off a text file (hosts.ini) and lists all the local users of the remote host: