Skip to content

Tag: script

Setup PowerShell 5.1 Self Signed Certificate and sign Script

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…

Lost network to Hyper-V 2016 after changing virtual switch settings

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…