PowerShell Module Commands: Unterschied zwischen den Versionen
Aus Wiki-WebPerfect
Admin (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „== Example for Hyper-V Module 1.1 and 2.0.0.0 == <source lang="powershell"> Import-Module Hyper-V -RequiredVersion 1.1 $HvM1 = Get-Command -Module Hyper-V Remo…“) |
Admin (Diskussion | Beiträge) K |
||
Zeile 4: | Zeile 4: | ||
$HvM1 = Get-Command -Module Hyper-V | $HvM1 = Get-Command -Module Hyper-V | ||
Remove-Module Hyper-V | Remove-Module Hyper-V | ||
+ | |||
Import-Module Hyper-V -RequiredVersion 2.0.0.0 | Import-Module Hyper-V -RequiredVersion 2.0.0.0 | ||
$HvM2 = Get-Command -Module Hyper-V | $HvM2 = Get-Command -Module Hyper-V |
Version vom 8. November 2017, 15:55 Uhr
Example for Hyper-V Module 1.1 and 2.0.0.0
Import-Module Hyper-V -RequiredVersion 1.1 $HvM1 = Get-Command -Module Hyper-V Remove-Module Hyper-V Import-Module Hyper-V -RequiredVersion 2.0.0.0 $HvM2 = Get-Command -Module Hyper-V compare $HvM1 $HvM2