When you want to add an Virtual Fibre adapter to an VM you will get an error like
When this happens you have to set the VirtualizationBasedSecurityOptOut to $true:
Set-VMSecurity -vmname "vmname" -VirtualizationBasedSecurityOptOut $true
After changing this you will be able to add an virtual fibre channel adapter
The term 'Get-VM' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again."after entering command as mentioned by you.
BeantwoordenVerwijderenHi Unknow,
BeantwoordenVerwijderenyou have to use: Set-VMSecurity -vmname "vmname" -VirtualizationBasedSecurityOptOut $true
you can validate if it's set by running the following command: get-VMSecurity -vmname "vmname".
you have to run these commands on the hyper-v server itself. and this is only applicable on windows server 2016!