rolamohammed
asked on
Very Urgent Script For Mr. Brian
Hi Brian,
this is your Firend again Rola.
I am have some Probelm Here and really i need your Help .
I have here My Network Consist of One Domain Controller with this Name :-
HO-SRV-DC1.EGYSOLUTIONS.CO M
with this IP-Address 172.16.1.1
this server is a domain controller and its the Master server .
i have also 60 user under this doamin.
the time on the server & the date on the server is Correct .
some users , who they are under the domain & they do not have any Problem at all in Time & Date as well.
on the other side, there is some users reported to me that the time and the date is not correct.
when i checked with them, i found that , they are under the domain and they can access the domain.
but the time is not correct and the date as well.
so, is there any script can i write in VBS, so it will synchronization with the Server it self.
i want to synchronization time, date , place as well .
the server IP is 172.16.1.1 .
can any one help me to write this script , in order to put it in the Startup PC for each user.
please Help.
this is your Firend again Rola.
I am have some Probelm Here and really i need your Help .
I have here My Network Consist of One Domain Controller with this Name :-
HO-SRV-DC1.EGYSOLUTIONS.CO
with this IP-Address 172.16.1.1
this server is a domain controller and its the Master server .
i have also 60 user under this doamin.
the time on the server & the date on the server is Correct .
some users , who they are under the domain & they do not have any Problem at all in Time & Date as well.
on the other side, there is some users reported to me that the time and the date is not correct.
when i checked with them, i found that , they are under the domain and they can access the domain.
but the time is not correct and the date as well.
so, is there any script can i write in VBS, so it will synchronization with the Server it self.
i want to synchronization time, date , place as well .
the server IP is 172.16.1.1 .
can any one help me to write this script , in order to put it in the Startup PC for each user.
please Help.
ASKER
So , Please can you helping me in writing a script have this function.
please help me .
please help me .
HI ROLA..
Try to use NTP:
http://www.networkcomputing.com/1413/1413ws1.html
http://www.ntp.org/
http://www.eecis.udel.edu/~mills/ntp.html
SALAM.
TAREK
Try to use NTP:
http://www.networkcomputing.com/1413/1413ws1.html
http://www.ntp.org/
http://www.eecis.udel.edu/~mills/ntp.html
SALAM.
TAREK
ASKER
What is this ,
there is no script i can use it .
please help me
there is no script i can use it .
please help me
It's a simple DOS command. Must the solution be VBS, or can it be a simple command-line instruction?
ASKER
no guys.
because, i will visit each pc , so it wii be complicated for me .
i want to write a script that include this feature .
please help.
because, i will visit each pc , so it wii be complicated for me .
i want to write a script that include this feature .
please help.
OK, try including this line ...
WSHShell.Run "NET TIME \\Server /set /y"
WSHShell.Run "NET TIME \\Server /set /y"
you can do it remotely...
i think this is the best way...
any procedure to do synchronization need to visit or change the configuration on each client PC..
salam
;)
TAREK
i think this is the best way...
any procedure to do synchronization need to visit or change the configuration on each client PC..
salam
;)
TAREK
ASKER
i made this script as per your advice.
WSHShell.Run "NET TIME \\172.16.1.1 /set /y"
and when i try to run it , i got this error message :-
Line: 1
Char : 1
Error : Object required : " WSHSHELL "
Code : 800A01a8
abd its not working.
the script have this line only :-
WSHShell.Run "NET TIME \\172.16.1.1 /set /y"
please update me.
WSHShell.Run "NET TIME \\172.16.1.1 /set /y"
and when i try to run it , i got this error message :-
Line: 1
Char : 1
Error : Object required : " WSHSHELL "
Code : 800A01a8
abd its not working.
the script have this line only :-
WSHShell.Run "NET TIME \\172.16.1.1 /set /y"
please update me.
OK, you need a little more for a full script. Apologies - I assumed you knew how to do that part:
Dim WSHShell
Set WSHShell = CreateObject("WScript.Shel l")
WSHShell.Run "NET TIME /set /y"
set WSHSHell = Nothing
wscript.quit
Dim WSHShell
Set WSHShell = CreateObject("WScript.Shel
WSHShell.Run "NET TIME /set /y"
set WSHSHell = Nothing
wscript.quit
ASKER
Dim WSHShell
Set WSHShell = CreateObject("WScript.Shel l")
WSHShell.Run "NET TIME /set /y"
set WSHSHell = Nothing
wscript.quit
this script is very good,
but can i determine the Server IP Address & Server Name . on it .
Please hElp.
Set WSHShell = CreateObject("WScript.Shel
WSHShell.Run "NET TIME /set /y"
set WSHSHell = Nothing
wscript.quit
this script is very good,
but can i determine the Server IP Address & Server Name . on it .
Please hElp.
what do you mean determine?? dont you have them .?? you can use them..
WSHShell.Run "NET TIME \\Server /set /y"
WSHShell.Run "NET TIME \\Server /set /y"
ASKER
Dear bpmurray
my PC is Connected to the Network and Have DHCP Enable , But its not under the domain, its workgroup.
i can access the server " Domain Controller " normally without any Problem.
Now, My PC was configured coreectly and i am login to it as Administrator.
Now, what i did is to test your script is :-
1- i change the Time & the Date from 2006 to 2000.
2- I change the time zone from my local to another one .
3- I disable the Internet time feature .
after that , my PC was configured to the date 20-2-2000 with time 9:00 PM , while my real time and date which is configured on the server was :-
date:- 28-June-2006
Time :- 14:00 PM
Time zone : Cairo.
and when i click on the script , nothing happen at all .
so the Time & Date & Time Zone , nothing has been chnged on them .
and nothing has been updated by this script.
this script is :-
Dim WSHShell
Set WSHShell = CreateObject("WScript.Shel l")
WSHShell.Run "NET TIME /set /y"
set WSHSHell = Nothing
wscript.quit
please help me .
my PC is Connected to the Network and Have DHCP Enable , But its not under the domain, its workgroup.
i can access the server " Domain Controller " normally without any Problem.
Now, My PC was configured coreectly and i am login to it as Administrator.
Now, what i did is to test your script is :-
1- i change the Time & the Date from 2006 to 2000.
2- I change the time zone from my local to another one .
3- I disable the Internet time feature .
after that , my PC was configured to the date 20-2-2000 with time 9:00 PM , while my real time and date which is configured on the server was :-
date:- 28-June-2006
Time :- 14:00 PM
Time zone : Cairo.
and when i click on the script , nothing happen at all .
so the Time & Date & Time Zone , nothing has been chnged on them .
and nothing has been updated by this script.
this script is :-
Dim WSHShell
Set WSHShell = CreateObject("WScript.Shel
WSHShell.Run "NET TIME /set /y"
set WSHSHell = Nothing
wscript.quit
please help me .
hi
I dont know if u want me to be envolved in your help... cause you r talking to bpmurray
anyway..
in "NET TIME /set /y"
you have to specify the time server..
I dont know if u want me to be envolved in your help... cause you r talking to bpmurray
anyway..
in "NET TIME /set /y"
you have to specify the time server..
ASKER
Ok ,
No Problem at all,
also ITANIUM , you can help me please .
Here is Also what i did , please help me .
my PC is Connected to the Network and Have DHCP Enable , But its not under the domain, its workgroup.
i can access the server " Domain Controller " normally without any Problem.
Now, My PC was configured coreectly and i am login to it as Administrator.
Now, what i did is to test your script is :-
1- i change the Time & the Date from 2006 to 2000.
2- I change the time zone from my local to another one .
3- I disable the Internet time feature .
after that , my PC was configured to the date 20-2-2000 with time 9:00 PM , while my real time and date which is configured on the server was :-
date:- 28-June-2006
Time :- 14:00 PM
Time zone : Cairo.
and when i click on the script , nothing happen at all .
so the Time & Date & Time Zone , nothing has been chnged on them .
and nothing has been updated by this script.
this script is :-
Dim WSHShell
Set WSHShell = CreateObject("WScript.Shel l")
WSHShell.Run "NET TIME /set /y"
set WSHSHell = Nothing
wscript.quit
please help me .
No Problem at all,
also ITANIUM , you can help me please .
Here is Also what i did , please help me .
my PC is Connected to the Network and Have DHCP Enable , But its not under the domain, its workgroup.
i can access the server " Domain Controller " normally without any Problem.
Now, My PC was configured coreectly and i am login to it as Administrator.
Now, what i did is to test your script is :-
1- i change the Time & the Date from 2006 to 2000.
2- I change the time zone from my local to another one .
3- I disable the Internet time feature .
after that , my PC was configured to the date 20-2-2000 with time 9:00 PM , while my real time and date which is configured on the server was :-
date:- 28-June-2006
Time :- 14:00 PM
Time zone : Cairo.
and when i click on the script , nothing happen at all .
so the Time & Date & Time Zone , nothing has been chnged on them .
and nothing has been updated by this script.
this script is :-
Dim WSHShell
Set WSHShell = CreateObject("WScript.Shel
WSHShell.Run "NET TIME /set /y"
set WSHSHell = Nothing
wscript.quit
please help me .
ASKER
Dear ITANIUM / bpmurray
==========================
my PC is Connected to the Network and Have DHCP Enable , But its not under the domain, its workgroup.
i can access the server " Domain Controller " normally without any Problem.
Now, My PC was configured coreectly and i am login to it as Administrator " MY PC ".
THe Time on My PC was configured correct ( 29-june-2006 , 14:21PM ).
Now, what i did is to test your script is :-
1- i change the Time & the Date from 2006 to 2000.
2- I change the time zone from my local to another one .
3- I disable the Internet time feature .
after that , my PC was configured to the date 20-2-2000 with time 9:00 PM , while my real time and date which is configured on the server was :-
date:- 28-June-2006
Time :- 14:00 PM
Time zone : Cairo.
and when i click on the script , nothing happen at all .
so the Time & Date & Time Zone , nothing has been chnged on them .
and nothing has been updated by this script.
this script is :-
Dim WSHShell
Set WSHShell = CreateObject("WScript.Shel
WSHShell.Run "NET TIME /set /y"
set WSHSHell = Nothing
wscript.quit
So Please Help me to do that , ASAP .
Please ,
i already specified the server , and i got the same result .
Urgent Help is Required
You can also synchronize all timesource computers with a master timesource computer using the command: NET TIME \\<computername> /SET.
you have to specify something inside in NET TIME.. NET TIME \\<computername> /SET /Y
goodluck
you have to specify something inside in NET TIME.. NET TIME \\<computername> /SET /Y
goodluck
ASKER
Ok,
You can also synchronize all timesource computers with a master timesource computer using the command: NET TIME \\<computername> /SET.
you have to specify something inside in NET TIME.. NET TIME \\<computername> /SET /Y
this is what i did , and i got nothing ,
please explain to me in details what do you want exactly ??
You can also synchronize all timesource computers with a master timesource computer using the command: NET TIME \\<computername> /SET.
you have to specify something inside in NET TIME.. NET TIME \\<computername> /SET /Y
this is what i did , and i got nothing ,
please explain to me in details what do you want exactly ??
no thats what i wanted ...but you specified in your post:
this script is :-
Dim WSHShell
Set WSHShell = CreateObject("WScript.Shel l")
WSHShell.Run "NET TIME /set /y" ----------you are not specifying the master..
set WSHSHell = Nothing
wscript.quit
but maybe there is some syntax in your caommand??!!
this may help also
http://www.computerhope.com/nethlp.htm
this script is :-
Dim WSHShell
Set WSHShell = CreateObject("WScript.Shel
WSHShell.Run "NET TIME /set /y" ----------you are not specifying the master..
set WSHSHell = Nothing
wscript.quit
but maybe there is some syntax in your caommand??!!
this may help also
http://www.computerhope.com/nethlp.htm
ASKER
Please tell me , how can i specify the master ??
please update me .
please update me .
ASKER
Ok,
i tested it , and its working without any Problems
But , i discover that , when i am change the time zone on the clock , and run the script, there is nothing happen at all .
so, the date is still wrong , after run the script as well.
but , if i change the Time , Date , and run the script , i found that , its working Perfect.
so , here is mY question.
can i add in my script , any thing to configure the PC directly according to the server , but it will give him this time zone :-
( GMT +03:00 ) Kuwait,Riyadh
Please Help me .
i tested it , and its working without any Problems
But , i discover that , when i am change the time zone on the clock , and run the script, there is nothing happen at all .
so, the date is still wrong , after run the script as well.
but , if i change the Time , Date , and run the script , i found that , its working Perfect.
so , here is mY question.
can i add in my script , any thing to configure the PC directly according to the server , but it will give him this time zone :-
( GMT +03:00 ) Kuwait,Riyadh
Please Help me .
the command will looks like:
lets say your domain name is dmn
Synchronise the computer's clock with that of the domain.
NET TIME /dmn /SET /Y
Synchronise the computer's clock with a different domain.
NET TIME /DOMAIN:domainname /SET
lets say your server name is ROLA
Synchronise the computer's clock with that of another computer
NET TIME \\ROLA/SET /YES
Under Windows 2000 - you can also use the "w32tm" command
Synchronise the computer's clock with a time server in a different domain.
NET TIME /RTSDOMAIN:domainname /SET
is that fine??!
lets say your domain name is dmn
Synchronise the computer's clock with that of the domain.
NET TIME /dmn /SET /Y
Synchronise the computer's clock with a different domain.
NET TIME /DOMAIN:domainname /SET
lets say your server name is ROLA
Synchronise the computer's clock with that of another computer
NET TIME \\ROLA/SET /YES
Under Windows 2000 - you can also use the "w32tm" command
Synchronise the computer's clock with a time server in a different domain.
NET TIME /RTSDOMAIN:domainname /SET
is that fine??!
ASKER
Ok,
i tested it , and its working without any Problems
But , i discover that , when i am change the time zone on the clock , and run the script, there is nothing happen at all .
so, the date is still wrong , after run the script as well.
but , if i change the Time , Date ONLY
and run the script , i found that , its working Perfect.
and every thing return back to the normal situation.
so , here is mY question.
can i add in my script , any thing to configure the PC directly according to the server , but it will give him this time zone :-
( GMT +03:00 ) Kuwait,Riyadh
so each pc will run this script, will automatically configured on ( GMT +03:00 ) Kuwait,Riyadh ,
Please Help me .
i tested it , and its working without any Problems
But , i discover that , when i am change the time zone on the clock , and run the script, there is nothing happen at all .
so, the date is still wrong , after run the script as well.
but , if i change the Time , Date ONLY
and run the script , i found that , its working Perfect.
and every thing return back to the normal situation.
so , here is mY question.
can i add in my script , any thing to configure the PC directly according to the server , but it will give him this time zone :-
( GMT +03:00 ) Kuwait,Riyadh
so each pc will run this script, will automatically configured on ( GMT +03:00 ) Kuwait,Riyadh ,
Please Help me .
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
nice info but a simple correction:
WSHShell.Run "Control.exe TIMEDATE.CPL,,/Z (GMT +03:00) Kuwait,Riyadh"
no space between GMT and +03:00
also there is a space between , and Riyadh.
thanks for the info
;)
WSHShell.Run "Control.exe TIMEDATE.CPL,,/Z (GMT +03:00) Kuwait,Riyadh"
no space between GMT and +03:00
also there is a space between , and Riyadh.
thanks for the info
;)
> no space between GMT and +03:00
> also there is a space between , and Riyadh
Ah - I just glanced at what displayed on the drop-down: should have been more careful :-)
> also there is a space between , and Riyadh
Ah - I just glanced at what displayed on the drop-down: should have been more careful :-)
;)
NET TIME /SET