From 27e11c122b7f5b22c56975792351929cee794533 Mon Sep 17 00:00:00 2001 From: Nicole Rappe Date: Thu, 13 Mar 2025 18:06:29 -0600 Subject: [PATCH] Update Servers/Automation/Ansible/Enable WinRM on Windows Devices.md --- .../Automation/Ansible/Enable WinRM on Windows Devices.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Servers/Automation/Ansible/Enable WinRM on Windows Devices.md b/Servers/Automation/Ansible/Enable WinRM on Windows Devices.md index 95b92c8..f4b01cc 100644 --- a/Servers/Automation/Ansible/Enable WinRM on Windows Devices.md +++ b/Servers/Automation/Ansible/Enable WinRM on Windows Devices.md @@ -9,7 +9,7 @@ Write-Host "Enabling WinRM..." winrm quickconfig -force # Generate a self-signed certificate (Optional: Use your certificate if you have one) -$cert = New-SelfSignedCertificate -CertStoreLocation Cert:\LocalMachine\My -DnsName "hyperv-host.local" +$cert = New-SelfSignedCertificate -CertStoreLocation Cert:\LocalMachine\My -DnsName "hyperv-hostname.local" # (1) $certThumbprint = $cert.Thumbprint # Function to delete existing HTTPS listener @@ -68,4 +68,6 @@ Write-Host "Setting PowerShell execution policy to RemoteSigned..." Set-ExecutionPolicy RemoteSigned -Force Write-Host "Configuration complete. The Hyper-V host is ready for remote management over HTTPS with Kerberos authentication." -``` \ No newline at end of file +``` + +1. Make sure that you substitute this value with the fully qualified domain name of the server you are running this script on. \ No newline at end of file