0

I have several, systems (MS OS) that have the Tenable Nessus agent installed in my environment. I am attempting to re-link the agent to the management portal via PowerShell. I will be using SCCM to execute, the script so I created a simple PS script with one line of code that will execute the script remotely on the workstation. I can execute the script locally using powershell no problem, on errors, and the Nessus agent re-links.

I am sure, I am overlooking something. Here is my script


    Invoke-Command -ScriptBlock { Start-Process 'C:\Program Files\Tenable\Nessus 
    Agent\nessuscli.exe' -ArgumentList 'agent link -- 
    key=<License Key> -- 
    host=<hosted portal here> --port=<port>' -Passthru -NoNewWindow

Thank you for your time

WRCKid
  • 19
  • 3
  • Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. – Community Jun 02 '22 at 14:58
  • This topic can be closed. I have since addressed the issue. – WRCKid Jun 09 '22 at 01:40
  • How did you address the issue, if you don't mind me asking. Running into the same issue here. – T-Heron Dec 16 '22 at 15:00
  • Not at all, this is what worked for me and ran this as a script in SCCM. I would recommend signing your code against a certificate, in the environment I ran this one we required our code to be signed. `Start-Process 'C:\Program Files\Tenable\Nessus Agent\nessuscli.exe' -ArgumentList 'agent link --key= YOUR KEY HERE --host="" --port=' -Passthrough -NoNewWindow` – WRCKid Feb 03 '23 at 19:25
  • I ran this as a script against one of my global collections in SCCM – WRCKid Feb 03 '23 at 19:27

0 Answers0