You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basic configure OS via PowerShell script by local 'Administrator' account. (For example, set timezone)
Join the VM to domain by PowerShell script.
Install a software via PowerShell script by domain account.
Leave domain via PowerShell script.
Continue configure OS via PowerShell by local 'Administrator' account.
As you can see. It needs domain account to connect the server.
Looks like there is no way to switching credential temporarily during provisioning.
I tried to give "elevated_user" and "elevated_password" in PowerShell block. No lucky.
Even I don't give any additional keys, the audit log shows Packer tries to login the machine by '[email protected]" but not local 'administrator' account. It always failed as I'm not domain administrator.
Is this a bug, or?
My builders block is correct. I'm using winrm as communicator. it works fine for any VM without the need to switch account.
The text was updated successfully, but these errors were encountered:
you can create a powershell script and inside the script you can mention the new admin credentials so that those commands in the scripts will run using the admin credentials and not the local admin. hope this helps.
My image configuration process has 3 steps:
As you can see. It needs domain account to connect the server.
Looks like there is no way to switching credential temporarily during provisioning.
I tried to give "elevated_user" and "elevated_password" in PowerShell block. No lucky.
Even I don't give any additional keys, the audit log shows Packer tries to login the machine by '[email protected]" but not local 'administrator' account. It always failed as I'm not domain administrator.
Is this a bug, or?
My builders block is correct. I'm using winrm as communicator. it works fine for any VM without the need to switch account.
The text was updated successfully, but these errors were encountered: