Create a forced configuration file

Source: Internet
Author: User

Mandatory configuration file, that is, no individual configuration files are created for all users.

In this case, after you modify the configuration file (such as modifying the desktop wallpaper and system attributes), logout and re-login will restore the configuration to the standard configuration file, for more information about mandatory configuration files, see the official Microsoft documentation.

Force user configuration file --This file is used to specify the roaming configuration file with special settings for an individual or the entire user group. Only the system administrator can change the mandatory user configuration file.

Next I will write about how to create a mandatory configuration file officially recommended by Microsoft.

The main steps are as follows:

1. Use Standard Users to configure the system and set all desktop and system attributes and Applications

2. Use sysprep to initialize the computer, and use the configuration file to select the copyprofile option.

3. In the previous step, the configured configuration file will be replaced with the default profile.

4. export the default configuration file to the location where the mandatory configuration file is stored (either local or file server). Set the permission to everyone to read and execute the command to rename the exported configuration file folder to mandatory. v2 (it can also be another name. v2)

5. in the ad user attribute, configure the user's configuration file path to \ uncpath \ mandatory or drive: \ path \ mandatory (UNC path or local path can be used). During this configuration, no input is required. v2

6. log on to your computer and check whether the configuration file is mandatory.

7. The configuration is complete.

The configuration is as follows:

1. Create a standard user, install the corresponding application on the computer, and start the configuration.

2. Open WSIM and start creating the sysprep configuration file.

Decompress the ISO file of the Windows 7 CD, open WSIM, right-click the Windows Image bar, click Import Windows Image, and select install in the Sources folder of the ISO folder. wim file, open it and select the operating system version to use

650) This. width = 650; "Title =" image "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" image "src =" http://img1.51cto.com/attachment/201408/18/2011872_1408378649AntB.png "Height =" 338 "/>

Click "yes" to create a directory file.

650) This. width = 650; "Title =" clip_image001 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" clip_image001 "src =" http://img1.51cto.com/attachment/201408/18/2011872_1408378657jHip.png "Height =" 150 "/>

In the Windows Image bar, right-click Microsoft-Windows-shell-setup and choose send to specialize. In the copyfile column on the right, select true.

650) This. width = 650; "Title =" image "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" image "src =" http://img1.51cto.com/attachment/201408/18/2011872_1408378667KNNX.png "Height =" 215 "/>

In the response file, right-click to save the configuration file. The saved configuration file is shown in the attachment (I have created two configuration files: 32-bit and 64-bit)

In Windows 7, log on to Windows 7 using the standard user who has prepared the configuration file and put the configuration file in Windows 7.

Start to execute sysprep

Sysprep/oobe/reboot/generalize/unattend: C: \ win7x64. xml

650) This. width = 650; "Title =" image "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" image "src =" http://img1.51cto.com/attachment/201408/18/2011872_1408378675uJt1.png "Height =" 274 "/>





After the restart, log on to the computer as an administrator, find the default configuration file in the computer configuration file, and copy it to a location.

650) This. width = 650; "Title =" image "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" image "src =" http://img1.51cto.com/attachment/201408/18/2011872_1408378682qtgL.png "Height =" 303 "/>

650) This. width = 650; "Title =" image "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" image "src =" http://img1.51cto.com/attachment/201408/18/2011872_1408378691REPH.png "Height =" 187 "/>

650) This. width = 650; "Title =" image "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" image "src =" http://img1.51cto.com/attachment/201408/18/2011872_1408378696f3sM.png "Height =" 225 "/>

Open the folder option, remove the "Hide protected operating system files" check box, and select "show hidden files, folders, and drives"

650) This. width = 650; "Title =" image "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" image "src =" http://img1.51cto.com/attachment/201408/18/2011872_1408378701MywD.png "Height =" 320 "/>

Change ntuser. dat in the copied folder to ntuser. Man.

650) This. width = 650; "Title =" image "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" image "src =" http://img1.51cto.com/attachment/201408/18/2011872_1408378722BhdW.png "Height =" 274 "/>

650) This. width = 650; "Title =" image "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" image "src =" http://img1.51cto.com/attachment/201408/18/2011872_1408378740auXz.png "Height =" 278 "/>

Copy the modified configuration file to the file server and rename it mandatory. V2.

650) This. width = 650; "Title =" image "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" image "src =" http://img1.51cto.com/attachment/201408/18/2011872_1408378756J5eS.png "Height =" 201 "/>

Modify user attributes and the configuration file path to \ UNC \ managory

650) This. width = 650; "Title =" image "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" image "src =" http://img1.51cto.com/attachment/201408/18/2011872_1408378770sMqF.png "Height =" 363 "/>

Configuration complete

Force the configuration file to be placed locally for better performance, such as c: \ Users \ mandatory. v2

Note: The folder created here must be in. V2 format, but remove. V2 when specified.

This article from the "Meng Ji Chao technology blog" blog, please be sure to keep this source http://superdream.blog.51cto.com/2011872/1541818

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.