Link to home
Start Free TrialLog in
Avatar of mikef17
mikef17

asked on

How can i change a system date in batch file?

How can i change a system date in batch file?
Avatar of gpipes
gpipes
Flag of United Kingdom of Great Britain and Northern Ireland image

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

DATE
dd-mm-yy
Avatar of mikef17
mikef17

ASKER

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
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
-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.

Avatar of mikef17

ASKER

Hi,Housenet!
What's the exact name of permission that give me change
the system time on my local workstation ?
ASKER CERTIFIED SOLUTION
Avatar of Housenet
Housenet
Flag of Canada image

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 mikef17

ASKER

Thanks Housenet!