Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Windows 2008 server domain environment issues scheduled tasks through group policy

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

1. Ad domain environment

2. Service version: 2008

Objective: to issue scheduled tasks through group policy to enable the client to restart regularly every day.

Restart script content:

C:\ WINDOWS\ system32\ shutdown.exe-r-t 60

@ @ echo off

Echo * > > c:\ Scripts.log

Echo "reboot script has been run" > c:\ Scripts.log

Date / T > > c:\ Scripts.log

Time / T > > c:\ Scripts.log

Echo "reboot script run end Line" > c:\ Scripts.log

Echo * > c:\ Scripts.log

@ @ echo on

The first sentence is: restart the system in a minute

The rest is to record the execution time of the script on disk C:\ Scripts.log.

1. Open the Group Policy Manager on 2008 server and create an organizational unit named "test" on the established domain leo.com.

2. Create a new group policy "reboot" above "test"

3. Select the newly created "reboot" group policy, right-click "Edit", and then open "preferences", "Control Panel Settings" and "scheduled tasks" to start setting scheduled tasks.

Add the computer to be tested to the test group in the AD user computer

Enter gpupdate / force in the manual update policy cmd in leo-pc

Check to see if the policy takes effect.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report