Quantcast
Channel: Configuration Manager 2012 - Operating System Deployment forum
Viewing all articles
Browse latest Browse all 9126

InputBox script doesn't pop a window and never ends

$
0
0

Hello,

I have a vbscript launched through a task sequence which is supposed to request input from the user.

The script is in a package I have added to a run a command line task:

cscript.exe getfoldername.vbs


Here is the script:

set env = CreateObject("Microsoft.SMS.TSEnvironment")
Name = InputBox("Entrer le nom de la machine source")
env("FolderName") = Name

I run the TS from a desktop computer, logged as a local admin.

The task sequence runs properly up to the point of launching cscprit.exe (the process is running on the computer).

Then the TS keeps waiting and never ends.

It looks like the InputBox is launched but not visible and that the script is waiting for an input.

Any help would be much appreciated.

Thank you.

Gilles


Viewing all articles
Browse latest Browse all 9126

Trending Articles