Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Powershell 7 (Modify code) #716

Open
Keymis opened this issue Oct 22, 2020 · 0 comments
Open

Powershell 7 (Modify code) #716

Keymis opened this issue Oct 22, 2020 · 0 comments

Comments

@Keymis
Copy link

Keymis commented Oct 22, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant