Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Ensure networks set as "Private":

Get-NetConnectionProfile -NetworkCategory "Public" | Set-NetConnectionProfile -NetworkCategory Private

Server:

winrm quickconfig
enable-wsmancredssp -role server -force

Set-Variables:

Set-Variable -Name "HV_Server" -Value "server.domain.com"
Set-Variable -Name "HV_Server_Admin_Username" -Value "Administrator"

Client:

Set-Item WSMan:\localhost\Client\TrustedHosts -Value $HV_Server
Enable-WSManCredSSP -Role client -DelegateComputer $HV_Server
Enable-WindowsOptionalFeature -Online -FeatureName:Microsoft-Hyper-V -All
cmdkey /add:$HV_Server /user:$HV_Server_Admin_Username /pass

Test:

Invoke-Command { Write-Host "hello, world" } -computername $HV_Server -credential $HV_Server_Admin_Username

Sources:

https://serverfault.com/questions/277573/cannot-get-credssp-authentication-to-work-in-powershell

  • No labels