Why does Wallpaper.reg not work as admin and take rights away to change desktop wallpaper?Why .reg file...

Why is it that Bernie Sanders is always called a "socialist"?

Citing paywalled articles accessed via illegal web sharing

What is a good reason for every spaceship to carry a weapon on board?

Why don't key signatures indicate the tonic?

Do "fields" always combine by addition?

Why was Lupin comfortable with saying Voldemort's name?

Why does magnet wire need to be insulated?

Eww, those bytes are gross

Is using an 'empty' metaphor considered bad style?

Does dispel magic end a master's control over their undead?

New package vs new version?

Is it possible to grant users sftp access without shell access? If yes, how is it implemented?

Clues on how to solve these types of problems within 2-3 minutes for competitive exams

How do I append a character to the end of every line in an Excel cell?

Why would space fleets be aligned?

Does Skippy chunky peanut butter contain trans fat?

Is it a fallacy if someone claims they need an explanation for every word of your argument to the point where they don't understand common terms?

Scripture(s) saying not to look at the sun during his rising and setting time

When do I have to declare that I want to twin my spell?

Has any human ever had the choice to leave Earth permanently?

Constexpr if with a non-bool condition

How do you catch Smeargle in Pokemon Go?

How does Leonard in "Memento" remember reading and writing?

Why did Democrats in the Senate oppose the Born-Alive Abortion Survivors Protection Act (2019 S.130)?



Why does Wallpaper.reg not work as admin and take rights away to change desktop wallpaper?


Why .reg file import to registry does not work in Vista 64-bit Operating system?Can I get UAC prompt for user from batch file?How can I change the Windows 7 taskbar position (overriding GPO, Registry Editor, Admin. Rights)?Change registry permission of 3 keys does not work with reginiHow to add a program in safe mode start up registry using batch script?How do I make a registry entry with command prompt?Script to change wallpaper in windows 10 not workingChange Internet Options for the local Administrator via Batch fileHow can I change default programs from a script without admin rights?Change Wallpaper according to time













0















Whenever I'm installing Windows on new devices there are a lot of changes to be made which cost a lot of time. So I wanted to make some scripts which do exactly that for me.



For the past few days I have been searching for registry keys I can create/change for basic settings for Windows 10 (changing desktop wallpaper, small tray icons, etc). I found some and also have created my own, which I then have added together into a batch script.



I don't have much experience with batch scripts, but I wrote one, which when its executed as administrator will 'take' the keys in the folder the script is in, write them to the paths, then stop explorer.exe to and start it again for the changes to be applied.



@echo off

reg import %~dp0TaskViewButton.reg
reg import %~dp0SearchboxTaskbar.reg
reg import %~dp0RemoveContacsFromTaskbar.reg
reg import %~dp0EnableAutoTray.reg
reg import %~dp0Wallpaper.reg
reg import %~dp0TaskbandFavorites.reg
reg import %~dp0TaskbandFavoritesChanges.reg
reg import %~dp0TaskbandFavoritesResolve.reg

taskkill /f /im explorer.exe
start explorer.exe

pause


When I executed the script every key was successful excluding DesktopWallpaper.reg. FOr DesktopWallpaper.reg I created a new key folder named System with this string value named Wallpaper in HKCUSoftwareMicrosoftWindowsCurrentVersionPolicies as it was the only possibility that worked for me.

It worked until I exported and put it into that script. The only thing I added and changed to that .reg file was the name and a RGB value which should be the color of the wallpaper. This is what the file looks like:



Windows Registry Editor Version 5.00

[HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionPoliciesSystem]
"Wallpaper"="46 141 239"


The command prompt shows an error for that file. When I double click the .reg file it tells me that an error occured while trying to access the registry as sysadmin. And not only that, executing the script also changes the wallpaper to a solid black. When accessing Personalisation > Background in the settings it tells me *Some settings are hidden or managed by your organization.



I have done some research on this as well and have tried fixing it with gpedit.msc. Apparently when Windows changes some settings they should also be in the Group Policy Editor. I followed some tutorials, but none of them worked for me. Some rules which should be enabled there were 'not configured'.



Any kind of help would be appreciated.










share|improve this question







New contributor




Rin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    0















    Whenever I'm installing Windows on new devices there are a lot of changes to be made which cost a lot of time. So I wanted to make some scripts which do exactly that for me.



    For the past few days I have been searching for registry keys I can create/change for basic settings for Windows 10 (changing desktop wallpaper, small tray icons, etc). I found some and also have created my own, which I then have added together into a batch script.



    I don't have much experience with batch scripts, but I wrote one, which when its executed as administrator will 'take' the keys in the folder the script is in, write them to the paths, then stop explorer.exe to and start it again for the changes to be applied.



    @echo off

    reg import %~dp0TaskViewButton.reg
    reg import %~dp0SearchboxTaskbar.reg
    reg import %~dp0RemoveContacsFromTaskbar.reg
    reg import %~dp0EnableAutoTray.reg
    reg import %~dp0Wallpaper.reg
    reg import %~dp0TaskbandFavorites.reg
    reg import %~dp0TaskbandFavoritesChanges.reg
    reg import %~dp0TaskbandFavoritesResolve.reg

    taskkill /f /im explorer.exe
    start explorer.exe

    pause


    When I executed the script every key was successful excluding DesktopWallpaper.reg. FOr DesktopWallpaper.reg I created a new key folder named System with this string value named Wallpaper in HKCUSoftwareMicrosoftWindowsCurrentVersionPolicies as it was the only possibility that worked for me.

    It worked until I exported and put it into that script. The only thing I added and changed to that .reg file was the name and a RGB value which should be the color of the wallpaper. This is what the file looks like:



    Windows Registry Editor Version 5.00

    [HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionPoliciesSystem]
    "Wallpaper"="46 141 239"


    The command prompt shows an error for that file. When I double click the .reg file it tells me that an error occured while trying to access the registry as sysadmin. And not only that, executing the script also changes the wallpaper to a solid black. When accessing Personalisation > Background in the settings it tells me *Some settings are hidden or managed by your organization.



    I have done some research on this as well and have tried fixing it with gpedit.msc. Apparently when Windows changes some settings they should also be in the Group Policy Editor. I followed some tutorials, but none of them worked for me. Some rules which should be enabled there were 'not configured'.



    Any kind of help would be appreciated.










    share|improve this question







    New contributor




    Rin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      Whenever I'm installing Windows on new devices there are a lot of changes to be made which cost a lot of time. So I wanted to make some scripts which do exactly that for me.



      For the past few days I have been searching for registry keys I can create/change for basic settings for Windows 10 (changing desktop wallpaper, small tray icons, etc). I found some and also have created my own, which I then have added together into a batch script.



      I don't have much experience with batch scripts, but I wrote one, which when its executed as administrator will 'take' the keys in the folder the script is in, write them to the paths, then stop explorer.exe to and start it again for the changes to be applied.



      @echo off

      reg import %~dp0TaskViewButton.reg
      reg import %~dp0SearchboxTaskbar.reg
      reg import %~dp0RemoveContacsFromTaskbar.reg
      reg import %~dp0EnableAutoTray.reg
      reg import %~dp0Wallpaper.reg
      reg import %~dp0TaskbandFavorites.reg
      reg import %~dp0TaskbandFavoritesChanges.reg
      reg import %~dp0TaskbandFavoritesResolve.reg

      taskkill /f /im explorer.exe
      start explorer.exe

      pause


      When I executed the script every key was successful excluding DesktopWallpaper.reg. FOr DesktopWallpaper.reg I created a new key folder named System with this string value named Wallpaper in HKCUSoftwareMicrosoftWindowsCurrentVersionPolicies as it was the only possibility that worked for me.

      It worked until I exported and put it into that script. The only thing I added and changed to that .reg file was the name and a RGB value which should be the color of the wallpaper. This is what the file looks like:



      Windows Registry Editor Version 5.00

      [HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionPoliciesSystem]
      "Wallpaper"="46 141 239"


      The command prompt shows an error for that file. When I double click the .reg file it tells me that an error occured while trying to access the registry as sysadmin. And not only that, executing the script also changes the wallpaper to a solid black. When accessing Personalisation > Background in the settings it tells me *Some settings are hidden or managed by your organization.



      I have done some research on this as well and have tried fixing it with gpedit.msc. Apparently when Windows changes some settings they should also be in the Group Policy Editor. I followed some tutorials, but none of them worked for me. Some rules which should be enabled there were 'not configured'.



      Any kind of help would be appreciated.










      share|improve this question







      New contributor




      Rin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      Whenever I'm installing Windows on new devices there are a lot of changes to be made which cost a lot of time. So I wanted to make some scripts which do exactly that for me.



      For the past few days I have been searching for registry keys I can create/change for basic settings for Windows 10 (changing desktop wallpaper, small tray icons, etc). I found some and also have created my own, which I then have added together into a batch script.



      I don't have much experience with batch scripts, but I wrote one, which when its executed as administrator will 'take' the keys in the folder the script is in, write them to the paths, then stop explorer.exe to and start it again for the changes to be applied.



      @echo off

      reg import %~dp0TaskViewButton.reg
      reg import %~dp0SearchboxTaskbar.reg
      reg import %~dp0RemoveContacsFromTaskbar.reg
      reg import %~dp0EnableAutoTray.reg
      reg import %~dp0Wallpaper.reg
      reg import %~dp0TaskbandFavorites.reg
      reg import %~dp0TaskbandFavoritesChanges.reg
      reg import %~dp0TaskbandFavoritesResolve.reg

      taskkill /f /im explorer.exe
      start explorer.exe

      pause


      When I executed the script every key was successful excluding DesktopWallpaper.reg. FOr DesktopWallpaper.reg I created a new key folder named System with this string value named Wallpaper in HKCUSoftwareMicrosoftWindowsCurrentVersionPolicies as it was the only possibility that worked for me.

      It worked until I exported and put it into that script. The only thing I added and changed to that .reg file was the name and a RGB value which should be the color of the wallpaper. This is what the file looks like:



      Windows Registry Editor Version 5.00

      [HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionPoliciesSystem]
      "Wallpaper"="46 141 239"


      The command prompt shows an error for that file. When I double click the .reg file it tells me that an error occured while trying to access the registry as sysadmin. And not only that, executing the script also changes the wallpaper to a solid black. When accessing Personalisation > Background in the settings it tells me *Some settings are hidden or managed by your organization.



      I have done some research on this as well and have tried fixing it with gpedit.msc. Apparently when Windows changes some settings they should also be in the Group Policy Editor. I followed some tutorials, but none of them worked for me. Some rules which should be enabled there were 'not configured'.



      Any kind of help would be appreciated.







      windows-10 batch windows-registry






      share|improve this question







      New contributor




      Rin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      Rin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      Rin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 21 mins ago









      RinRin

      11




      11




      New contributor




      Rin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Rin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Rin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes











          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
          });


          }
          });






          Rin is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1409888%2fwhy-does-wallpaper-reg-not-work-as-admin-and-take-rights-away-to-change-desktop%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Rin is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Rin is a new contributor. Be nice, and check out our Code of Conduct.













          Rin is a new contributor. Be nice, and check out our Code of Conduct.












          Rin is a new contributor. Be nice, and check out our Code of Conduct.
















          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%2f1409888%2fwhy-does-wallpaper-reg-not-work-as-admin-and-take-rights-away-to-change-desktop%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

          Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...

          Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

          VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...