Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

ERROR:PowerShell DSC MSFT_PackageResource Set-TargetResource

$
0
0

During testing of DSC with Microsoft TFSReleaseOnPrem to a VM OnPrema script produced MOF file to install a MSI succeeds when the process script is run directly but fails when launched through the TFS Release

The script:

Powershell
Package$key.Name.Replace(".","")#$item{Ensure="Present"# Lookup the ProductName value from the MSI propertiesName=([string]($PackageProprties|Where-Object{$_.Property-eq"ProductName"}).Value).Trim()Path=$PackageSourcePathDependsOn=$Deps# This is a [string[]]# Lookup the ProductId value from the MSI propertiesProductId=([string]($PackageProprties|Where-Object{$_.Property-eq"ProductCode"}).Value).Trim()Arguments=$Args# Additional Arguments from configuration dataLogPath="$($PackageSourcePath).log"# LoggingCredential=$Credential# Access to open the resource on the...

Viewing all articles
Browse latest Browse all 15370

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>