Slackbot
03/31/2022, 11:36 AMDavid Sandilands
05/20/2022, 8:35 AMRob Sterenborg
05/20/2022, 12:43 PMDavid Sandilands
05/20/2022, 3:09 PMRob Sterenborg
05/20/2022, 3:16 PMvalidation_mode parameter, which is why I tried it) to get an idea of how things work, and I don't see it.
It bugs me that I can't even get something as -seemingly- simple like dsc_xwindowspackagecab to work.David Sandilands
05/20/2022, 4:06 PMDavid Sandilands
05/20/2022, 5:12 PMRob Sterenborg
05/23/2022, 3:49 PMC:\Temp, where the code expects it to be. No internet access is required when I install the package by hand (this is the reason for the package existence). It also installs fine using the old, deprecated DSC. However, when using dsc_xwindowspackagecab, it keeps wanting to reinstall/change the package "corrective".
To recap...
Puppet code:
dsc_xwindowspackagecab {'NET-Framework-Core':
dsc_ensure => 'Present',
dsc_sourcepath => 'C:\Temp',
dsc_name => 'microsoft-windows-netfx3-ondemand-package~31bf3856ad364e35~amd64~~.cab',
dsc_logpath => 'C:\Temp\microsoft-windows-netfx3-ondemand-package~31bf3856ad364e35~amd64~~.log',
}
This does in fact install the CAB:
PS C:\temp> Get-WindowsFeature -Name NET-Framework-Core
Display Name Name Install State
------------ ---- -------------
[X] .NET Framework 3.5 (includes .NET 2.0 and 3.0) NET-Framework-Core Installed
Running the code multiple times results in:
Notice: /Stage[pre2]/Platform::Pre::Windows_features_role/Dsc_xwindowspackagecab[NET-Framework-Core]/dsc_logpath: dsc_logpath changed to 'C:\Temp\microsoft-windows-netfx3-ondemand-package~31bf3856ad364e35~amd64~~.log' (corrective)
Notice: /Stage[pre2]/Platform::Pre::Windows_features_role/Dsc_xwindowspackagecab[NET-Framework-Core]/dsc_ensure: dsc_ensure changed 'Absent' to 'Present' (corrective)
Notice: dsc_xwindowspackagecab[{:name=>"NET-Framework-Core", :dsc_name=>"microsoft-windows-netfx3-ondemand-package~31bf3856ad364e35~amd64~~.cab"}]: Creating: Finished in 9.63 seconds
AFAICS I'm using the latest dsc-xpsdesiredstateconfiguration. From `metadata.json`:
{
"name": "dsc-xpsdesiredstateconfiguration",
"version": "9.1.0-0-3",
As mentioned in the top post, I'm experiencing a similar issue when I deploy an IIS website using `dsc_xwebsite`: it keeps wanting to correct (or: "correct"?) the websites it creates, even though the configuration should already be correct when I check this using the GUI.Rob Sterenborg
06/01/2022, 9:30 AMDavid Sandilands
06/12/2022, 7:45 PMDavid Sandilands
07/04/2022, 9:57 AM$InvokeParams = @{
Name = 'xWindowsPackageCab';
Method = 'get';
Property = @{
ensure = 'Present';
sourcepath = 'C:\Temp';
name = 'microsoft-windows-netfx3-ondemand-package~31bf3856ad364e35~amd64~~.cab'
};
ModuleName = @{
ModuleName = 'C:/ProgramData/PuppetLabs/puppet/cache/lib/puppet_x/xpsdesiredstateconfiguration/dsc_resources/xPSDesiredStateConfiguration/xPSDesiredStateConfiguration.psd1';
RequiredVersion = '9.1.0'
}
}
That info will be returned based on the following. The Online = $true seems wrong to me but I could be wrong.
$getWindowsPackageParams = @{
PackageName = $Name
Online = $true
}
and
try
{
$windowsPackageInfo = Dism\Get-WindowsPackage @getWindowsPackageParams
}
catch
{
$windowsPackageInfo = $null
}
So I don't have access to the cab file and I would need to figure out where to get it to do this test. I feel like the get request is assuming the system is internet-connected and is not but that is just my assumption. (edited)David Sandilands
07/04/2022, 10:07 AMRob Sterenborg
07/04/2022, 10:17 AMDavid Sandilands
07/04/2022, 11:57 AMDavid Sandilands
07/04/2022, 12:29 PMdsc_xwindowspackagecab {'NET-Framework-Core':
dsc_ensure => 'Present',
dsc_sourcepath => 'C:\Temp',
dsc_name => 'microsoft-windows-netfx3-ondemand-package~31bf3856ad364e35~amd64~~.cab',
dsc_logpath => 'C:\Temp\microsoft-windows-netfx3-ondemand-package~31bf3856ad364e35~amd64~~.log',
}Rob Sterenborg
07/04/2022, 1:03 PMdsc_xwindowspackagecab type file, and the comments say:
dsc_sourcepath: {
type: 'String',
desc: 'The path to the cab file to install or uninstall the package from.',
[...]
dsc_name: {
type: 'String',
desc: 'The name of the package to install or uninstall.',
Maybe it's me being a non-native English speaker, but is dsc_sourcepath the path (!) to the file, or is it the complete path + filename? Reading it again, dsc_name is most likely supposed to be the same as the resource title, and if so, then dsc_sourcepath is most likely the complete path + filename. Anyway, I don't recall exactly what I tried, but I have been trying various combinations. I now changed the code like this:
dsc_xwindowspackagecab {'NET-Framework-Core':
dsc_ensure => 'Present',
dsc_name => 'NET-Framework-Core',
dsc_sourcepath => 'C:\Temp\microsoft-windows-netfx3-ondemand-package~31bf3856ad364e35~amd64~~.cab',
dsc_logpath => 'C:\Temp\microsoft-windows-netfx3-ondemand-package~31bf3856ad364e35~amd64~~.log',
}
Then I removed the Net-Framework-Core feature, rebooted, and ran the Puppet Agent 2 times in succession, but with the 2nd (and 3rd) run I keep having the issue that the feature is installed, again, corrective:
Info: Applying configuration version '1656938822'
Notice: /Stage[pre2]/Platform::Pre::Windows_features_role/Dsc_xwindowspackagecab[NET-Framework-Core]/dsc_logpath: dsc_logpath changed to 'C:\Temp\microsoft-windows-netfx3-ondemand-package~31bf3856ad364e35~amd64~~.log' (corrective)
Notice: /Stage[pre2]/Platform::Pre::Windows_features_role/Dsc_xwindowspackagecab[NET-Framework-Core]/dsc_ensure: dsc_ensure changed 'Absent' to 'Present' (corrective)
Notice: dsc_xwindowspackagecab[{:name=>"NET-Framework-Core", :dsc_name=>"microsoft-windows-netfx3-ondemand-package~31bf3856ad364e35~amd64~~.cab"}]: Creating: Finished in 9.81 secondsDavid Sandilands
07/04/2022, 1:18 PM$getWindowsPackageParams = @{
PackageName = $Name
Online = $true
}
try
{
$windowsPackageInfo = Dism\Get-WindowsPackage @getWindowsPackageParams
}
catch
{
$windowsPackageInfo = $null
}
if ($null -eq $windowsPackageInfo -or -not ($windowsPackageInfo.PackageState -in @( 'Installed', 'InstallPending' )))
{
$windowsPackageCab.Ensure = 'Absent'
}Rob Sterenborg
07/04/2022, 2:52 PMPS C:\Windows\system32> dism /online /Get-FeatureInfo /FeatureName:NetFx3
Deployment Image Servicing and Management tool
Version: 10.0.17763.1697
Image Version: 10.0.17763.3046
Feature Information:
Feature Name : NetFx3
Display Name : .NET Framework 3.5 (includes .NET 2.0 and 3.0)
Description : .NET Framework 3.5 (includes .NET 2.0 and 3.0)
Restart Required : Possible
State : Enabled
Custom Properties:
FWLink : http://go.microsoft.com/fwlink/?LinkId=296822
ServerComponent\Description : .NET Framework 3.5 combines the power of the .NET Framework 2.0 APIs with new technologies for building applications that offer appealing user interfaces, protect your customers' personal identity information, enable seamless and secure communication, and provide the ability to model a range of business processes.
ServerComponent\DisplayName : .NET Framework 3.5 (includes .NET 2.0 and 3.0)
ServerComponent\Id : 220
ServerComponent\InstallWithParentByDefault : true
ServerComponent\Parent : NET-Framework-Features
ServerComponent\Type : Feature
ServerComponent\UniqueName : NET-Framework-Core
ServerComponent\Deploys\Update\Name : NetFx3
ServerComponent\Version\Major : 3
ServerComponent\Version\Minor : 5
The operation completed successfully.
Here I noticed that Net-Framework-Core is also known as NetFx3, so I changed the package resource title and dsc_name to NetFx3 and ran Puppet Agent again, but after 2+ Puppet Agent runs I still have the same result:
Info: Applying configuration version '1656945944'
Notice: /Stage[pre2]/Platform::Pre::Windows_features_role/Dsc_xwindowspackagecab[NetFx3]/dsc_logpath: dsc_logpath changed to 'C:\Temp\microsoft-windows-netfx3-ondemand-package~31bf3856ad364e35~amd64~~.log' (corrective)
Notice: /Stage[pre2]/Platform::Pre::Windows_features_role/Dsc_xwindowspackagecab[NetFx3]/dsc_ensure: dsc_ensure changed 'Absent' to 'Present' (corrective)
Notice: dsc_xwindowspackagecab[{:name=>"NetFx3", :dsc_name=>"microsoft-windows-netfx3-ondemand-package~31bf3856ad364e35~amd64~~.cab"}]: Creating: Finished in 9.78 secondsDavid Sandilands
07/04/2022, 3:34 PMGet-WindowsPackage -Packagename NetFx3 -online
If that fails with
Get-WindowsPackage: The specified package is not valid Windows package.
We know we have the wrong package name. We can get all the packages by running
Get-WindowsPackage -online
and discover what the Packagename is to be present it must match the PackageName Exactly and have a PackageState of installedDavid Sandilands
07/04/2022, 3:36 PMRob Sterenborg
07/04/2022, 3:41 PMPS C:\Windows\system32> Get-WindowsPackage -Packagename NetFx3 -online
Get-WindowsPackage : The parameter is incorrect.
At line:1 char:1
+ Get-WindowsPackage -Packagename NetFx3 -online
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-WindowsPackage], PSArgumentException
+ FullyQualifiedErrorId : Microsoft.Dism.Commands.GetWindowsPackageCommand
PS C:\Windows\system32> Get-WindowsPackage -online
[...]
PackageName : Microsoft-Windows-NetFx3-OnDemand-Package~31bf3856ad364e35~amd64~~10.0.17763.1
PackageState : Installed
ReleaseType : OnDemandPack
InstallTime : 7/4/2022 12:44:00 PM
[...]David Sandilands
07/04/2022, 3:53 PMMicrosoft-Windows-NetFx3-OnDemand-Package~31bf3856ad364e35~amd64~~10.0.17763.1David Sandilands
07/04/2022, 3:59 PMGet-WindowsPackage -Packagename fakeymcfakefacepackage -online
Get-WindowsPackage: The parameter is incorrect.
david on Monday at 4:57 PM 0.45s CPU: 74% RAM: 12/16GB
{ home } Get-WindowsPackage -Packagename Package_for_ServicingStack_702~31bf3856ad364e35~amd64~~22000.702.1.1 -online
PackageName : Package_for_ServicingStack_702~31bf3856ad364e35~amd64~~22000.702.1.1
Applicable : True
Copyright : Microsoft Corporation
Company : Microsoft Corporation
CreationTime : 10/02/1601 21:24:00
Description : Fix for ServicingStack 10.0.22000.702
InstallClient : UpdateAgentLCU
InstallPackageName : Package_for_ServicingStack_702~31bf3856ad364e35~amd64~~22000.702.1.1.mum
InstallTime : 18/06/2022 02:12:42
LastUpdateTime : 10/02/1601 21:24:00
DisplayName : Servicing Stack 10.0.22000.702
ProductName : Package_for_ServicingStack_702
ProductVersion :
ReleaseType : Update
RestartRequired : Possible
SupportInformation :
PackageState : Installed
CompletelyOfflineCapable : No
SelfServicingPackage : True
CapabilityId :
Custom Properties :
Features : {}Rob Sterenborg
07/05/2022, 9:34 AMMicrosoft-Windows-NetFx3-OnDemand-Package~31bf3856ad364e35~amd64~~10.0.17763.1, Microsoft-Windows-NetFx3-OnDemand-Package~31bf3856ad364e35~amd64~~10.0.17763.1.mum and Microsoft-Windows-NetFx3-OnDemand-Package, and ran Puppet Agent twice with each, but Puppet keeps reinstalling the feature package.Rob Sterenborg
07/06/2022, 2:08 PMdsc_xwindowspackagecab { 'Microsoft-Windows-NetFx3-OnDemand-Package~31bf3856ad364e35~amd64~~10.0.17763.1':
dsc_ensure => 'Present',
dsc_name => 'Microsoft-Windows-NetFx3-OnDemand-Package~31bf3856ad364e35~amd64~~10.0.17763.1',
dsc_sourcepath => 'C:\Temp\microsoft-windows-netfx3-ondemand-package~31bf3856ad364e35~amd64~~.cab',
dsc_logpath => 'C:\Temp\microsoft-windows-netfx3-ondemand-package~31bf3856ad364e35~amd64~~.log',
}
It results in:
Notice: /Stage[pre2]/Platform::Pre::Windows_features_role/Dsc_xwindowspackagecab[Microsoft-Windows-NetFx3-OnDemand-Package~31bf3856ad364e35~amd64~~10.0.17763.1]/dsc_logpath: dsc_logpath changed to 'C:\Temp\microsoft-windows-netfx3-ondemand-package~31bf3856ad364e35~amd64~~.log' (corrective)
Notice: dsc_xwindowspackagecab[{:name=>"Microsoft-Windows-NetFx3-OnDemand-Package~31bf3856ad364e35~amd64~~10.0.17763.1", :dsc_name=>"Microsoft-Windows-NetFx3-OnDemand-Package~31bf3856ad364e35~amd64~~10.0.17763.1"}]: Updating: Finished in 16.28 seconds
Puppet now only keeps correcting an empty dsc_logfile value, and no longer changes dsc_ensure from absent to present.
So at least this makes it clear that the dsc_name should be what Get-WindowsPackage returns as PackageName, so you have to know that upfront.
(Get-WindowsPackage -online -PackageName '*NetFx3*').PackageName
Microsoft-Windows-NetFx3-OnDemand-Package~31bf3856ad364e35~amd64~~10.0.17763.1
The dsc_xwindowspackagecab resource title seems to be irrelevant; when I set it to something else, the outcome doesn't change.
Now I'm hoping that the dsc_logpath change can also be made to go away...
https://docs.microsoft.com/en-us/powershell/dsc/reference/resources/windows/windowspackagecabresource?view=dsc-1.1
This MS doc says that:
LogPath Indicates the full path where you want the provider to save a log file to install or uninstall the package.
Which I think I'm doing correctly. The logfile is created and is appended to.David Sandilands
07/12/2022, 12:47 PM%PROGRAMDATA%\PuppetLabs\puppet\cache\catalog\servername.json (usually C:\Program Data\PuppetLabs\puppet\cache\catalog\servername.json).
and if you can open that file in vscode or anything with extensions to allow for viewing of json, i think powershell has convertfrom-json, you can see the resource
What im wondering is, has puppet done any translation of the log variable you have passed like something with ~~ it thinks its different to the last catalog so it would be useful to look at that sourceRob Sterenborg
07/12/2022, 7:37 PM{
"type": "Dsc_xwindowspackagecab",
"title": ".NET Framework 3.5",
"tags": [
"dsc_xwindowspackagecab",
"class",
"platform::pre::windows_features_role",
"platform",
"pre",
"windows_features_role",
"platform::pre2",
"pre2"
],
"file": "/path/to/modules/platform/manifests/pre/windows_features_role.pp",
"line": 58,
"exported": false,
"kind": "compilable_type",
"parameters": {
"dsc_ensure": "Present",
"dsc_sourcepath": "C:\\Temp\\microsoft-windows-netfx3-ondemand-package~31bf3856ad364e35~amd64~~.cab",
"dsc_name": "Microsoft-Windows-NetFx3-OnDemand-Package~31bf3856ad364e35~amd64~~10.0.17763.1",
"dsc_logpath": "C:\\Temp\\microsoft-windows-netfx3-ondemand-package~31bf3856ad364e35~amd64~~.log"
}
},
I don't see any unexpected translation here and I'd say that dsc_logpath is already correct. I tested what happens when I replace ~ with -, but that didn't help.
What I'm unsure of, is that the paths we enter use forward slashes (less hassle with escaping, special chars, etc, and most Puppet modules expect forward slashes too). However dsc_xwindowspackagecab doesn't work with forward slashes: it fails when either dsc_sourcepath or dsc_logpath contain forward slashes. Therefore, before executing dsc_xwindowspackagecab, I'm using extra variables to translate all forward slashes in the path into a double backslash; I seem to be unable to translate them into a single backslash. (Maybe this can be done, but in that case I don't know how to do this.) I don't know if the resource actually needs a single backslash, but then again, the CAB file is installed, and the log file is created and appended to in the correct directory, so I would expect it's fine.David Sandilands
07/13/2022, 9:27 AMdsc_logpath => 'C:\\Temp\\microsoft-windows-netfx3-ondemand-package~31bf3856ad364e35~amd64~~.log'
I'm not sure why the catalog has picked up an extra \Rob Sterenborg
07/13/2022, 10:36 AM$dsc_logpath for debugging output, it only shows a single backslash, and that also happens when I dump the variable to a text file. Which at least to me is quite confusing: if there is a double backslash inside the string, I would expect them both to be displayed so I know that everything is fine. The content of the catalog seems to agree with me. However, back on topic...
I applied the following using `puppet apply`:
dsc_xwindowspackagecab {'NET-Framework-Core':
dsc_ensure => 'Present',
dsc_name => 'Microsoft-Windows-NetFx3-OnDemand-Package~31bf3856ad364e35~amd64~~10.0.17763.1',
dsc_sourcepath => 'C:\\Temp\\microsoft-windows-netfx3-ondemand-package~31bf3856ad364e35~amd64~~.cab',
dsc_logpath => 'C:\\Temp\\microsoft-windows-netfx3-ondemand-package-31bf3856ad364e35-amd64--.log',
}
This results in:
PS C:\temp> puppet apply .\t2.pp
Notice: Compiled catalog for <testhost1> in environment puppetwindows_rst_dsc_new in 0.38 seconds
Notice: /Stage[main]/Main/Dsc_xwindowspackagecab[NET-Framework-Core]/dsc_logpath: dsc_logpath changed to 'C:\Temp\microsoft-windows-netfx3-ondemand-package-31bf3856ad364e35-amd64--.log'
Notice: dsc_xwindowspackagecab[{:name=>"NET-Framework-Core", :dsc_name=>"Microsoft-Windows-NetFx3-OnDemand-Package~31bf3856ad364e35~amd64~~10.0.17763.1"}]: Updating: Finished in 13.63 seconds
Notice: Applied catalog in 14.95 seconds
PS C:\temp>
PS C:\temp>
PS C:\temp>
PS C:\temp> puppet apply .\t2.pp
Notice: Compiled catalog for <testhost1> in environment puppetwindows_rst_dsc_new in 0.16 seconds
Notice: /Stage[main]/Main/Dsc_xwindowspackagecab[NET-Framework-Core]/dsc_logpath: dsc_logpath changed to 'C:\Temp\microsoft-windows-netfx3-ondemand-package-31bf3856ad364e35-amd64--.log'
Notice: dsc_xwindowspackagecab[{:name=>"NET-Framework-Core", :dsc_name=>"Microsoft-Windows-NetFx3-OnDemand-Package~31bf3856ad364e35~amd64~~10.0.17763.1"}]: Updating: Finished in 9.40 seconds
Notice: Applied catalog in 10.84 seconds
The calalog (still) shows:
{
"type": "Dsc_xwindowspackagecab",
"title": ".NET Framework 3.5",
"tags": [
"dsc_xwindowspackagecab",
"class",
"platform::pre::windows_features_role",
"platform",
"pre",
"windows_features_role",
"platform::pre2",
"pre2"
],
"file": "/etc/puppetlabs/code/environments/puppetwindows_rst_dsc_new/modules/platform/manifests/pre/windows_features_role.pp",
"line": 55,
"exported": false,
"kind": "compilable_type",
"parameters": {
"dsc_ensure": "Present",
"dsc_sourcepath": "C:\\Temp\\microsoft-windows-netfx3-ondemand-package~31bf3856ad364e35~amd64~~.cab",
"dsc_name": "Microsoft-Windows-NetFx3-OnDemand-Package~31bf3856ad364e35~amd64~~10.0.17763.1",
"dsc_logpath": "C:\\Temp\\microsoft-windows-netfx3-ondemand-package-31bf3856ad364e35-amd64--.log"
}
},
So the dsc_xwindowspackagecab resource wants to change the dsc_logpath from having double backslashes to having single backslashes, even though that's not what the code says, and it also doesn't end up in the catalog.
If you really need me to test this in the actual Puppet code, then I'll need more time to make that happen.David Sandilands
07/14/2022, 9:53 AMDavid Sandilands
07/14/2022, 12:52 PMRob Sterenborg
07/14/2022, 3:41 PM//, but I think that's a typo, because
The documentation you're pointing me to says to use: \\
Judging by my code, I'm using \\ with DSC resources. At least the catalog says that I do. (Or is it doing some magic on its own?)
(So far all other resources are fine with the values/strings that I'm feeding them, so for this discussion I'd like to focus on DSC.)
The whole backslash thing is confusing me. Not in using them (I know how and when to use them), but while handling/manipulating strings containing them. For example:
$a = 'C:/Temp/installer.cab'
$b = regsubst($a, '/', '\\', 'G')
$c = regsubst($a, '/', '\\\\', 'G')
notice "[a] ${a}"
notice "[b] ${b}"
notice "[c] ${c}"
file { '/tmp/t1.txt':
content => "[a] ${a}\n[b] ${b}\n[c] ${c}\n\n",
}
Executing this code:
[r.sterenborg@ntt-ws-rst2 puppet]$ puppet apply t1.pp
Notice: Scope(Class[main]): [a] C:/Temp/installer.cab
Notice: Scope(Class[main]): [b] C:\Temp\installer.cab
Notice: Scope(Class[main]): [c] C:\Temp\installer.cab
Notice: Compiled catalog for ntt-ws-rst2.netmatch.local in environment production in 0.01 seconds
Notice: /Stage[main]/Main/File[/tmp/t1.txt]/ensure: defined content as '{md5}d0b0f45810326fe1f2691c07f5d4e27d'
Notice: Applied catalog in 0.09 seconds
[r.sterenborg@ntt-ws-rst2 puppet]$ cat /tmp/t1.txt
[a] C:/Temp/installer.cab
[b] C:\Temp\installer.cab
[c] C:\Temp\installer.cab
Variables $b and $c are showing identical string values. I expected to see [b] "C:\\Temp\\installer.cab" and [c] "C:\\\\Temp\\\\installer.cab", but notice is showing something else, and so does output file t1.txt. And if \\ is silently translated to \, then shouldn't \\\\ have been translated to \\?
I hard-coded the path at your request using double backslashes. The actual code now reads:
dsc_xwindowspackagecab { '.NET Framework 3.5':
dsc_ensure => 'Present',
dsc_name => 'Microsoft-Windows-NetFx3-OnDemand-Package~31bf3856ad364e35~amd64~~10.0.17763.1',
dsc_sourcepath => 'C:\\Temp\\microsoft-windows-netfx3-ondemand-package~31bf3856ad364e35~amd64~~.cab',
dsc_logpath => 'C:\\Temp\\microsoft-windows-netfx3-ondemand-package~31bf3856ad364e35~amd64~~.log',
}
So, no string replacements, just as shown in the above snippet. But it's not changing anything (see below).
Having done all this...
The fact remains that the CAB file does get installed if it is not installed already. That means that the strings supplied to the dsc_sorucepath and dsc_logpath parameters of the dsc_xwindowspackagecab resource are fine. If they were not, the CAB file wouldn't install, because either the resource cannot find the CAB file, the logfile would not be created which might have generated an error (from all of my testing I conclude that an error is most likely to occur), or the resource cannot handle the path separator type, resulting in an error. However, instead the dsc_xwindowspackagecab resource says:
Notice: /Stage[pre2]/Platform::Pre::Windows_features_role/Dsc_xwindowspackagecab[.NET Framework 3.5]/dsc_logpath: dsc_logpath changed to 'C:\Temp\microsoft-windows-netfx3-ondemand-package~31bf3856ad364e35~amd64~~.log' (corrective)
To me this indicates that there isn't any path problem or problem pertaining to slashes or backslashes, or at least there shouldn't be. As far as I can conclude, the resource just doesn't "see" that dsc_logpath already has a value configured, making it want to replace an empty string with a string containing a path. Also, the path in the replacement string is not the same as what the catalog says. That seems fine because in Windows a single backslash is the native path separator, but if the path is compared to what is in the catalog, then it will never match because of a mismatch in the number of backslashes (unless some voodoo happens before comparing).David Sandilands
07/14/2022, 3:51 PM