Announcement

Collapse
No announcement yet.

logon script to clean temp,mydoc folder and desktop

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • logon script to clean temp,mydoc folder and desktop

    I am using group policy loopback processing to secure my public labs XP machines in Active Directory environment. Can someone help me with a domain logon script (simple batch file) to empty my document folder anything saved on desktop and all temp directories for all users who logon to these computers.

    Thanks,

  • #2
    Re: logon script to clean temp,mydoc folder and desktop

    http://www.frontpagewebmaster.com/fb.asp?m=231438

    Simply anything you can do from the cmd line shove into a batch file

    Code:
    del %USERPROFILE%\Desktop\*.* /Q
    del %USERPROFILE%\My Documents\*.* /Q
    del %WINDIR%\temp\*.* /Q
    Topper
    * Shamelessly mentioning "Don't forget to add reputation!"

    Comment


    • #3
      Re: logon script to clean temp,mydoc folder and desktop

      Moved to Scripting Forum
      Tom Jones
      MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
      PhD, MSc, FIAP, MIITT
      IT Trainer / Consultant
      Ossian Ltd
      Scotland

      ** Remember to give credit where credit is due and leave reputation points where appropriate **

      Comment


      • #4
        Re: logon script to clean temp,mydoc folder and desktop

        Thank you for your reply.
        I have tried this, but for some how it is not working for me. I coppied this batch file into logon script folder in my GPO but there was no affect on the files saved in loged on domain users my documents, desktop and in temp directory.
        Last edited by Raindrop; 26th June 2008, 06:23.

        Comment

        Working...
        X