This script uninstalls the OCS Windows Agent program from the computer where it is running. OCS is software used to record inventory. You can find out more information at https://ocsinventory-ng.org/.
You can run this script as a policy on the active directory domain.
If you want to run this script manually on your computer, you will need to:
- Allow external program execution policy. run: Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
- Execute as an administrator
- Send email after changes to notify a admin.