blumi Posted October 8, 2015 Share Posted October 8, 2015 (edited) 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}andHKEY_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 October 8, 2015 by blumi Link to comment Share on other sites More sharing options...
jguinch Posted October 8, 2015 Share Posted October 8, 2015 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") blumi 1 Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
blumi Posted October 8, 2015 Author Share Posted October 8, 2015 Now it works fine, thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now