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.
More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.
Welcome to part one of a multi-part tutorial series, VBScript for Windows System Administrators. The goal of this series is to teach non-programmers how to write useful VBS code to automate their environment, and perform tasks faster, and in a more…
This is an addendum to the following article:
Acitve Directory based Outlook Signature (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_24950055.html)
The script is fine, and works in normal client-server domains…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes.
Assigning simple products to configurable: We assigned simple products…