I hope so this is good forum. I want write two script with arguments
1) Create one folder (without permission to delete main folder, file and subfolders for users – only administrators can delete) in all domain Servers
1) Delete .xls files from all created new_folders in all servers and export log to csv
2) Send mail to user with attachment ( .csv)
But I have a few problems:
1) How to set up ACL for folder without permission to delete
2) I have problem with Invoke-Command if I want use it I must enable WIN-RM on all Servers but I cann't – Can I replace this command with another one? – If yes – on which?
3) I don't know why Export-CSV don't add logs which files are deleted
4) Can I write all in one script?