You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, I would like to thank you for sharing this module with us.
I am having an issue trying to load the module. I have copied it to %programfiles%\WindowsPowerShell\Modules, but if I try to run the commands specified on readme.md file, I receive the error:
"The term 'New-PSFortigateReport' is not recognized as the name of a cmdlet"
Could you, please, help me with this?
The text was updated successfully, but these errors were encountered:
Hi, @Victor833 , I also used the module provided by Rasli and successfully got one csv created. The others have problems.
What I did is under powershell CLI:
0. Download Powershell version 7.1
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
Import-Module XXX\PSFortigateParser.psd1
//XXX is your own path with this .psd1 in
$Config = New-PSFortigateReport -Params @('XXX\firewall.conf', [System.Text.Encoding]::UTF8)
//XXX is your own path with "firewall.conf" in
$Config.savePolicyReport('XXX\firewall-policy.csv')
//I successfully created the "firewall-policy.csv".
However, for the rest of the commands, say, $Config.saveServiceReport('XXX\firewall-service.csv'), I got the result:
ConvertTo-Csv: XXX\PSFortigateParser-master\PSFortigateParser.psm1:1804
Line |
1804 | ConvertTo-Csv -NoTypeInformation -Delimiter (Get-Culture) …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Cannot bind argument to parameter 'InputObject' because it is null.
Hi there,
First of all, I would like to thank you for sharing this module with us.
I am having an issue trying to load the module. I have copied it to %programfiles%\WindowsPowerShell\Modules, but if I try to run the commands specified on readme.md file, I receive the error:
"The term 'New-PSFortigateReport' is not recognized as the name of a cmdlet"
Could you, please, help me with this?
The text was updated successfully, but these errors were encountered: