Autotask API with powershell
1.7 هزار بار بازدید -
3 سال پیش
-
In this video I talk
In this video I talk about how easy it is to retreive and save information to Autotask with powershell.
You can use this script below in the video.
function Login() {
$APIid =”Tracking ID GOES HERE ”
$apiusername = "API Username goes here"
$apipassword = ConvertTo-SecureString "API Password goes here" -AsPlainText -Force
$credentials = New-Object System.Management.Automation.PSCredential ($apiusername, $apipassword)
write-host "Logging IN"
Import-Module Autotask -ArgumentList $credentials, $APIid, '*' -Force
}
More information on this plugin at Powershell Gallery
https://www.powershellgallery.com/pac...
if(Get-Command "Update-atwsdiskcache" - -erroraction SilentlyContinue)
{
Write-Host "Already logged in"
}
else
{
Login
}
For more information on the this you can visit the Powershell Gallery at https://www.powershellgallery.com/pac...
You can use this script below in the video.
function Login() {
$APIid =”Tracking ID GOES HERE ”
$apiusername = "API Username goes here"
$apipassword = ConvertTo-SecureString "API Password goes here" -AsPlainText -Force
$credentials = New-Object System.Management.Automation.PSCredential ($apiusername, $apipassword)
write-host "Logging IN"
Import-Module Autotask -ArgumentList $credentials, $APIid, '*' -Force
}
More information on this plugin at Powershell Gallery
https://www.powershellgallery.com/pac...
if(Get-Command "Update-atwsdiskcache" - -erroraction SilentlyContinue)
{
Write-Host "Already logged in"
}
else
{
Login
}
For more information on the this you can visit the Powershell Gallery at https://www.powershellgallery.com/pac...
3 سال پیش
در تاریخ 1400/02/06 منتشر شده
است.
1,762
بـار بازدید شده