Export/Import Group Policies and Services Windows 10





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







-1















I have configured Registries, Services, and Group Policies on Windows 10 to tailor my windows experience. I also tend to experiment with my OSes a lot and often I end up re-installing Windows and having to go through setting up all the aforementioned settings.



I am looking for a way to export the above settings (all three of them) in such a way that I can then import them in one click on a fresh Windows installation to avoid having to set up everything from scratch. I was able to export Registries easily and I know I can import that just fine. However, when I export Services and Group Policies, it outputs a .txt file and there doesn't seem to be a way to import them. Any ideas?










share|improve this question























  • This might be useful Import a GPO from a File. It isn't clear if you are talking about an Active Directory domain or just local machine's group policies.

    – Ramhound
    Jan 30 at 19:10













  • local machine's group policies. Sorry!

    – Ptheguy
    Jan 30 at 19:18


















-1















I have configured Registries, Services, and Group Policies on Windows 10 to tailor my windows experience. I also tend to experiment with my OSes a lot and often I end up re-installing Windows and having to go through setting up all the aforementioned settings.



I am looking for a way to export the above settings (all three of them) in such a way that I can then import them in one click on a fresh Windows installation to avoid having to set up everything from scratch. I was able to export Registries easily and I know I can import that just fine. However, when I export Services and Group Policies, it outputs a .txt file and there doesn't seem to be a way to import them. Any ideas?










share|improve this question























  • This might be useful Import a GPO from a File. It isn't clear if you are talking about an Active Directory domain or just local machine's group policies.

    – Ramhound
    Jan 30 at 19:10













  • local machine's group policies. Sorry!

    – Ptheguy
    Jan 30 at 19:18














-1












-1








-1








I have configured Registries, Services, and Group Policies on Windows 10 to tailor my windows experience. I also tend to experiment with my OSes a lot and often I end up re-installing Windows and having to go through setting up all the aforementioned settings.



I am looking for a way to export the above settings (all three of them) in such a way that I can then import them in one click on a fresh Windows installation to avoid having to set up everything from scratch. I was able to export Registries easily and I know I can import that just fine. However, when I export Services and Group Policies, it outputs a .txt file and there doesn't seem to be a way to import them. Any ideas?










share|improve this question














I have configured Registries, Services, and Group Policies on Windows 10 to tailor my windows experience. I also tend to experiment with my OSes a lot and often I end up re-installing Windows and having to go through setting up all the aforementioned settings.



I am looking for a way to export the above settings (all three of them) in such a way that I can then import them in one click on a fresh Windows installation to avoid having to set up everything from scratch. I was able to export Registries easily and I know I can import that just fine. However, when I export Services and Group Policies, it outputs a .txt file and there doesn't seem to be a way to import them. Any ideas?







windows-10 services group-policy






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 30 at 18:58









PtheguyPtheguy

188




188













  • This might be useful Import a GPO from a File. It isn't clear if you are talking about an Active Directory domain or just local machine's group policies.

    – Ramhound
    Jan 30 at 19:10













  • local machine's group policies. Sorry!

    – Ptheguy
    Jan 30 at 19:18



















  • This might be useful Import a GPO from a File. It isn't clear if you are talking about an Active Directory domain or just local machine's group policies.

    – Ramhound
    Jan 30 at 19:10













  • local machine's group policies. Sorry!

    – Ptheguy
    Jan 30 at 19:18

















This might be useful Import a GPO from a File. It isn't clear if you are talking about an Active Directory domain or just local machine's group policies.

– Ramhound
Jan 30 at 19:10







This might be useful Import a GPO from a File. It isn't clear if you are talking about an Active Directory domain or just local machine's group policies.

– Ramhound
Jan 30 at 19:10















local machine's group policies. Sorry!

– Ptheguy
Jan 30 at 19:18





local machine's group policies. Sorry!

– Ptheguy
Jan 30 at 19:18










1 Answer
1






active

oldest

votes


















1














Group Policy



Reports note this still works in Windows 10.



Solution from here: http://www.frickelsoft.net/blog/?p=31



On the source machine, open the hidden folder %systemroot%system32grouppolicy and copy the Machine and User directories.



On the target machine, open the same hidden folder and paste the two directories, overwriting existing files and folders.



Run gpupdate /force and restart your computer.



Services



The Service State (stopped/started) can be easily read and set using Powershell.



