Create a self signed certificate on Win10 and PS5.1 The cmdlet generates an ssl cert for testing purposes. Unlike makecert this cannot be used to sign a driver or an application code. Get-Command -Module PKI New-SelfSignedCertificate -DnsName test.vmlab.local -CertStoreLocation cert:\LocalMachine\My -Type CodeSigningCert View the Cert: cd cert: dir cd localmachine…
Tag: script
In Hyper-V Virtual Switch Manager i had unticked “Allow management operating system to share this network adapter” and also enabled VLAN identification. After applying this i lost all network connectivity to the host Hyper-V Server. I had to access it through the console and run PS cmdlet: Get-VMSwitch Remove-VMSwitch “Name…
I have recently setup a VM which I wanted to quickly put online/offline or switch between my router Gateway and server Gateway Address. I got tired of clicking through multiple windows and ok buttons and decided to write 2 powershell scripts to do this with one click.The first script sets…