Registered member login:
Register Now
Altirigos » Deployment Solution » Scripting/Tools/Docs » unable to run a script localy on the ds

» Current Poll
Do you leave the Aclient enabled?
YES - 82.31%
107 Votes
NO - 17.69%
23 Votes
Total Votes: 130
You may not vote on this poll.
» Stats
Members: 9,499
Threads: 11,754
Posts: 55,313
Top Poster: Nick (4,981)
Welcome our newest member, anthony.hardy
» Online Users: 26
1 members and 25 guests
s0n-
Most users online at once 294, 06-30-2007 at 12: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
Closed Thread
Old 05-12-2009, 05:38 AM   #1 (permalink)
ORT
 
Status: Junior Altiris Admin
Join Date: 12-11-2008
Location: Spijkenisse, Netherlands
Posts: 5


Question unable to run a script localy on the ds

Hello members,

I'm new to scripting. I wrote the folowing script

[code]
'vbscript
Dim FSO, objFile, strDestin, strFile

Set FSO = CreateObject("Scripting.FileSystemObject")

strFile = inputbox("In welke NDS container moet dit werkstation komen?", "ZENWorks import")
strDestin = "C:\Program Files\Altiris\eXpress\Deployment Server\Sysprep\wsscript\wsimport.txt"

Set objFile = FSO.CreateTextFile(strDestin, True)

objFile.Write strFile

objFile.Close
[\code]


and it has to run localy on the DS server. I use this txt file later on the cliënt to do an automatic Zenimport. But when i run it, it keeps running, but on the DS nothing happens. It looks like the script is waiting for my input, but there is no inputbox. What is wrong?

greetz Richard
ORT is offline  
Old 05-13-2009, 09:24 PM   #2 (permalink)
 
TRYDL's Avatar
 
Status: Super Altiris Admin
Join Date: 03-08-2006
Location: Baltimore, MD
Age: 29
Posts: 576


You wouldnt see the input box on the DS since "Run script" when run locally on the DS is executed in the context of Local System. That is generally non-interactive.

If you are looking to create a custom TXT file on each document, it maybe easier to reference custom tokens and token replacement. These are covered in the DS manual.

HTH
__________________
3rd Floor Garage Door Operator
TRYDL is offline  
Old 05-14-2009, 10:20 AM   #3 (permalink)
ORT
 
Status: Junior Altiris Admin
Join Date: 12-11-2008
Location: Spijkenisse, Netherlands
Posts: 5


Quote:
Originally Posted by TRYDL View Post
You wouldnt see the input box on the DS since "Run script" when run locally on the DS is executed in the context of Local System. That is generally non-interactive.

If you are looking to create a custom TXT file on each document, it maybe easier to reference custom tokens and token replacement. These are covered in the DS manual.

HTH
Thanks for the answer. Now i understand why. We have solved it in an other way. Filtering the content from the computername.

So this item can be closed
ORT is offline  
Closed Thread


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 11:14 PM.


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