Jump to content

RegWrite to HKEY_CLASSES_ROOT\CLSID\


blumi
 Share

Recommended Posts

Hi,

I've found a tutorial to disable Windows 10 OneDrive in Explorer.

https://techjourney.net/hide-remove-onedrive-from-windows-10-file-explorer-navigation-pane-folder-tree/

I've tried to use AutoIt to automate this.

When I am right, I have to write to both registry keys when I am running Windows 10 64-Bit.

HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}

and

HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}

The key in HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6} is set but not the key in HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}

 

How to handle this?

; OneDrive Prozess schließen, falls geöffnet
ProcessClose("OneDrive.exe")


; OneDrive links im Explorer ausblenden
$success = RegWrite("HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}", "System.IsPinnedToNameSpaceTree", "REG_DWORD", "0")
MsgBox(0, $ScriptName, "success: " & $success)

If (@OSArch = "X64") Then
 RegWrite("HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}", "System.IsPinnedToNameSpaceTree", "REG_DWORD", "0")
EndIf

 

Edited by blumi
Link to comment
Share on other sites

Use HKEY_CLASSES_ROOT64 :

ProcessClose("OneDrive.exe")

RegWrite("HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}", "System.IsPinnedToNameSpaceTree", "REG_DWORD", "0")

If (@OSArch = "X64") Then RegWrite("HKEY_CLASSES_ROOT64\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}", "System.IsPinnedToNameSpaceTree", "REG_DWORD", "0")

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

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