SSL SAN Certificate for Apache server If you want to create a SSL Certificate you need to run the below commands. STEP: Generate Private Key Crete a folder in C Drive mkdir ~/certs cd ~/certs This is on the Windows server where you want to create the certificate Open OpenSSL you need to install it in Windows server. open OpenSSL Command prompt and run the below command Create the key and place in a file: openssl genrsa -out www.contoso.com .key 2048 In the above command change the website to your website to which your creating the Certificate the Certs folder the key file will be generated. Before creating the CSR create a new file in the Certs folder with the below details and rename it as Contoso.cnf mentioned in it [req] default_bits = 2048 prompt = no default_md = sha256 req_extensions = req_ext distinguished_name = dn [dn] C = GB ST = Greater Manchester L = Salford O = contoso OU = IT CN = co...
Script to get the list of VM and there configuration which are hosted in Hyper -V host. Please find the script below. # Ensure the Hyper-V module is loaded Import-Module Hyper-V # Create the export directory if it doesn't exist $ExportPath = "C:\Temp\HyperV_VM_List.csv" if (!(Test-Path "C:\Temp")) { New-Item -Path "C:\Temp" -ItemType Directory -Force } # Get the Hyper-V Host Details $HostName = $env:COMPUTERNAME $HostIPConfig = Get-NetIPConfiguration | Where-Object { $_.IPv4Address -ne $null } | Select-Object -First 1 $HostIP = $HostIPConfig.IPv4Address.IPAddress $Subnet = $HostIPConfig.IPv4Address.PrefixLength $Gateway = if ($HostIPConfig.IPv4DefaultGateway) { $HostIPConfig.IPv4DefaultGateway.NextHop } else { "N/A" } $DNS = if ($HostIPConfig.DNSServer) { ($HostIPConfig.DNSServer.ServerAddresses -join ", ") } else { "N/A" } # Get the list of all VMs on the local Hyper-V host $VMs = Get-VM # Initialize an array to store...