Occasional Contributor
Re: embedding passwords in scripts? Is there a better way?

Ok, to answer my own question.  The script that needs the server to be restarted needs to print a specific string back to HP-SA to indicate a forced reboot.  For powershell it looks like this:

 

write-host "OPSW_FORCE_REBOOT";
Restart-Computer;