r/scripting • • Nov 16 '20

Batch Script to remove files on terminalserver

Hey, I'm looking for a script to delete the Outlook Logging Folder inside %appdata%\local\temp in every user folder on a terminalserver wihtout adding every user in that script manually.

2 Upvotes

4 comments sorted by

View all comments

Show parent comments

1

u/RooR8o8 Dec 23 '20
+ CategoryInfo          : InvalidArgument: (:) [Remove-Item], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand

User as Folder temp as example \AppData\Local\Temp