Skip to content

Commit

Permalink
disable name checking and create empty password credential if none given
Browse files Browse the repository at this point in the history
  • Loading branch information
mwrock committed Mar 20, 2015
1 parent a7d6eba commit 17ddd30
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Boxstarter.Chocolatey/Install-BoxstarterPackage.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,11 @@ function Invoke-RemoteBoxstarter($Package, $Credential, $DisableReboots, $sessio
$remoteResult = Invoke-Command -session $session {
param($SuppressLogging,$pkg,$Credential,$DisableReboots, $verbosity, $ProgressArgs)
$global:VerbosePreference=$verbosity
Import-Module $env:temp\Boxstarter\Boxstarter.Common\Boxstarter.Common.psd1
Import-Module $env:temp\Boxstarter\Boxstarter.Common\Boxstarter.Common.psd1 -DisableNameChecking
if($Credential -eq $null){
$currentUser = Get-CurrentUser
$credential = (New-Object Management.Automation.PsCredential ("$($currentUser.Domain)\$($currentUser.Name)", (New-Object System.Security.SecureString)))
}
Create-BoxstarterTask $Credential
Import-Module $env:temp\Boxstarter\Boxstarter.Chocolatey\Boxstarter.Chocolatey.psd1
$Boxstarter.SuppressLogging=$SuppressLogging
Expand Down

0 comments on commit 17ddd30

Please sign in to comment.