Powershell < 5
use Get-PSSnapin/Add-PSSnapin for load Powercli module
Powershell >= 7
use get-module/Import-Module for load powercli module
Could-you update vcheck ?
Get-PSSnapin: D:\vCheck\Scripts\Plugins\00 Initialize\00 Connection Plugin for vCenter.ps1:131
Line |
131 | if(Get-PSSnapin -Name $pcliCore -Registered -ErrorAction Sile …
| ~~~~
| The term 'Get-PSSnapin' 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.
Hi,
I use powershell 7.
The script is not compatible.
Powershell < 5 use Get-PSSnapin/Add-PSSnapin for load Powercli module
Powershell >= 7 use get-module/Import-Module for load powercli module
Could-you update vcheck ? Get-PSSnapin: D:\vCheck\Scripts\Plugins\00 Initialize\00 Connection Plugin for vCenter.ps1:131 Line | 131 | if(Get-PSSnapin -Name $pcliCore -Registered -ErrorAction Sile … |
~~~~ | The term 'Get-PSSnapin' 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.Thx