Unable to Click Toggle button in setting taskbar

Hello Folks

I am facing an issue with clicking the toggle button in settings–>personlization–>Taskbar–>onedrive Toggle button in windows 11, while use Simulate click also getting an error as Click ‘toggle switch’: Cannot send input to UI element because it is outside of screen bounds.

@Abinash_Nagarajan,

You can check for Registry entry for this instead of Ui interaction.
For example

Remove OneDrive - Personal Icon from Desktop: You can remove the OneDrive - Personal icon from the desktop by editing a registry entry Launch RegEdit and expand HKCU > Software > Microsoft > Windows > Current Version > Explorer > Desktop > Namespace. Note the key for OneDrive Personal, typically it is {018D5C66-4533-4307-9B53-224DE2ED1FE6}. Expand KKEY_CLASSES_ROOT >CLSID

Thanks,
Ashok :slight_smile:

Hello @ashokkarale
i want to enable it, is there any option that we can enable from powershell?

@Abinash_Nagarajan,

I think we can do it but share the screenshot of what you want. Let me see if able to find something.

@ashokkarale need to enable microsoft Onedrive toggle button

@Abinash_Nagarajan,

Unable to find solution Registry entry way but able to solve this by Ui interaction. Here is sample solution working.

Enable OneDrive.zip (2.9 MB)

Ignore all other workflows. Just refer Workflow1

Thanks,
Ashok :slight_smile: