move data from a folder to recycle map when logoff

Welcome Forums General PowerShell Q&A move data from a folder to recycle map when logoff

This topic contains 3 replies, has 3 voices, and was last updated by

2 years, 2 months ago.

  • Author
  • #56350

    Points: 4
    Rank: Member

    The case:
    we gonna use software autodesk vault software, and a specific folde named Workingfolder must be cleaned / emptied every time the user is logged off from his pc. but to have a save fall back we want, that the data from the folder first is moved to the recycle bin and if it is possible configure then that the recycle bin is emptied every 7 days. 

    The question:

    Is it possible to create a oneliner / script to:
    move data from a specific folder (like workingfolder on C:\) to the recycle bin and make sure that people cant empty the recycle bin by them self but it is emptied every 7 days?

  • #56362

    Points: 0
    Rank: Member

    Can you show us your script so we can help you?

  • #56372

    Points: 438
    Helping Hand
    Rank: Contributor

    If the AutoDesk Vault software requires that the WorkingFolder folder is emptied, then the software should clear it at Shutdown\Startup. If it's a manufacturer requirement or recommendation, I would talk to them versus scripting it.

    Locking down the Recycle Bin, if possible, would be a policy (GPO). If you want to clear the Recycle Bin every 7 days, I would look at making a local scheduled task for that, but it's risky if a VP is working on slide deck for a week, accidentally deletes it and then you wipe the Recycle Bin. I've worked at places where users used the Temp directory as a working directory storing documents. I'd be careful implementing a forceful removal of something like the Recycle Bin.

  • #56483

    Points: 4
    Rank: Member

    I dont have started creating a script,

    Because simply dont know where to start for this particaly question,
    the question came from a colleague that is working with the autodesk vault

The topic ‘move data from a folder to recycle map when logoff’ is closed to new replies.