I am creating a SOE image for a rollout of about 500 pc's. These pc's will be all over australia so i am in the process of creating a vb script that will allow the users to select the state they are in and it will change the timezone on the machine accordingly.
I am using vbscript to call on the command line tool TZutil.exe. This is a summary of the code i am trying to get working
ChangeTimeZone("Aus Eastern Standard Time")
Set objShell = CreateObject("WScript.shell")
objShell.Run "tzutil.exe /s" & strTimeZone
wscript.echo ("Timezone changed to " & strTimeZone)
However i think the above code is presenting TZutil.exe /s Aus Eastern Standard Time instead of what i need in TZUTIL /s "Aus Eastern Standard Time"
The missing " " around the timezone name is what seems to be breaking this for me. I need to find some what to ensure that the time zone is passed through to the command line with the " " around it
The question is how do i get this to work. I have only started learning VB so this is a new thing for me. Any assistace will be greatly appreciated. As this is the last thing of a long complicated process.
Is it simple process to get the command parsed through including the " " around the timezoneID or is there a major complicated re-write of code I need to do.
Script to copy or move mouse-selected collection of files plus targets referenced by shortcuts (.lnk)
The purpose of this article is to help illuminate the real challenges and options available (where they may exist) for utilizing simple scriptin…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data.
A Microsoft Access subform is used to show relevant calcul…