windows 7 - Using native Win 7 batch methods to remotely recreate a users profile? -
i made simple batch xp our team used recreate xp profiles in corporate environment have since moved win 7. recreating user profile in 7 little bit more complicated renaming old profile, dropping restore batch in users startup folder , letting windows create fresh profile on login. writing batch tends little complicated on if/then/else statements me, i'm hoping keep simple old one. suggested incorporate small command-line friendly user profile deletion utility batch, haven't found first offers backup. means i'd have robocopy entire user profile first, restore data on login. i'm "hoping" avoid time investment. makes me bit nervous relying on no errors during copying process before being deleted on next step. why renaming of user profiles in xp worst case scenarios. can point me in direction of either simple utility this, or can throw quick , easy code might able use? of xp batch using c$ access, simple commands
rename "\\%ip%\c$\documents , settings\%username%" %username%.%date%
all appreciated!
the path has changed in win 7. it's c:\users.
if exist c:\user rename "\\%ip%\c$\users\%username%" "%username%.%newdate%" if exist "c:\documents , settings" rename "\\%ip%\c$\documents , settings\%username%" "%username%.%newdate%"
also %date% contain illegal characters .
set newdate=%date:\=%
will put digits without seperators newdate.
Comments
Post a Comment