Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @ECHO OFF
- ::Set Record Location
- SET location=Z:\Users
- robocopy Z:\~IT\Server\Desktop %USERPROFILE%\Desktop /S /COPY:D
- ::Create Directory
- mkdir %location%\%USERNAME%
- cd /d %location%\%USERNAME%
- ::Set Folder Owner
- ICACLS %location%\%USERNAME% /setowner %USERNAME% /T
- ::Renew with Parent Permisions
- ::ICACLS %location%\%USERNAME% /reset /T
Advertisement
Add Comment
Please, Sign In to add comment