![]() ![]() I'll add a sample RunOnce.bat below, you can just copy and modify it according to your needs. If you name the answer file to something else, or save it to another location, use /unattend switch. unattend:AnswerFilePathAndName.xml is optional if you save the answer file as unattend.xml in C:\Windows\System32\Sysprep folder, it will be automatically used. %windir%\system32\sysprep\sysprep.exe /generalize /oobe /unattend:W:\YourAnswerFile.xml Remember that for CopyProfile to work you must use the /generalize switch with Sysprep command, for instance to run Sysprep and shutdown to be able to capture the Windows image, you would use the following command: I usually name these batches I want to be run only once whenever a new user signs in first time as RunOnce.bat. bat in %appdata%\Microsoft\Windows\Start Menu\Programs\Startup. That takes care of deleting the batch when it's run. Open Notepad, type your commands and add del %0 as last command line. I'm asking because the easiest and recommend way to do this is to do it in Audit Mode, Sysprep with CopyProfile set to TRUE. What was the issue with Sysprep? Maybe we could help you finding a solution for that. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |