first in every script we have to work with variables, to get a maximum of flexibility
it have to be an powershell script!
This Script have to run an Cleanup,
i think it would be the best to make an separate script for every task. its easier for me to integrate it in the solarwinds rmm
1) Delete recycle bin - of the actually logged on User
2) Delete the content of Downloads Folder of the actually logged on user (attention it is not always c:\users\username\downloads) in some cases it is different
-> but do not delete some files user here
$excluded = ("*.pdf", "*.docx", "*.xlsx","*.png", "*.jpg*", ".jpeg*", ".ppt*", ".pptx", "*.gif" )
3) delelete windows temp
4) delete upgrade! Files from windows 10
at the end of all 3 scripts ther should be an output:
successfull or error
Be aware, the script is running under local system service, so maybe it is a little bit complicated!
if you have any good ideas - welcome!
8 pekerja bebas membida secara purata €104 untuk pekerjaan ini
Hello, I have read your requirements and understand, I can create 3 different power-shell scripts as mentioned by you. I have 6 years experience of software development. Thanks Mahesh