Hi,
When calling get-process directly you are authenticating as the calling user against the remote machine. In case of PRTG this is LOCAL SYSTEM which has no permissions at all on the remote machine. Try using invoke-command and pass explicit credentials, example code below:
param(
[string]$user = "USERNAME",
[string]$domain = "DOMAIN",
[string]$password = "PASSWORD",
[string]$target = "TARGETCOMPUTER"
)
$secpassword = $password | ConvertTo-SecureString -AsPlainText -Force
$creds = New-Object System.Management.Automation.PSCredential(("{0}\{1}" -f ,$domain, $user), $secpassword)
Invoke-Command {get-Process} -ComputerName $name -Credential $creds
# Do your stuff
Best regards
Add comment