The thing is, many default Windows services cannot be modified, so instead of trying to record all of the existing Services and their start-up types and statuses on one computer and then recreating that on another, you should instead compile a list ONLY of the services you wish to modify from their default state.



Once you have such a list, use the Powershell cmdlet Set-Service to set their desired state. Create a .ps1 file with a line like follows for each of the services you with to change from default:



Set-Service -Name ServiceName -StartupType Automatic/AutomaticDelayedStart/Manual/Disabled


Run this script on the new computers and all the services' states will be set as specified.



Source: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/set-service?view=powershell-6



Registry



Like services, you only want to modify the specific keys that deviate from default that are ABSOLUTELY REQUIRED TO BE CHANGED.



So, like the services, you need to carefully study and record those keys that need to be modified, compile a reg file of the desired changes, and run this reg file on each new computer.



Do NOT under any circumstances export the entire registry and import it. This is too likely to cause serious problems.



Bringing it all together



You can do all of this with Powershell in a single script:




  • The Group Policy stuff is just copying files from your backup location onto the new computer.

  • The Service stuff is just running a script configuring the StartupType argument.

  • The Registry stuff is importing a .reg file.






share|improve this answer


























  • And for services? Anything possible there?

    – Ptheguy
    Jan 30 at 20:01












Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1400215%2fexport-import-group-policies-and-services-windows-10%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














Group Policy



Reports note this still works in Windows 10.



Solution from here: http://www.frickelsoft.net/blog/?p=31



On the source machine, open the hidden folder %systemroot%system32grouppolicy and copy the Machine and User directories.



On the target machine, open the same hidden folder and paste the two directories, overwriting existing files and folders.



Run gpupdate /force and restart your computer.



Services



The Service State (stopped/started) can be easily read and set using Powershell.



The thing is, many default Windows services cannot be modified, so instead of trying to record all of the existing Services and their start-up types and statuses on one computer and then recreating that on another, you should instead compile a list ONLY of the services you wish to modify from their default state.



Once you have such a list, use the Powershell cmdlet Set-Service to set their desired state. Create a .ps1 file with a line like follows for each of the services you with to change from default:



Set-Service -Name ServiceName -StartupType Automatic/AutomaticDelayedStart/Manual/Disabled


Run this script on the new computers and all the services' states will be set as specified.



Source: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/set-service?view=powershell-6



Registry



Like services, you only want to modify the specific keys that deviate from default that are ABSOLUTELY REQUIRED TO BE CHANGED.



So, like the services, you need to carefully study and record those keys that need to be modified, compile a reg file of the desired changes, and run this reg file on each new computer.



Do NOT under any circumstances export the entire registry and import it. This is too likely to cause serious problems.



Bringing it all together



You can do all of this with Powershell in a single script:




  • The Group Policy stuff is just copying files from your backup location onto the new computer.

  • The Service stuff is just running a script configuring the StartupType argument.

  • The Registry stuff is importing a .reg file.






share|improve this answer


























  • And for services? Anything possible there?

    – Ptheguy
    Jan 30 at 20:01
















1














Group Policy



Reports note this still works in Windows 10.



Solution from here: http://www.frickelsoft.net/blog/?p=31



On the source machine, open the hidden folder %systemroot%system32grouppolicy and copy the Machine and User directories.



On the target machine, open the same hidden folder and paste the two directories, overwriting existing files and folders.



Run gpupdate /force and restart your computer.



Services



The Service State (stopped/started) can be easily read and set using Powershell.



The thing is, many default Windows services cannot be modified, so instead of trying to record all of the existing Services and their start-up types and statuses on one computer and then recreating that on another, you should instead compile a list ONLY of the services you wish to modify from their default state.



Once you have such a list, use the Powershell cmdlet Set-Service to set their desired state. Create a .ps1 file with a line like follows for each of the services you with to change from default:



Set-Service -Name ServiceName -StartupType Automatic/AutomaticDelayedStart/Manual/Disabled


Run this script on the new computers and all the services' states will be set as specified.



Source: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/set-service?view=powershell-6



Registry



Like services, you only want to modify the specific keys that deviate from default that are ABSOLUTELY REQUIRED TO BE CHANGED.



So, like the services, you need to carefully study and record those keys that need to be modified, compile a reg file of the desired changes, and run this reg file on each new computer.



Do NOT under any circumstances export the entire registry and import it. This is too likely to cause serious problems.



Bringing it all together



You can do all of this with Powershell in a single script:




  • The Group Policy stuff is just copying files from your backup location onto the new computer.

  • The Service stuff is just running a script configuring the StartupType argument.

  • The Registry stuff is importing a .reg file.






share|improve this answer


























  • And for services? Anything possible there?

    – Ptheguy
    Jan 30 at 20:01














1












1








1







Group Policy



Reports note this still works in Windows 10.



Solution from here: http://www.frickelsoft.net/blog/?p=31



On the source machine, open the hidden folder %systemroot%system32grouppolicy and copy the Machine and User directories.



On the target machine, open the same hidden folder and paste the two directories, overwriting existing files and folders.



Run gpupdate /force and restart your computer.



Services



The Service State (stopped/started) can be easily read and set using Powershell.



The thing is, many default Windows services cannot be modified, so instead of trying to record all of the existing Services and their start-up types and statuses on one computer and then recreating that on another, you should instead compile a list ONLY of the services you wish to modify from their default state.



Once you have such a list, use the Powershell cmdlet Set-Service to set their desired state. Create a .ps1 file with a line like follows for each of the services you with to change from default:



Set-Service -Name ServiceName -StartupType Automatic/AutomaticDelayedStart/Manual/Disabled


Run this script on the new computers and all the services' states will be set as specified.



Source: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/set-service?view=powershell-6



Registry



Like services, you only want to modify the specific keys that deviate from default that are ABSOLUTELY REQUIRED TO BE CHANGED.



So, like the services, you need to carefully study and record those keys that need to be modified, compile a reg file of the desired changes, and run this reg file on each new computer.



Do NOT under any circumstances export the entire registry and import it. This is too likely to cause serious problems.



Bringing it all together



You can do all of this with Powershell in a single script:




  • The Group Policy stuff is just copying files from your backup location onto the new computer.

  • The Service stuff is just running a script configuring the StartupType argument.

  • The Registry stuff is importing a .reg file.






share|improve this answer















Group Policy



Reports note this still works in Windows 10.



Solution from here: http://www.frickelsoft.net/blog/?p=31



On the source machine, open the hidden folder %systemroot%system32grouppolicy and copy the Machine and User directories.



On the target machine, open the same hidden folder and paste the two directories, overwriting existing files and folders.



Run gpupdate /force and restart your computer.



Services



The Service State (stopped/started) can be easily read and set using Powershell.



The thing is, many default Windows services cannot be modified, so instead of trying to record all of the existing Services and their start-up types and statuses on one computer and then recreating that on another, you should instead compile a list ONLY of the services you wish to modify from their default state.



Once you have such a list, use the Powershell cmdlet Set-Service to set their desired state. Create a .ps1 file with a line like follows for each of the services you with to change from default:



Set-Service -Name ServiceName -StartupType Automatic/AutomaticDelayedStart/Manual/Disabled


Run this script on the new computers and all the services' states will be set as specified.



Source: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/set-service?view=powershell-6



Registry



Like services, you only want to modify the specific keys that deviate from default that are ABSOLUTELY REQUIRED TO BE CHANGED.



So, like the services, you need to carefully study and record those keys that need to be modified, compile a reg file of the desired changes, and run this reg file on each new computer.



Do NOT under any circumstances export the entire registry and import it. This is too likely to cause serious problems.



Bringing it all together



You can do all of this with Powershell in a single script:




  • The Group Policy stuff is just copying files from your backup location onto the new computer.

  • The Service stuff is just running a script configuring the StartupType argument.

  • The Registry stuff is importing a .reg file.







share|improve this answer














share|improve this answer



share|improve this answer








edited Jan 30 at 22:10

























answered Jan 30 at 19:59









music2myearmusic2myear

32.4k860101




32.4k860101













  • And for services? Anything possible there?

    – Ptheguy
    Jan 30 at 20:01



















  • And for services? Anything possible there?

    – Ptheguy
    Jan 30 at 20:01

















And for services? Anything possible there?

– Ptheguy
Jan 30 at 20:01





And for services? Anything possible there?

– Ptheguy
Jan 30 at 20:01


















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1400215%2fexport-import-group-policies-and-services-windows-10%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

"Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

Alcedinidae

Origin of the phrase “under your belt”?