Solved

Run login script minimized

Posted on 1998-03-16
4
699 Views
Last Modified: 2013-12-19
Does anyone know a way to run a login script minimized. For example, everytime you logon to an NT domain, your login script runs in a DOS windows. Is ther any way to run the login script minimzed so users don't see a DOS windows open up?

Thanks.
0
Comment
Question by:mpopal
[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
4 Comments
 
LVL 2

Accepted Solution

by:
mnguyen021997 earned 200 total points
ID: 1571371
in your logon script name section of your user environment profile (where you list your logon batch file or cmd file) try this:

cmd.exe /c start /min [name of batch file]

cmd.exe also has some other flags which maybe usefull so type cmd.exe /?
0
 
LVL 3

Author Comment

by:mpopal
ID: 1571372
Thanks for your help
0
 

Expert Comment

by:wael022398
ID: 1571373
If your users close the logon script window, hide it.
Navigate to HKEY_USERS\<each user>\Console

Edit or Add Value the following two REG_DWORD values:

WindowSize        and with the Radix at Hex, set it to 050005

WindowPosition and with the Radix at Hex, set it to 04FF06FF

This makes the Window very small and positions it off screen so they can't see it and hence can't close it.

If when running a command prompt, this windows is invoked, just maximize it, right click the title bar, and size/position it using the Layout tab in Properties. When you click OK, check Modify shortcut....



0
 
LVL 3

Author Comment

by:mpopal
ID: 1571374
wael,

Thanks a lot. I had no idea that could be done. Thanks again!
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Trying to figure out group policy inheritance and which settings apply where can be a chore.  Here's a very simple summary I've written which might help.  Keep in mind, this is just a high-level conceptual overview where I try to avoid getting bogge…
This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

705 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