The at command of NT Server details the services of Windows NT Server ProgramThe manager can only set the start mode (automatic, manual, and invalid) of a service. In daily management, it is often required that a service be enabled or disabled on a regular basis. The at Command provided by Windows NT server can achieve this. You can use it to implement the scheduled switch of the RAS Service. The specific steps are as follows: 1. In the "set "? "Control Panel "? "Service" to start the Schedule service and set its "Startup Mode" attribute to automatic. 2. Use the AT command in the Command window to set the timed startup and shutdown of the service program. The at command syntax is as follows: at [\ computername] time [/interactive] [/every: Date [,?] | Next: Date [,?] "Command" parameter meaning: No parameter: displays all scheduled commands that have been set. \ Computername: indicates the name of the computer on which the command is executed. If it is omitted, it is executed on the local machine. Time: command execution time/interactive: whether to interact with the logged-on user when the program is executed. /Every: Date [,?]: Specifies the date on which the program is executed (for example, Tuesday, Wednesday,/every: T, W), No. 1 and No.:/every: 1 and 2 every month ). Next: Date [,?]: Specifies the next execution date of the program. "Command": scheduled Windows NT commands, programs, and batch processing. At [\ computername] [[ID] [/delete] [/Yes] parameter meaning: ID: The identification number assigned to the scheduler command, it can be found by the AT command without parameters. /Delete: cancels the specified scheduler command. If the ID is omitted, all scheduler commands are canceled. /Yes: Yes is mandatory for all cancel requests. Usage 1: regularly start and close a service. Use the example of a RAS service provider to enable the Service at every day and close the service at the next day. The at command is as follows: at/every: M, T, W, th, F, S, Su Net start "remote access server" at 7:30/every: M, T, W, Th, F, S, su net stop "remote access server" usage 2. Timed Shutdown 1. compile a batch processing file with the following content: shutdown/L if you want the machine to restart, use the shutdown/R file to save it as c: \ autoshut. bat 2. create an automatic execution entry: at c: \ autoshut. bat will automatically shut down at every night. A prompt will be sent 30 seconds before the shutdown. the shutdown program comes with Win2k rkit, and windowxp comes with it by default.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service