alanrenouf / vCheck-vSphere

vCheck Daily Report for vSphere
MIT License
733 stars 325 forks source link

Error launching vCheck #738

Open tkdreamer opened 2 years ago

tkdreamer commented 2 years ago

Error when launching vCheck

Hello

I've been trying to launck vCheck script, but I have a lot of errors:

Get-ChildItem : Impossible de trouver le chemin d'accès

Get-ChildItem : Impossible de trouver le chemin d'accès « C:\Users\user\Downloads\Plugins\

Get-ReportHTML : Le terme «Get-ReportHTML» n'est pas reconnu comme nom d'applet de commande, fonction, fichier de script ou programme exécutable. Vérifiez l'orthographe du nom, ou si un chemin d'accès existe, vérifiez que le chemin d'accès est correct et réessayez.

and a lot more..

Don't need to understand french to see that's something missing like a module maybe?

However, I have checked the prerequisites: PowerCLI version, vCenter version, etc... It's totally ok.

Of course I've launched Powershell/PowercLI with an admin account from different workstations..;

Any idea?

SnakeNET64 commented 2 years ago

If you launch with admins permissions, you may lost access to the folder. If you launch with user "Admin", user "admin" may not have the right to access c:\users\user folder. I suggest launching the script with the user "user" or to COPY the vcheck folder to another place where both users (user and admin) may have access (read/write) like c:\temp\ .

SnakeNET64 commented 2 years ago

Also, your files may have been "protected" by your browser.

Right click others files > properties and check the box "unblock"