Sorry if this is a repeat I have had a look through the site and couldnt find quite the right thing so here I go...
I am looking a writing a bit of vbs that can be used by our helpdesk team to deploy rebuild jobs to computers from the DS. In essance the script will ask the user for there ds credentials and then for the machine name/mac/location to perform the rebuild. The problem I have is that I have writern a test script as bellow:
Code:
'Conect to ds
set GroupManagement = CreateObject("Altiris.ASDK.DS.GroupManagement")
GroupManagement.TargetServer = "ds_server_ip"
GroupManagement.Authenticate()
'GroupManagement.CreateLocalInstance()
'-----------------------------------------
' DSAuthenticate
'-----------------------------------------
'Collect username and password
strUserName = inputbox("Please enter your Username: ")
strPassword = inputbox("Please enter your Password: ")
'Create SDK GroupManagement object
call GroupManagement.DSAuthenticate (strUserName , strPassword, "")
'Create Test Group
wscript.echo "CreateGroup"
ExampleGroup1ID = groupManagement.CreateGroup( "Test group", -1)
wscript.echo "Complete ID: " & ExampleGroup1ID
wscript.echo "GroupManagement Complete"
I have had a problem were this script fails to conect to the ds server even if I run it from the DS server itself (so no firewall issues). Once I have this working I am pritty happy I can get the rest of the script to function if I can only get the connection to work. Any ideas grately apreciated.