question

MiriyalaVasu-9357 avatar image
0 Votes"
MiriyalaVasu-9357 asked ·

How to suppress VB Script black screen prompt in PXE/Boot Image

Hello,

We are executing a VB Script in PXE (from Boot Image) using prestart command, it does its work well, however this throws a black screen during its execution time. We don’t want this prompt to be seen by Helpdesk people during Image. We have tried suppressing it using wscript.exe /cscript.exe //Nologo switch, but no luck.

Appreciate any pointers

Thanks, Vasu

mem-cm-generalmem-cm-osd
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Jason-MSFT avatar image
0 Votes"
Jason-MSFT answered ·

To my knowledge, this is not directly possible as both cscript and wscript always launch a command-prompt.

Using start with the /MIN option may allow you to launch them minimized though.

None of this is specific to ConfigMgr though so I've added the Windows-10-general tag for other possible ideas.

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MiriyalaVasu-9357 avatar image
0 Votes"
MiriyalaVasu-9357 answered ·

Thanks Jason,

Same script works fine on Windows 10 WKS or Windows 2012 R2 Server, without any prompts. We did lot of combinations, permutations (//B, //Nologo , removing all echos etc) to confirm all works well, prompt surfacing issue happens only when its launched in PXE / Prestart command

Thanks, Vasu

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Jason-MSFT avatar image
0 Votes"
Jason-MSFT answered ·

Same script works fine on Windows 10 WKS or Windows 2012 R2 Server, without any prompts.

How are you running it to test? From a command-prompt or during a task sequence?

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MiriyalaVasu-9357 avatar image
0 Votes"
MiriyalaVasu-9357 answered ·

Running it through Prestart command feature in Boot Image
cscript.exe Act.vbs //nologo

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Jason-MSFT avatar image
0 Votes"
Jason-MSFT answered ·

When you run it in normal Windows, how are you running it?

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MiriyalaVasu-9357 avatar image
0 Votes"
MiriyalaVasu-9357 answered ·

same command as is and it works , both cscript/wscript works too.
BTW: Start /m /min switch doesnt work to minimize in Win10 it seems, lot many say on forums too

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Jason-MSFT avatar image
0 Votes"
Jason-MSFT answered ·

same command as is and it works

But how are you running it. Manually from the command-line, in a task sequence, using a package/program, something else?



· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MiriyalaVasu-9357 avatar image
0 Votes"
MiriyalaVasu-9357 answered ·

Manually in Windows 10, not using any SCCM deployment methods, as this is for checking script functionality.

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Jason-MSFT avatar image
0 Votes"
Jason-MSFT answered ·

What command-line exactly are you using to call the script?

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MiriyalaVasu-9357 avatar image
0 Votes"
MiriyalaVasu-9357 answered ·

Hi Jason

Attaching the screenshot for reference 29479-capture.png



capture.png (107.8 KiB)
· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.