Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if not exist C:\profiles goto new_prof
- :next1
- cd C:\Program Files\Windows SteadyState
- sctui /Export User C:\profiles\user.ssu
- net share profiles=C:\profiles /GRANT:everyone,READ
- cd "C:\Documents and Settings\Administrator\Desktop\PSTools"
- call :vm_actions 169.254.18.231
- :new_prof
- mkdir C:\profiles
- goto next1
- :vm_actions
- PsExec.exe \\%1 : @copy_profiles.bat -u Administrator -p desdemona -c
- ###
- mkdir C:\profiles
- xcopy \\192.254.211.128\profiles\* C:\profiles\ /y
- cd C:\Program Files\Windows SteadyState
- sctui /Import User user C:\profiles\user.ssu
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement