Hi All I need a script that checks for a remote reg key I have so far created this $reg = "HKLM:\Software\Policies\Citrix\loadmanagement\" $key = "MaximumNumberOfSessions" $reg_value = Get-ItemProperty $reg -name $Key $regv = $reg_value.MaximumNumberOfSessions.tostring() write-host "message: $regv" if($regv -eq 15){Write-Host "Statistic: 0"} else {Write-Host "Statistic: 1"} It runs fine on the monitored node locally however i need SAM to run this Having been reading about local excution and remote excution i have realsied that my script will not work with "LOCAL EXECUTION" however as im getting winRM errors on remote execution i cant use that at the moment (server owners are looking into it) so my question is what do i need to add to the script so that it can query a remote machine but run in "local execuation" mode