ASDK & DS 6.9 & PowerShell

ASDK & DS 6.9 & PowerShell

I'm trying to use ASDK 1.4 from a PowerShell script to connect to our DS server.
Security roles are not enabled on the DS.

I test with the following script:

$dsJob = New-Object -comObject Altiris.ASDK.DS.JobManagement
$dsJob.TargetServer = "our-DS-server"
$dsjob.Authenticate()

$jobids = $dsJob.GetJobIDs("A*")

But the GetJobIDs method always gives the error
"Method failed. Exception: The request failed with HTTP status 401: Unauthorized.

Anyone has seen similar problems ?
Anyone knows a solution ?

With NS there is no problem

With NS this works without any problem.

$ns = New-Object -comObject Altiris.ASDK.NS.ItemManagement
$ns.TargetServer = "our-NS-server"
$ns.Authenticate()

$items = $ns.GetItemsByType("Collection")

Hi, I'm seeing the same

Hi,
I'm seeing the same issue. Did you get a resolution? I am guessing the ASDK 1.4 doesn't support DS6.9?
Andrew

Sp 1?

spazzzen's picture

There is currently an issue with ASDK 1.4 authenticating with DS 6.9 SP1. I have been in touch with Altiris and they have put a High priority ticket in for me to get this fixed. Last I heard was they were going to have a hotfix Thrusday 11/13, but then never heard if that actually happened. Prior to SP1, we did not have any authentication issues with the DS and the ASDK but all we were doing was deleting computers from the DS.
Are you setting a username and PW for the authentication at all? I believe for the ASDK you have to set a username and PW as it doesn't use a default authentication. That is what I have heard after my issues with the authentication with SP1.

I've moved forward (I

I've moved forward (I think) by adding 'anonymous' access to the virtual folder in IISmgr.

1. Click Start - Choose Run - Type "Inetmgr" and press Enter Key.
2. The IIS Control Panel window opens.
3. Select your virtual directory and right click - select "Properties"
4. Click the "Directory Security" tab and and click "Edit" Button.
5. Check the "Anonymous Access" Check box is enabled.
6. Press "OK" button twice to exit.

However,
The error I get now is...
Method failed. Exception: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.NullReferenceException: Object reference not set to an instance of an object.

Any ideas?