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

» Current Poll
What version of DS will you use to migrate to Windows 7?
DS 6.x - 77.50%
31 Votes
DS 7.x - 22.50%
9 Votes
Other - 0%
0 Votes
Total Votes: 40
You may not vote on this poll.
» Stats
Members: 8,068
Threads: 10,728
Posts: 51,477
Top Poster: Nick (4,939)
Welcome our newest member, stevej
» Online Users: 12
0 members and 12 guests
No Members online
Most users online at once 294, 06-30-2007 at 12:24 PM.
» July 2009
S M T W T F S
282930 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 1
Reply
Old 11-19-2008, 03:59 AM   #1 (permalink)
 
Status: Junior Altiris Admin
Join Date: 04-15-2008
Location: Manchester, UK
Posts: 11


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 07:54 PM.


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