So....

LLigetfa : it is not a logon script (i am examining ur link about environ variables).

For "the gang", here is my challenge (nothing to win except my congratulations !) [Wink]

The kix script :

####
$server = "x031768"

SHELL "%COMSPEC% /C nettime.bat $server"

? "HOUR = %HH%"
? "Minutes = %MM%"
####

The batch file (nettime.bat) :

###
for /F "TOKENS=7,8 delims=: " %%a in ('net time \\%1') do (
set HH=%%a
set MM=%%b
)
###