SHARE
TWEET

Windows Clean Desktop

TairikuOkami Dec 14th, 2018 (edited) 590 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. rem takeown /s %computername% /u %username% /f "%SystemDrive%\Users\Public\Desktop" /r /d y
  2. rem icacls "%SystemDrive%\Users\Public\Desktop" /grant:r %username%:(OI)(CI)F /t /l /q /c
  3. rem takeown /s %computername% /u %username% /f "%USERPROFILE%\Desktop" /r /d y
  4. rem icacls "%USERPROFILE%\Desktop" /grant:r %username%:(OI)(CI)F /t /l /q /c
  5.  
  6. del "%SystemDrive%\Users\Public\Desktop\*" /s /f /q
  7. del "%USERPROFILE%\Desktop\*" /s /f /q
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top