sgtoj / PSConnectWise

PowerShell Module that provide several CmdLets to interact with ConnectWise REST API service.
MIT License
45 stars 13 forks source link

Import-Module error #45

Closed rob-dev-builder closed 6 years ago

rob-dev-builder commented 6 years ago

Hi,

I am having trouble importing this module onto Windows server 2012 machine. Please see attached error message that I am getting.

I have been able to import the module successfully onto my windows 10 workstation. I have tested it on the workstation and all works fine. However, the import is not working on the server.

This is more of support issue than a bug - hoping someone might be able to assist me.

Thanks!

import-module-error

sgtoj commented 6 years ago

Do you have PS 5.0 installed on the Windows 2012 server? Windows 10 defaults with PS 5.0.

rob-dev-builder commented 6 years ago

I can confirm I am running version 5.0 on the server. Please see attached... psversion

I have also just tried on a different server (Windows Server 2016). With PS version 5.1 and it works fine on that one. Perhaps I need to upgrade to 5.1 ?

sgtoj commented 6 years ago

Is it possible for you to reclone the repo an try again? That first error says it missing the source for one of the classes.

rob-dev-builder commented 6 years ago

Hi, just letting you know it worked after I upgraded to powershell 5.1. Thanks.