Page 1 of 1 1
Topic Options
#204046 - 2012-01-10 04:18 PM Command Prompt not showing up - HELP!!!
Alucard_Kakashi Offline
Fresh Scripter

Registered: 2009-02-05
Posts: 37
Loc: USA
okay, so i have the kix script running, with no issues. i have bat file that is being called when the user logs into a windows 7 machine, but for some reason the dialog box hides in the taskbar and runs. i don't want that i want the user to see it during logging into the machine. Does anyone know what the issue is?

Thanks in advance for your help.

Top
#204047 - 2012-01-10 04:29 PM Re: Command Prompt not showing up - HELP!!! [Re: Alucard_Kakashi]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4310
Loc: New Jersey
Establish a GPO with the following policies:
Run Login Script Visible - Enabled (default is minimized)
Run Login Script Synchronously - Enabled (optional/recommended - causes login script to run to completion before the user can launch apps)

Also, for Windows 7/Server 2008, you want to set the DelayedDesktopSwitchTimeout registry value to zero, otherwise the scripts run behind the welcome screen, which is displayed for 30 seconds. Google it for more info, but strongly recommended. Most sites recommend a value of 5 (seconds) but I set all systems to 0 without issue - don't need to see the "welcome" page as much as I do the initialization commands/login scripts.

Also - even with these settings, I use a Kix command to set the login script window to "Maximized", which extends it from top to bottom of the screen, not the entire screen.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#204048 - 2012-01-10 04:53 PM Re: Command Prompt not showing up - HELP!!! [Re: Glenn Barnas]
Alucard_Kakashi Offline
Fresh Scripter

Registered: 2009-02-05
Posts: 37
Loc: USA
Awesome, but you mention that you use Kix command to set the login script window, which command is that?

Thanks for the help.

Top
#204049 - 2012-01-10 06:35 PM Re: Command Prompt not showing up - HELP!!! [Re: Alucard_Kakashi]
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2084
Loc: Tulsa, OK
See the SetConsole().
Top
#204050 - 2012-01-10 06:48 PM Re: Command Prompt not showing up - HELP!!! [Re: ShaneEP]
Alucard_Kakashi Offline
Fresh Scripter

Registered: 2009-02-05
Posts: 37
Loc: USA
Thanks ShaneEP.

But do i have to still do the GPO policy if i have my kix scripts in the domain controller under the NETLOGON folder?

Top
#204051 - 2012-01-10 07:27 PM Re: Command Prompt not showing up - HELP!!! [Re: Alucard_Kakashi]
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2084
Loc: Tulsa, OK
The SetConsole() function only changes the way the console is displayed, for the other options that Glenn mentioned above (synchronicity) then the GPO is necessary.
Top
#204052 - 2012-01-10 07:37 PM Re: Command Prompt not showing up - HELP!!! [Re: Alucard_Kakashi]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4310
Loc: New Jersey
Where you put your scripts has no bearing on how they are displayed. You are running a "legacy" login script as opposed to a GPO login script. My personal preference is Legacy, if that matters. ;\) The GPO settings I mention simply affect how a legacy script is run.

From testing, the SetConsole function may not be able to override the system policy to run minimized, so you need to set the policy to allow the window to be visible on all platforms.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#204061 - 2012-01-11 06:13 PM Re: Command Prompt not showing up - HELP!!! [Re: Glenn Barnas]
Alucard_Kakashi Offline
Fresh Scripter

Registered: 2009-02-05
Posts: 37
Loc: USA
Awesome, but for the GPO? do you do it on a computer level or a user configuration level?

Edited by Alucard_Kakashi (2012-01-11 06:41 PM)

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 49 anonymous users online.
Newest Members
srm11671, Brack, SpaceJunk, canandan, cfvrr
17695 Registered Users

Generated in 0.034 seconds in which 0.012 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org