Closed 0xdeadbeefJERKY closed 1 year ago
Attempting to leverage the Add-Persistence module with the following parameter combination would result in an AmbiguousParameterSet error:
Add-Persistence
AmbiguousParameterSet
$UserOptions = New-UserPersistenceOption -ScheduledTask -AtLogon
This was due to missing parameter/cmdlet bindings within the New-UserPersistenceOption function as well as missing switch-case logic within the Add-Persistence function.
New-UserPersistenceOption
Attempting to leverage the
Add-Persistence
module with the following parameter combination would result in anAmbiguousParameterSet
error:$UserOptions = New-UserPersistenceOption -ScheduledTask -AtLogon
This was due to missing parameter/cmdlet bindings within the
New-UserPersistenceOption
function as well as missing switch-case logic within theAdd-Persistence
function.