Jump to content

CMD Command - REG ADD not working. Require assistance.


Recommended Posts

Hi all,

I am using the following CMD command;

reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Personal /t REG_SZ /d P:\ /f

However, this doesn't work. The key already exists, as as 'M:\', but I need it to change to 'P:\'.

The CMD prompt states 'The operation completed successfully', but the key does not change.

I need to do this via CMD, rather than a .reg or regedit.

Thank you.

Link to comment
Share on other sites

Ah, I found out why it doesn't work.

I was running CMD as admin and the key change only takes place if running as local user, as it's a local user key.

It was indeed working, but it was changing the key for my admin account and not the localy logged-on user (The key was HKCU, not HKLM)

Doh. :wacko:

Thanks for the reply barry99705.

Edited by haze1434
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...