The solution is quite simple to use the cmd.exe command line to change the date or time!
Changing the date or time is sometimes quicker via the command line and makes more sense than to click through windows and buttons in Windows. With the Microsoft date and time tool it is possible, but especially those who like to work with the keyboard will probably find this function very useful. This is not only possible under Windows 11 / 10 / 8.1 / 7. No! It is also popular for administrators, especially on Windows Server 2022, 2019, 2016, .....
In the Windows command prompt, you can change the date using the DATE command.
If you start the DATE command without parameters, it will display the current date and ask for it
a new one. Press ENTER to keep the previous date.
Example 1:
C:\Windows\system32>DATE
The current date is: Fri 06/22/2018
Enter the new date: (mm-dd-yy)
If the command extensions are enabled, the DATE command supports the
"/T" option. This option tells the command that only the current
Date should be output without asking for a date change.
Example 2:
C:\Windows\system32>DATE /T
Fri 06/22/2018
However, you should start the command prompt with administrative rights , otherwise the error message appears:
A required privilege is not held by the client.
Example 3:
C:\Users\Neno\Desktop>DATE
The current date is: Fri 06/22/2018
Enter the new date: (mm-dd-yy) 11-11-18
A required privilege is not held by the client.
If executed correctly, you will not see any message about the date change!
2.) command line to change the time!
Also with the command line (cmd.exe) it is possible to change the current Microsoft Windows PC time! The TIME command can be used for this.
Similar to the DATE command, the current time, if you just want to see what the current time is, will be very useful. Press ENTER to keep the current time.
Example 1:
C:\Users\Neno\Desktop>TIME
The current time is: 4:29:13.12
Enter the new time:
But this is possible with activated command extensions with the "/T" option direk. This option tells the command to display only the current time without asking for a new time input.
Example 2:
C:\Users\Neno\Desktop>TIME /T
The current time is: 4:31:23.41
By entering the new time 5:57 the time without feedback is changed, with wrong it comes to the error message: "
The system cannot accept the time entered".
and again query:
"Enter the new time"
If you do not have a new time just press ENTER to keep the current time.
Example 3:
C:\Users\Neno\Desktop>time 4:36
C:\Users\Neno\Desktop>time 4 37
The system cannot accept the time entered.
Enter the new time: 4:36
C:\Users\Neno\Desktop>
No admin error "A required privilege is not held by the client"
3.) what should I consider when changing the date, or the time!
For example, if you set the date to 5 years, the Chrome browser, Internet Explorer, Firefox, and programs that own the certificates may stop working because the certificate's https / ssl page has expired from the current date range Date setting on your PC, as it is for programs with certificates, here the timestamp of the certificate is no longer correct.
Otherwise, quite handy to change and view the date and time via command line under Microsoft's Windows. The date change on the Windows PC with the CMD prompt, here as examples is explained briefly, and can be safely used on the following operating systems: Windows 11, 10 Pro, Enterprise, Home, Windows 8.1, Windows 8, Windows-Server 2019, 2016, 2012, Windows 7 Basic, Professional, Starter, Ultimate!
The solution is quite easy to move with Powershell and / or cmd.exe files, or folders, here with examples Moving files sometimes makes more sense at the
There are commands to control the power settings under Windows, it makes sense if you want to change them by batch file on Windows OS Here are a few examples,
You can use PowerShell and / or cmd.exe to delete complete directories in one go with subdirectories on Windows 11, 10, Deleting of Directories Preface:
Also during the command input you can change the CMD background color by command and the text, here an example The color values can be indicated by two
The solution is simple to disable and enable SmartScreen via CMD BATCH command and command prompt Smart Screen Internet Explorer disable C:\Windows\System32>REG
In Windows you can start programs via AT at a certain time without additional software programs Start the cmd.exe and use the command "AT" in the combination
In Windows you can copy via COPY command without file explorer, files and directories without additional software Start the cmd.exe and use the command