#killing running processes
taskkill /f /im OneDrive.exe | Out-Null
#adding registry entries to disable onedrive from starting
reg add HKLM\Software\Policies\Microsoft\Windows\OneDrive /f
reg add HKLM\Software\Policies\Microsoft\Windows\OneDrive /f /v DisableFileSyncNGSC /t REG_DWORD /d 1
sleep 5
