K
KrystianMali
Guest
I try to install the visual studio remote with winrm, unfortunately breaks the installer without any error to log. If I run the same script locally, the installatioin runs without problems.
OS: Windows 10
vs_installer_version: 15.3.0 Preview 3.0
my script locally :
Invoke-Command -ScriptBlock{
cd C:\vs2017_15_3_testinstaller\
cmd /c vs_professional.exe -q --wait --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetCoreTools
}
my script remote :
$Username = 'vs_user'
$Password = '#####'
$pass = ConvertTo-SecureString -AsPlainText $Password -Force
$Cred = New-Object System.Management.Automation.PSCredential -ArgumentList $Username,$pass
Invoke-Command -ScriptBlock{
cd C:\vs2017_15_3_testinstaller\
cmd /c vs_professional.exe -q --wait --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetCoreTools
} -ComputerName 192.168.147.161 -Credential $Cred
Continue reading...
OS: Windows 10
vs_installer_version: 15.3.0 Preview 3.0
my script locally :
Invoke-Command -ScriptBlock{
cd C:\vs2017_15_3_testinstaller\
cmd /c vs_professional.exe -q --wait --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetCoreTools
}
my script remote :
$Username = 'vs_user'
$Password = '#####'
$pass = ConvertTo-SecureString -AsPlainText $Password -Force
$Cred = New-Object System.Management.Automation.PSCredential -ArgumentList $Username,$pass
Invoke-Command -ScriptBlock{
cd C:\vs2017_15_3_testinstaller\
cmd /c vs_professional.exe -q --wait --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetCoreTools
} -ComputerName 192.168.147.161 -Credential $Cred
Continue reading...