我想通过Power
Shell dsc on(hyper v)虚拟机安装visual studio 2013,但我找不到任何正确的链接来通过powershell dsc安装它,因为我是这个领域的新手,我没有任何经验,你能不能帮我解决这个问题.我非常感谢你的迅速和积极的回应.
谢谢和最好的问候,
侯赛因.
最佳答案 安装巧克力DSC提供商
Set-PSRepository -Name psgallery -InstallationPolicy Trusted
Install-Module cChoco
运行此DSC配置以安装VS 2013
configuration InstallTools
{
Import-DscResource -ModuleName cChoco
cChocoInstaller choco
{
InstallDir = 'C:\choco'
}
$chocoPackages = @('visualstudio2013ultimate')
foreach($chocoPackage in $chocoPackages)
{
cChocoPackageInstaller $chocoPackage
{
Name = $chocoPackage
}
}
Environment chocolatelyInstall
{
Name = 'chocolatelyInstall'
value = 'C:\choco\bin'
}
}
InstallTools -OutputPath $env:temp\InstallTools
Start-DscConfiguration -Wait -Verbose -Path $env:temp\InstallTools