This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to install sophos endpoint remotely using powershell script?

Hi Guys, need some help.

i tried to install sophos on remote PC using powershell script, and the script is :

Invoke-Command -ComputerName PC01 -ScriptBlock {(&C:\windows\system32\cmd.exe /c "\\svr-test\SophosUpdate\CIDs\S000\SAVSCFXP\Setup.exe" -mng yes -updp \\svr-test\SophosUpdate\CIDs\S000\SAVSCFXP -ouser <USRNM> -opwd <PWWD> -s -ni) }

and the result is :

Access is denied.
+ CategoryInfo          : NotSpecified: (Access is denied.:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
+ PSComputerName        : PC01

am i doing it wrong? really need help



This thread was automatically locked due to age.
Parents Reply Children
No Data