Solved

Can GPO startup scripts run in cscript.exe instead of wscript?

Posted on 2003-11-04
2
1,189 Views
Last Modified: 2012-06-21
Simple question- I'm trying to convert my company's login and startup scripts from .bat to .vbs.  We like to "echo" things to notify the user of whats going on.  When I wscript.echo in the startup script, it pops up messageboxes.  I'd like the cscript command window.  Is this possible?  I don't know where a setting would be to change this.

I realize I could call cscript.exe from a .bat, but I'd rather avoid that if possible.

Thanks.
0
Comment
Question by:bohiti
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 9

Accepted Solution

by:
svenkarlsen earned 125 total points
ID: 9683687
Basically, if you have the script ready, you can call it from another script:

   Set objShell = CreateObject("WScript.Shell")
   strCmdLine = "cmd /k cscript.exe script.vbs"
   objShell.Run(strCmdLine)

You can elaborate on that to make e.g. a menu with the scripts you use..
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Microsoft is moving in-place eDiscovery & hold from ECP to EOP console under Content Search in Search and Investigation Options.  In this post, I will be showing you how to export emails to a PST file using the Content Search Options.
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question