Store password for Autologin

Jun 28, 2013 at 5:14 PM

I'm trying to make a console application that installs boxstarter and then starts a package install. The only problem is boxstarter asking for my password for autologin. I tried specifying the password as a secure string and starting boxstarter:
$PlainPassword = "P@ssword"
$SecurePassword = $PlainPassword | ConvertTo-SecureString -AsPlainText -Force
Invoke-BoxStarter -Password $SecurePassword -ScriptToCall {MyPackage} -RebootOk
But boxstarter still asks for a password for autologin.
Jun 30, 2013 at 6:40 AM
Hi fosteliss,

Currently there is no -password argument for Invoke-Boxstarter. Certainly seems like a reasonable feature, I'll add it to the issues list.

Jul 1, 2013 at 3:21 PM
But the documentation states Invoke-BoxStarter has a password argument...
Jul 1, 2013 at 4:35 PM
You are absolutely correct and I think I see the issue. There looks like a bug where if you launch Boxstarter from a non elevated console, when Boxstarter invokes a new elevated console, it does not pass the -Password parameter. Sorry for the confusion and I'll change this issue from a feature request to a bug. Thanks!!