-
Notifications
You must be signed in to change notification settings - Fork 23
Description
@NikCharlebois @FabienTschanz For a couple of months now my work laptop has WinRM disabled by policy and I thought that the errors I was getting from DSCParser was due to this, nevertheless I'm able to run it without issues if I have an old M365DSC version installed instead of a recent one and use the exact same latest DSCParser 2.0.0.20.
To test this I fresh installed Win11 on a personal device, installed current M365DSC and dependencies, ran both winrm quickconfig and Enable-PSRemoting -Force and still get the same error messages that indicate PS remoting is not enabled which is not true. Note that I have several workloads in the same blueprint but this starts happening on Intune which has nested properties.
Any ideas of what might be causing this? I don't have this problem running it on MSHosted pipelines on Azure DevOps, only locally.
IntuneAppConfigurationPolicy "IntuneAppConfigurationPolicy-IntuneAppConfigurationPolicy_1"
{
ApplicationId = $IntuneApplicationId;
Assignments = @(
MSFT_DeviceManagementConfigurationPolicyAssignments{
deviceAndAppManagementAssignmentFilterType = 'none'
groupDisplayName = 'DummyGroupExclude'
dataType = '#microsoft.graph.exclusionGroupAssignmentTarget'
groupId = '053dc89a-be83-411a-bad3-909904b7239e'
}
MSFT_DeviceManagementConfigurationPolicyAssignments{
deviceAndAppManagementAssignmentFilterType = 'none'
groupDisplayName = 'DummyGroupInclude'
dataType = '#microsoft.graph.groupAssignmentTarget'
groupId = 'b0b8fd3f-af2a-453b-be57-80182d599f02'
}
);
CertificateThumbprint = $IntuneCertThumbprint;
CustomSettings = @(
MSFT_IntuneAppConfigurationPolicyCustomSetting{
name = 'com.microsoft.intune.mam.managedbrowser.AppProxyRedirection'
value = 'false'
}
MSFT_IntuneAppConfigurationPolicyCustomSetting{
name = 'com.microsoft.intune.mam.managedbrowser.AllowTransitionOnBlock'
value = 'true'
}
MSFT_IntuneAppConfigurationPolicyCustomSetting{
name = 'com.microsoft.outlook.Contacts.LocalSyncEnabled'
value = 'true'
}
MSFT_IntuneAppConfigurationPolicyCustomSetting{
name = 'com.microsoft.outlook.Contacts.LocalSyncEnabled.UserChangeAllowed'
value = 'true'
}
);
DisplayName = "IntuneAppConfigurationPolicy_1";
Ensure = "Present";
Id = "44754094-9c69-4ee0-b587-d8af4efd4a7e";
TenantId = $OrganizationName;
}Missing type name after '['.
At line:4 char:50
+ []::TryParse($subExpr ...
+ ~
Missing type name after '['.
At C:\Program Files\WindowsPowerShell\Modules\DSCParser\2.0.0.20\Modules\DSCParser.psm1:400 char:29
+ ... Invoke-Expression -Command $scriptBlock | Out-N ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ParserError: (:) [Invoke-Expression], ParseException
+ FullyQualifiedErrorId : MissingTypename,Microsoft.PowerShell.Commands.InvokeExpressionCommand