Code for disabling (enabling) group policy using batch processing

Source: Internet
Author: User

Disable (enable) group policy using batch processing
Regsvr32/s/u gpedit. dll disabled
Regsvr32/s gpedit. dll Enabled

You can still disable group policies by using this command, but the consequence is-
At this time, the running group policy is basically an empty shell! The following batch processing will perfectly solve such problems!

Compile the following code into a BAT batch file. This is the command to disable the Group Policy.Copy codeThe Code is as follows: @ echo off
Regsvr32/s/u fde. dll
Regsvr32/s/u gpedit. dll
Regsvr32/s/u gptext. dll
Regsvr32/s/u wsecedit. dll
Exit

This is to enable the Group PolicyCopy codeThe Code is as follows: @ echo off
Regsvr32/s fde. dll
Regsvr32/s gpedit. dll
Regsvr32/s gptext. dll
Regsvr32/s wsecedit. dll
Exit

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.