#conditional to delete OneDrive related folders of C Drive. ![]() $dirpath2 = "C:\Users\$env:UserName\OneDrive - CompanyName" $dirpath = "C:\Users\$env:UserName\OneDrive" #Added to Removes the OneDrive Folders that are on the laptop. #To uninstall Onedrive if using a 32-bit system:Ĭ:\windows\System32\OneDriveSetup.exe /uninstall #To uninstall OneDrive if using 64-bit System:Ĭ:\windows\SysWOW64\OneDriveSetup.exe /uninstall #Modified slightly for simplicity and to kill the OneDrive process before uninstallation of application So far I have the below: #Instructions found on ] ![]() However I'm having some troubles creating a solid script to uninstall OneDrive completely. I've been able to create a small script to remove the items that are preinstalled from the Microsoft Store and one that uninstalls Teams completely. ![]() I'm working on removing bloatware that is preinstalled on a number of computers.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |