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
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