Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New-DCConditionalAccessPolicyDesignReport does not export filter for devices under conditions #24

Open
mabaugh83 opened this issue Aug 26, 2022 · 1 comment

Comments

@mabaugh83
Copy link

mabaugh83 commented Aug 26, 2022

it appears that the New-DCConditionalAccessPolicyDesignReport does not export any filter rules for devices under conditions

@mabaugh83 mabaugh83 changed the title not able to export filter for devices under conditions New-DCConditionalAccessPolicyDesignReport does not export filter for devices under conditions Aug 26, 2022
@mabaugh83
Copy link
Author

it looks like you can just add this after row 2954 in the DCToolbox.psm1 module

includeDeviceStates
$CustomObject | Add-Member -MemberType NoteProperty -Name "includeDeviceStates" -Value (Out-String -InputObject $Policy.conditions.devices.includeDeviceStates)

	# excludeDeviceStates
	$CustomObject | Add-Member -MemberType NoteProperty -Name "excludeDeviceStates" -Value (Out-String -InputObject $Policy.conditions.devices.excludeDeviceStates)
	
	# includeDevices
	$CustomObject | Add-Member -MemberType NoteProperty -Name "includeDevices" -Value (Out-String -InputObject $Policy.conditions.devices.includeDevices)
	
	# excludeDevices
	$CustomObject | Add-Member -MemberType NoteProperty -Name "excludeDevices" -Value (Out-String -InputObject $Policy.conditions.devices.excludeDeviceStates)
	
	# deviceFilterMode
	$CustomObject | Add-Member -MemberType NoteProperty -Name "deviceFilterMode" -Value (Out-String -InputObject $Policy.conditions.devices.deviceFilter.mode)
	
	# deviceFilterRule
	$CustomObject | Add-Member -MemberType NoteProperty -Name "deviceFilterRule" -Value (Out-String -InputObject $Policy.conditions.devices.deviceFilter.rule)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant