Running a Powershell Script to delete a folder
I am trying to run a powershell script that will delete the signatures folder for all users. I can't seem to get the script to run successfully.
Here is the script that I am trying to run
Here is what I keep receiving
0 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
mattl
1 year ago
Hopefully you've found a solution, but I did something similar today and found your post while trying to figure out a solution and thought I'd share what I did.
I followed https://support.quest.com/kb/4288162/native-powershell-support
- Go to Scripting | Choose Action | New
- Provide a Name for the script
- Check the Enabled box
- Change the Type to Online Shell Script
- Choose a Status: Optional
- Provide a Description: Optional
- Add Notes: Optional
- Deploy: Choose the device(s) to deploy to
- KACE recommends testing any new task on test devices before pushing to production devices
- Windows Run As: Optional
- Notify: Optional
- Schedule: Optional
- Schedule Options: Optional
- Dependencies: Optional
- Script
- Script Text
- Insert Powershell Script here
- e.g.: Remove-Item "C:\Users\signtest\AppData\Roaming\Microsoft\Signatures" -Recurse -Force
- Script File Name
- Add the script name (.PS1)
- e.g..: delSignatures.ps1
- Script Text
- Click Save