Link to home
Start Free TrialLog in
Avatar of jgomez
jgomez

asked on

net time in a remote workstation from the server

Hello,

The command is
net time /domain:domain /set
But this works if I go to the NT workstation 4.0 and log on as administrator. So I think the best solution is in my server with the schedule execute this command every day.

But how can I say to my server that the command must be run in a remote workstation. For example in Unix environment is like this:

rsh workstation_name  'net time /domai... '

How can I do this?

Thanks.
Avatar of BlackMan
BlackMan

You can't! What you can do, if your task is to syncronize the time of the workstations, you can either assign the SetTime right to the users, which will allow you to do a NET TIME without been logged on as Administrator, or you can take a look at the TimeServ service from the Resource Kit. TimeServ can syncronize the time against a bunch of different timeservers..
ASKER CERTIFIED SOLUTION
Avatar of moellert
moellert

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Koen
You could also consider making the users Power Users on the local machine !

That way they can set the time (i.e. synchro with server) and there able to share (very interesting for adding printers!).

You'd do this the easiest way by adding the Domain Users  group to the local Power users group.
Avatar of jgomez

ASKER

I think assign the SetTime right to the users it is a good solution. When user log on they automatically execute in a general start script  net time /domain:my_domain /set, but the system ask for a confirmation.

I have 5000 student users, and they don't understand about this. So I would like the system doesn't ask for a confirmation. How can I do this?

Thanks very much.
Pipe a Yes with your command :

net time /domain:my_domain /set /y

that should get rid of the confirmation
Avatar of jgomez

ASKER

Thanks ghinstek. I give points to moellert because it was the first and I don't know how to distribute points. It would be better 50 points for you, and 50 for moeller. Sorry.

One question, when a command ask for a confirmation, if you use the parameter /Y, then it doesn't ask for a confirmation, isn't it? Does it work with all commands? If you want to answer: jgomez@aq.upm.es because question it's close.

Thanks  very much.
It doe´sn´t work with every command. Only a few commands have the option /Y or /yes.