Hello
It seems complicated to find how to create a PSSession to a remote server which is not an Exchange server.
This works only for an Exchange server:
$session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri "http://[exchangeServer]/powershell/" -Authentication Kerberos Import-PSSession $session -DisableNameChecking
I usually create sessions to our servers with
$scriptBlock{ "test" > "C:\temp\test.txt" } $session = New-PSSession -computerName $computername -Authentication Kerberos Invoke-Command -computerName $computername -scriptBlock $scriptBlock
But the code above does not work with PRTG. I receive an error code: PE231 and code: PE233!
Please help us to find a way to create a remote session with powershell to a server which is not an Exchange server.
Add comment