jborean93 / pypsrp

PowerShell Remoting Protocol for Python
MIT License
328 stars 49 forks source link

ps.add_cmdlet can't input -Confirm:$false #104

Closed FailEnd closed 3 years ago

FailEnd commented 3 years ago

hi,I want to use the command that "ps.add_cmdlet" to ban the e-mail address,but now it seems that I can use"-Confirm:$false"to realize it.

jborean93 commented 3 years ago

You definitely can, a switch just acts like a boolean so you do .add_parameter('Confirm', False) or if you have a dict the key is the name (Confirm) and the value is False.