I have an export snippet from regedit in Windows 10. How can I integrate that into an existing script?

So I have a script that is meant to strip windows 10 of any kind of performance preventing services and bloat. The internet is not connected to these machines so it is not important that updates or antivirus etc exist on these machine. I found and modified a script online to assist in this (there is a lot of added BS that was not in XP that has been added in 10). I found the key to disable UAC and I exported the value to a reg file and it looks like this:

[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem]

“EnableLUA”=dword:00000000

What is the proper syntax to add this to a powershell script?

submitted by /u/computergroove
[link] [comments]

Leave a Reply