Re: Synchornize date script
- From: Jose <hola@xxxxxxxxxxx>
- Date: Thu, 25 Jun 2009 16:52:50 -0500
First thanks Pegasus for you support, here it is what Im doing so far:
I create an account called schedule, as administrator.
Im going to scheduled tasks and in the task wizard I look for my .bat file that contains the command ¨net time \\server /set /yes¨ and Im scheduling every day and I also marked ¨every time I logon¨ and then I put my schedule account credentials.
I enter as my normal user account but nothing happends, Am I doing something wrong?
Again thanks.
Pegasus [MVP] wrote:
It seems you missed my point:.
**********
You need to run the task under a local account with admin privileges (e.g. "schedule").
**********
This works - guaranteed! If you cannot get it to work then please post the following details:
- The exact command line you use in the Task Scheduler.
- The name of the local account you use to run the scheduled job.
- The group memberships of this account. The command "net user xxx" will tell you (replace xxx with the actual account name)
"Jose" <hola@xxxxxxxxxxx> wrote in message news:OzE7dmd9JHA.4944@xxxxxxxxxxxxxxxxxxxxxxxI have tried all these and nothing, the hour doesnt change, and it is because the user doesnt have permission to modify the date, because with a user with admin rights, the script works just fine.
Any other suggestion?
Thank you
Pegasus [MVP] wrote:"Jose" <hola@xxxxxxxxxxx> wrote in message news:OJ2kAbb9JHA.2872@xxxxxxxxxxxxxxxxxxxxxxxRichard Mueller [MVP] wrote:The simplest way is probably to create a scheduled task on each workstation. It should run once every day and also at logon time and it should execute this command:"Pegasus [MVP]" <news@xxxxxxxxxxxxx> wrote in message news:eCJuy2a9JHA.5040@xxxxxxxxxxxxxxxxxxxxxxxThank you very much for your response, these computers doesnt have Internet connections, so I cant synchronize with an external source, that´s why I want to do it to my local server, which, by the way has Internet connection."Jose" <hola@xxxxxxxxxxx> wrote in message news:%23doa2Ya9JHA.4168@xxxxxxxxxxxxxxxxxxxxxxxAs noted, the recommended approach is to configure PC's to synchronize with external time source. This kb article should help:Hi people,Instead of synchronising my client PCs with my server I would synchronise all of them with an external time source, using the inbuilt "Windows Time". In this way all machines would show correct time at all times, independently of any script.
Im having the following problem:
I have a network with my server but the client computers are not in AD, the problem Im having is that some of them have
problems with the dates, which is very critical due to my database application.Im trying to synchronize the computers with my
server. All my users are local users and they are restrictive users, meaning that they cant change the date.
I was trying to use a logon script with net time \\servername /set /y , but this only work with administrative rights, I tried all I know to make
this script work with my local users.
Is there any parameters that can make this script to run with normal user?
Im really desperate wit this.
Thanks in advance
--
NNTP.hk - (^(oo)^)
http://www.nntp.hk/web/
http://support.microsoft.com/kb/307897
The least safe approach is to use logon scripts, as you must use alternate credentials which exposes the administrator password. If you have no connections to Internet, another approach might be to run a script yourself (as a member of local Administrators group on each computer) that connects to each computer remotely and synchronizes the time. Even here, however, it would be better to have each computer automatically synchronize with one reliable computer in the workgroup, so they all agree.
Im not an expert in scripting but how can I do this ¨run a script yourself (as a member of local Administrators group on each computer) that connects to each computer remotely and synchronizes the time.¨
Thank you a lot for your responses.
net time \\Server /set /yes
You need to run the task under a local account with admin privileges (e.g. "schedule").
- Follow-Ups:
- Re: Synchornize date script
- From: Pegasus [MVP]
- Re: Synchornize date script
- References:
- Synchornize date script
- From: Jose
- Re: Synchornize date script
- From: Pegasus [MVP]
- Re: Synchornize date script
- From: Richard Mueller [MVP]
- Re: Synchornize date script
- From: Jose
- Re: Synchornize date script
- From: Pegasus [MVP]
- Re: Synchornize date script
- From: Jose
- Re: Synchornize date script
- From: Pegasus [MVP]
- Synchornize date script
- Prev by Date: Re: Synchornize date script
- Next by Date: Re: Synchornize date script
- Previous by thread: Re: Synchornize date script
- Next by thread: Re: Synchornize date script
- Index(es):
Relevant Pages
|