Posted February 7, 201213 yr I am adding a local account in the oobeSystem pass in the Sysprep answer file (Microsoft-Windows-Shell-Setup > UserAccounts). That works fine but there is no option to set the account password to 'never expires'. So, I would like to use a WMIC command to accomplish that task but I'm not sure where to place it in unattend.xml. The only place I can find to run the command is in the Specialize pass (Microsoft-Windows-Deployment > RunSyncronous) but during deployment the Specialize pass runs before the oobeSystem pass so that won't work. In the oobeSystem pass > Microsoft-Windows-Shell-Setup there is a component called FirstLoginCommands but I am assuming those commands would run the first time ANY user logs in and that they will run once for each user that logs in. Is that correct? I need the WMIC command to run just once instead of once for each user. Continue reading...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.