Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autologin does not automatically login but prompts for password #279

Closed
amaau opened this issue Jul 29, 2017 · 2 comments
Closed

Autologin does not automatically login but prompts for password #279

amaau opened this issue Jul 29, 2017 · 2 comments
Labels
Duplicate Issue Issues that are duplicates of other issues

Comments

@amaau
Copy link

amaau commented Jul 29, 2017

Autologin feature doesn't seem to work. (Testing on vm, on super fresh windows, from bootstrapper)

$cred = Get-Credential $env:username
Install-Boxstarterpackage -PackageName d:\a.txt -Credential $cred

a.txt is just

Disable-UAC
if (Test-PendingReboot) { Invoke-Reboot }

this restarts and asks for password

@flatlinebb
Copy link

flatlinebb commented Aug 25, 2017

Apparently, this is the correct syntax for the credentials:
Install-Boxstarterpackage -PackageName d:\a.txt -Credential (Get-Credential username)

This will create a pop-up prompt for username and password.
Not sure if it will take the "$env:username" variable, would require testing.

EDIT:
Using "$env:username: does work - it just prefills the username part of the pop-up with the current username logged onto the system:

Install-Boxstarterpackage -PackageName d:\a.txt -Credential (Get-Credential $env:username)

@pauby pauby added the Duplicate Issue Issues that are duplicates of other issues label Mar 18, 2019
@pauby
Copy link
Member

pauby commented Mar 18, 2019

Duplicate of #318.

@pauby pauby closed this as completed Mar 18, 2019
@pauby pauby changed the title autologin doesn't work Autologin does not automatically login but prompts for password Mar 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate Issue Issues that are duplicates of other issues
Projects
None yet
Development

No branches or pull requests

3 participants