After delete of "<WillReboot>Never</WillReboot>" from code unattend installation work fine,
Desktop/VM after installation has correct hostname and is joun to AAD:
Can you see some problem on these two SynchronousCommands?
Because when I added they to unattend xml, then installation finish with error about OOBE:
<SynchronousCommand wcm:action="add">
<Order>4</Order>
<Description>Install of applications</Description>
<CommandLine>cmd.exe /c...
Probably I have solution:
1. install desktop with some generic hostname as for example "desktop"
2. on end of unattend file start as SynchronousCommand >> install .ppkg file
3. after that same way execute via SynchronousCommand >> rename desktop to requested hostname as tmv2014
4. then reboot...
I tested it but not work properly:
1. I create .ppkg file
2. unjoin VM from AAD and restarted VM
3. open powershell as admin
4. install .ppkg file with command:
Install-ProvisioningPackage -PackagePath D:\ADD2\AAD_FILE.ppkg -QuietInstall
5. tried to rename VM with command(finish with error):
PS...
i found this solution here >>> http://eddiejackson.net/wp/?p=19550
question: can be *.ppkg file execute via unattend file?
example:
<SynchronousCommand wcm:action="add">
<CommandLine>cmd.exe /c powershell -Command "Install-ProvisioningPackage -PackagePath xxxx.ppkg"</CommandLine>...
All windows desktop(win11 profesional) are installed via unattend file where are defined uniqe hostname as tmlXXXX(example tml2000). When I add desktop to AAD manually then output from dsregcmd /status is:
PS C:\Users\Administrator> dsregcmd /status...
I saw "how to" with *.ppkg file, but there is needed add device name as "name+%serial% or %rand:x%" and it will be different as real name of hostname, for example tml2001. Is possible add there automatically hostname of installed HW?
Hello All,
Could you please advise my whether is possible join hardware on which is running unattend installation of windows to AAD? We do it now manually via options "Add a work or school account", but would be very nice add it to answer xml file.
In case that it is possible, then provide me...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.