-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't use with Set-MpPreference? #3
Comments
Sorry I guess, you had already mentioned argument should be program and not commandLet. Should this be extended to take command blocks as argument? |
So, actually, I have implemented the ability for executing CmdLets on 5308514 But the problem is: when you execute:
I need to convert all parameters into string, in order to rewrite them as a command line argumento for a new PowerShell instance. In this scenario, $False get converto into the string 'False', which the new PowerShell instance is not able to implicit convert it back to a Boolean type. I have to say I'm not entirely sure on how I would be able to get it working properly. I will try to think of something. In the meantime, there is two work arounds that you can use:
or
I will also update README.md. I forgot to do so when I implemented support for CmdLets and .ps1 scripts. |
That workaround looks great. Thank you so much. |
Set-MpPreference : Cannot process argument transformation on parameter 'DisableRealtimeMonitoring'. Cannot convert
value "System.String" to type "System.Boolean". Boolean parameters accept only Boolean values and numbers, such as
$True, $False, 1 or 0.
At line:1 char:45
The text was updated successfully, but these errors were encountered: