Comments (7)
Hi,
Yes, for the moment, the policy name is required...
You can try to set mandatory to false here https://github.com/FortiPower/PowerFGT/blob/master/PowerFGT/Public/cmdb/firewall/policy.ps1#L65
Remove check test https://github.com/FortiPower/PowerFGT/blob/master/PowerFGT/Public/cmdb/firewall/policy.ps1#L115
and comment add the name of on policy https://github.com/FortiPower/PowerFGT/blob/master/PowerFGT/Public/cmdb/firewall/policy.ps1#L158
it will look for next release to add support of unnamed policy
from powerfgt.
it is working ?
from powerfgt.
Well, I am a beginning Powershell scripter, I don't know how to modify an existing module (I installed your Module through psgallery) and use it locally. For now I fix it by using a counter and using that in the name.
from powerfgt.
Well, I am a beginning Powershell scripter, I don't know how to modify an existing module (I installed your Module through psgallery) and use it locally. For now I fix it by using a counter and using that in the name.
Ok, you need to modified directly module :
C:\Users\MyUser\Documents\WindowsPowerShell\Modules
(Replace MyUser by your user)
from powerfgt.
Thanks, for me the location is /root/.local/share/powershell/Modules (running my code inside of a VSCode Powershell container). Modifying the files you said worked, but has to be redone after a container rebuild in this setup.
from powerfgt.
Thanks, for me the location is /root/.local/share/powershell/Modules (running my code inside of a VSCode Powershell container). Modifying the files you said worked, but has to be redone after a container rebuild in this setup.
Yes...
the container is public ?
i will make change for next release
from powerfgt.
Reopen because i found a issue with policy return...
and i need to write Tests for this case...
from powerfgt.
Related Issues (20)
- Upgrade path error HOT 2
- Backup config isn't working HOT 1
- When using the "Remove-FGTFirewallAddressGroupMember" cmdlet, nothing happens HOT 12
- Reg Connect-FGT HOT 4
- Connecting with FortiToken? HOT 3
- Getting Arp Table HOT 2
- Can you create new users? HOT 15
- Upload and replace renewed SSL Certificate offline HOT 3
- Move-FGTFirewallPolicy function problem HOT 1
- Custom HTTPS port? HOT 1
- Error when using "-since" option with Get-FGTLogTraffic command HOT 2
- Unexpected behavior with log search - Get-FGTLogTraffic HOT 6
- MAC address feature request! HOT 1
- add ability to add security profile to firewall policy HOT 4
- Unable to concatenate -srcip and -dstip in the Get-FGTLogTraffic function. HOT 6
- Feature request: DHCP Server support HOT 2
- Invoke-FGTRestMethod - Bad Gateway When Trying To Create Custom Service HOT 5
- Content-Type required but not specified for Invoke-RestMethod HOT 8
- Signing module Powershell PowerFGT HOT 1
- PS 7.4.2, restmethod.ps1 ContentType application/json HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from powerfgt.