This is the help on the Net Time command, all the login scripts I've ever written have used the command in the previous post, I've never used a workgroup switch:<br>
<br>
NET TIME [\\computer ¦ /WORKGROUP:wgname] [/SET] [/YES]<br>
<br>
computer Specifies the name of the computer (time<br>
server) whose time you want to check or<br>
synchronize your computer's clock with.<br>
/WORKGROUP Specifies that you want to use the clock on a<br>
computer (time server) in another workgroup.<br>
wgname Specifies the name of the workgroup containing<br>
a computer whose clock you want to check or<br>
synchronize your computer's clock with. If<br>
there are multiple time servers in that<br>
workgroup, NET TIME uses the first one it<br>
finds.<br>
/SET Synchronizes your computer's clock with the<br>
clock on the computer or workgroup you<br>
specify.<br>
/YES Carries out the NET TIME command without<br>
first prompting you to provide information or<br>
confirm actions.<br>