Registered member login:
Register Now
Altirigos » Deployment Solution » Scripting/Tools/Docs » Remote Deployment VB Script

» Current Poll
Do you leave the Aclient enabled?
YES - 82.35%
98 Votes
NO - 17.65%
21 Votes
Total Votes: 119
You may not vote on this poll.
» Stats
Members: 9,449
Threads: 11,725
Posts: 55,169
Top Poster: Nick (4,979)
Welcome our newest member, mysterio
» Online Users: 23
2 members and 21 guests
Gaute, markr1963
Most users online at once 294, 06-30-2007 at 01:24 PM.
» March 2010
S M T W T F S
28 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 123
Reply
Old 11-19-2008, 04:59 AM   #1 (permalink)
 
Status: Junior Altiris Admin
Join Date: 04-15-2008
Location: Manchester, UK
Posts: 24


Remote Deployment VB Script

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


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 01:44 AM.


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