Jump to content

Delete contents of user folders

Recommended Posts

Hi all:

I'm looking for a way to delete the contents of all users' downloads folders when a user logs on. I have a local policy / group policy that will delete contents of THAT users' folder when a user logs on, but want two things: to have the policy affect ALL users' downloads folders, and to push a script from Labtech that creates that local policy.


Am I dreaming?


Thanks in advance!


Share this post

Link to post
Share on other sites

a simple powershell command will resolve this for you ....     just run POWERSHELL COMMAND AS ADMIN and use this:

Get-ChildItem C:\Users\*\Downloads\* | Remove-Item

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...