1
我想使用DSC在Windows 7上安装的Git使用基于PowerShell的4.0:DSC不安装的Git
Configuration InstallApps
{
Node localhost
{
Package Git
{
Ensure = "Present"
Name = "Git"
Path = "C:\tmp\Git-2.7.0.2-64-bit.exe"
ProductId = ''
}
}
}
InstallApps
Git是没有安装在那里我运行的机器上上面的脚本来自。
当我运行上面的git未安装而不是localhost.mof文件夹中创建InstallApps:
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a--- 05-02-2016 11:35 1292 localhost.mof
[Finished in 2.4s]
为什么安装不触发?