I use Powershell to automate an application called ServiceNow. To access ServiceNow with PowerShell I have
But I don't understand what it means. Does perhaps someone know what I have to do to make my code work:
Import-Module PSServiceNow New-ServiceNowIncident -ShortDescription "XXXXX" -Description "
Thank you in advanced,
Greetings, Peter Kiers
I think I have covered step 1. But I don't understand step 2 and 3:
$uid = "xxxxxxx" $pwd = "xxxxxxx" $secpasswd = ConvertTo-SecureString $pwd -AsPlainText -Force $creden = New-Object System.Management.Automation.PSCredential ($uid, $secpasswd) $mycredentials = Set-ServiceNowAuth -url
Give this a try for your credential object:
$creden = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $uid, $secpasswd
There are a few good articles on Credentials you could look at Warren Frame's article on this type of thing here:
You must be logged in to reply to this topic.