Solved

Run login script minimized

Posted on 1998-03-16
4
695 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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Suggested Solutions

Sometimes you might need to configure routing based not only on destination IP address, but also on a combination of destination IP address (or hostname) and destination port number. I will describe a method how to accomplish this with free tools. …
Have you ever set up your wireless router at home or in the office to find that you little pop-up bubble in the bottom right-hand corner of Windows read "IP Conflict - One of more computers on the network have been assigned the following IP address"…

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