bmsimons / PowerShell-SMS

Send SMS messages using SMS APIs with PowerShell.
MIT License
5 stars 3 forks source link

Error: New-Object : Cannot find an overload for "PSCredential" and the argument count: "2". #2

Open pdewestvries opened 3 years ago

pdewestvries commented 3 years ago

When I sent a SMS I get the following error: New-Object : Cannot find an overload for "PSCredential" and the argument count: "2". At C:\Users\USER\Documents\WindowsPowerShell\Modules\PowerShell-SMS\Actions\Send-SMS.ps1:43 char:148

Maybe something simple but the PowerShell is new for me. I have executed: Set-ExecutionPolicy -ExecutionPolicy RemoteSigned Import-Module PowerShell-SMS Set-Twilio -AccountSid ACfc.............c9 -AuthToken 934b...........5d Send-SMS -To +316.........32 -From +141.............48 -Message "Hello, Pieter!" -Provider Twilio

Running on Win10 $PSVersionTable Name Value


PSVersion 5.1.19041.610
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.19041.610
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Marksch88 commented 1 year ago

I get the same error @bmsimons Did you ever find a solution for this error @pdewestvries