markstan / Test-IntuneFirewallRules

Utility to detect errors in Intune Firewall Rules XML
MIT License
14 stars 3 forks source link

Path not found #5

Open Digiroka opened 2 years ago

Digiroka commented 2 years ago

Hi, I see errors with the script running without args, not sure what I'm doing wrong - error below. Thanks. (last line encapsulated to avoid auto-format)

Get-ChildItem : Cannot find path 'C:\Users\~1\AppData\Local\Temp\FWJSON13042022113004' because it does not exist. At C:\users\\Downloads\Test-IntuneFirewallRules-main\Test-IntuneFirewallRules.ps1:1750 char:21 '+ $RuleJSON = Get-ChildItem $exportpath*.json'

domy86 commented 1 year ago

The same problem here on fresh installed VMs with Windows 10. Any solution?

EDIT: Forgot to say that the script EndpointSecurityPolicy_Export.ps1 doesn't generate any JSON file, I've gotten an empty folder only.