3.7 Performing Bulk Replacement of Configuration File

With the Microsoft Group Policy Management Console (GPMC), you can update or customize the parameters of the configuration file in multiple machines of a domain by replacing the configuration file. To replace the configuration file in all machines within a domain, perform the following steps:

  1. Create a configuration file config.properties with the preferred parameters.

  2. Copy this configuration file to a network folder.

  3. Open Group Policy Management console.

  4. Right-click the domain name and select Create GPO in this domain, and Link it here.

  5. Specify a name for the Group Policy Object and click OK.

    You can use the name to update the configuration file.

  6. Right-click the created GPO and click Edit.

  7. Click Computer Configuration > Preferences > Windows Settings.

  8. Right-click Files and select New > File.

  9. Change Action to Replace.

  10. In Source file(s) specify the path of the configuration file located on the network folder.

  11. In Destination File, specify the path: C:\ProgramData\NetIQ\Device Service\config.properties.

  12. Clear all the Attributes options.

  13. Click OK.

  14. Create a group in the domain with computers on which you want to replace the Device Service configuration file.

  15. In the Security Filtering section of the Group Policy Management console, for the used GPO remove the Authenticated Users.

  16. Click Add and select the created group.

  17. Click Delegation.

  18. Right-click the added group and select Edit settings, delete, modify security.

  19. Run gpupdate /force on the computer where you will replace the configuration file or wait till the policy is applied automatically.