Posh-SecMod icon indicating copy to clipboard operation
Posh-SecMod copied to clipboard

Unable to update policy with function Set-NessusPolicyWindowsCredential

Open Gurzil opened this issue 12 years ago • 1 comments

Trying to update username/password on a policy with the function stated.I execute the following command: Set-NessusPolicyWindowsCredential -Index 0 -PolicyID 5 -UserIndex 0 -Credential $cred -Verbose

I do verbose logging and the module will print: "VERBOSE: Setting crentia on policy 5" "We got OK on request"

The policy is not updated. Tried to restart daemon and rebuild database, no luck.

I use Nessus 5.2.4 and do not have any problem with other functions regarding policy eg. Show-NessusPolicy,Get-NessusPolicyXML, Copy-NessusPolicy.

Thanks for sharing your code.


Update: 'credentials.Windows+credentials' seem to have changed, baseline in my system is 165 instead of 265.

Gurzil avatar Dec 18 '13 17:12 Gurzil

Download the latest version and test again, seems the Nessus team changed the parameters, the fix should fix that problem. Let me know how it goes and sorry for the delay.

darkoperator avatar Dec 29 '13 20:12 darkoperator