We help IT Professionals succeed at work.

How can i change a system date in batch file?

mikef17
mikef17 asked
on
How can i change a system date in batch file?
Comment
Watch Question

Commented:
there is a command called "DATE" that could be used.

DATE
dd-mm-yy

Author

Commented:
hello qpipes!

my computer is part of network.A problem is that a server set date and time for my mashine.
DATE dd-mm-yy haven't effect on my comp.

Have i any other opotion?
mike

See this article.

http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q120944
Using NET TIME for all Workstations and Servers (Q120944)

Patricia / pslh

Commented:
Your out of luck, if the time/date is been set by the server it surgests you are part of a Windows 2000 active directory domain, in which case it is required to logon.

Changing the time will mean you cant logon to the domain anymore.

See the following for claification

http://support.microsoft.com/default.aspx?scid=kb;EN-US;q224799&GSSNB=1

Commented:
-To change the date on a workstation that is part of a domain requires you have the right to change the system time on the local workstation (default permission for Administrator and power users), so you may have to add your domain\user account to localmachine\PowerUsers group.
-Run notepad. Type the word date & save as date.bat on your desktop. When you want to change the date, click on date.bat & enter the new date info.

Author

Commented:
Hi,Housenet!
What's the exact name of permission that give me change
the system time on my local workstation ?
Commented:
-Thats a good question. The "right" is in Control Panel->Administrative Tools->Local Security Policy->User Rights Assignment->Change the system time.
-I should inform you of the fact that if the administrator has placed your 2000 computer in an OU, or has configured the default domain policy on the DC, the settings of the OU, or domain policy can override your local policy.
-Group policy setting in 2000 can be canceled if overriden by a policy that is configured at a higher level. Local,Domain,Site. Etc

Author

Commented:
Thanks Housenet!

Explore More ContentExplore courses, solutions, and other research materials related to this topic.