Skip to content

Commit

Permalink
Update win_audit_rule.ps1
Browse files Browse the repository at this point in the history
bugfixes:
- win_audit_rule - Fix exception when trying to change a rule on a hidden or protected system file
- ansible-collections/community.windows#17
-ansible#67642
Devsica committed Oct 11, 2021
1 parent bf4b75d commit 4831987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ansible/modules/windows/win_audit_rule.ps1
Original file line number Diff line number Diff line change
@@ -66,7 +66,7 @@ Catch {
}

#get the path type
$ItemType = (Get-Item $path).GetType()
$ItemType = (Get-Item $path -Force).GetType()
switch ($ItemType)
{
([Microsoft.Win32.RegistryKey]) {$registry = $true; $result.path_type = 'registry'}

0 comments on commit 4831987

Please sign in to comment.