Solved

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

Posted on 2003-11-04
2
1,162 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows 8 in a W2K Domain 7 581
Windows 2000 undelete (free program?) 6 429
Windows Foriegn Disk 3 130
how to run this deletion request 4 10
Often, people trade privacy and security for convenience. However in today's concrete jungle, this is an extremely foolish decision considering the vast amount of technologies being used against consumer interest. First off, I won't waste any time e…
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…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

932 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now