Jump to content
BBradley

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!

-Brent

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×