|
ASDK & DS 6.9 & PowerShell
HI,
Did anyone try using the ASDK with PowerShell ?
For NS this seems to work without a problem.
But for DS I can't seem to get the Authenticate to work.
There is no role security in our DS 6.9.
NS example that works:
$ns = New-Object -comObject Altiris.ASDK.NS.ItemManagement
$ns.TargetServer = "our-NS-server"
$ns.Authenticate()
$items = $ns.GetItemsByType("Collection")
DS example that doesn't work:
$dsJob = New-Object -comObject Altiris.ASDK.DS.JobManagement
$dsJob.TargetServer = "our-DS-server"
$dsjob.Authenticate()
$jobids = $dsJob.GetJobIDs("A*")
The GetJobIDs method always gives the error
"Method failed. Exception: The request failed with HTTP status 401: Unauthorized.
|