hi there you can specify user and password, so your template should set Administrator somewhere.
https://www.packer.io/docs/communicators/winrm.html#winrm_username So instead of Administrator you could use this non-Administrator user. Alvaro. On Tue, Nov 26, 2019 at 9:52 PM Gautam Singh <[email protected]> wrote: > Hi Packer Community members! > > I am creating Windows AMI using amazon-ebs builder and want to use packer > winrm admin user different from default Administrator user for AWS instance. > The reason I want to do this is because I am running a program that is > delivered from a different team that deletes the default Administrator user. > The program also restart the packer builder instance after which packer > cannot connect back since the Administrator user is no more :( > There are some other provisioners that needs to run after this program, > which is not possible because packer cannot connect back. > > What does it takes to use a separate winrm user from Adminitstrator? > Thanks for your help. > > Thanks, > -Gautam > > > -- > This mailing list is governed under the HashiCorp Community Guidelines - > https://www.hashicorp.com/community-guidelines.html. Behavior in > violation of those guidelines may result in your removal from this mailing > list. > > GitHub Issues: https://github.com/mitchellh/packer/issues > IRC: #packer-tool on Freenode > --- > You received this message because you are subscribed to the Google Groups > "Packer" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/packer-tool/59024c69-9df0-48cf-befd-ff4a649cecb9%40googlegroups.com > <https://groups.google.com/d/msgid/packer-tool/59024c69-9df0-48cf-befd-ff4a649cecb9%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Alvaro -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/packer/issues IRC: #packer-tool on Freenode --- You received this message because you are subscribed to the Google Groups "Packer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CAHqq0ez48Pe5OQBaV502Kg-d2tYViYbBycS0ztmEhuaqn09b4g%40mail.gmail.com.
