Registered member login:
Register Now
Altirigos » Notification Server and Solutions » ASDK/SSDK » ASDK & DS 6.9 & PowerShell

» Current Poll
Vista?
Staying on XP until Windows 7 - 71.74%
99 Votes
Already on Vista - 10.87%
15 Votes
Planning an upgrade to Vista soon - 10.14%
14 Votes
Other (please explain) - 7.25%
10 Votes
Total Votes: 138
You may not vote on this poll.
» Stats
Members: 6,822
Threads: 9,759
Posts: 47,763
Top Poster: Nick (4,800)
Welcome our newest member, TommyGun
» Online Users: 22
1 members and 21 guests
bdub310
Most users online at once 294, 06-30-2007 at 01:24 PM.
» January 2009
S M T W T F S
28293031 1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Reply
Old 10-07-2008, 03:07 AM   #1 (permalink)
 
Status: Junior Altiris Admin
Join Date: 03-29-2005
Location: Belgium
Posts: 25


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.
ldekens is offline   Reply With Quote
Reply

Tags
asdk, ds69, powershell


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Powered by vBadvanced CMPS v3.0 RC2

All times are GMT -4. The time now is 09:56 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
vB.Sponsors
Altirigos