Advertisement
desdemona

ta reszta po haszach to plik copy_profiles.bt

Oct 18th, 2013
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. if not exist C:\profiles goto new_prof
  3. :next1
  4. cd C:\Program Files\Windows SteadyState
  5. sctui /Export User C:\profiles\user.ssu
  6. net share profiles=C:\profiles /GRANT:everyone,READ
  7. cd "C:\Documents and Settings\Administrator\Desktop\PSTools"
  8. call :vm_actions 169.254.18.231
  9.  
  10. :new_prof
  11. mkdir C:\profiles
  12. goto next1
  13.  
  14.  
  15. :vm_actions
  16. PsExec.exe \\%1 : @copy_profiles.bat -u Administrator -p desdemona -c
  17.  
  18. ###
  19. mkdir C:\profiles
  20. xcopy \\192.254.211.128\profiles\* C:\profiles\ /y
  21. cd C:\Program Files\Windows SteadyState
  22. sctui /Import User user C:\profiles\user.ssu
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement