#212601 - 2017-07-20 04:19 PM
KIX logon script starting minimized at logon
|
dwsykes
Fresh Scripter
Registered: 2017-07-20
Posts: 9
Loc: North Carolina
|
Hello,
I have a script that runs as a logon script... I was attempting to stay away from a batch file, but it seems this is the only way I can get the window to start maximized.
When running via batch file I can only get WKIX32 to show the console... KIX32 starts minimized
kixtart top of script:
Break On
$RC=SetTitle("Logon Script")
$RC=SetFocus("Logon Script")
$RC=SetConsole("ALWAYSONTOP")
Color n+/n
BOX (5,10,18,70,FULL)
Color n+/n
AT ( 7,15) "@TIME"
AT ( 9,15) "Running Logon Script"
Color y+/n
AT (11,15) "Please Wait..."
This doesn't show in either KIX32 or WKIX32... so I utilized a batch file:
@ECHO OFF
%0\..\wkix32 %0\..\KIXTART.KIX
This will only show the console when using WKIX32... if I were to replace with KIX32 no console shows.
It also doesn't set the title...
What is going on here? Am I misunderstanding something?
Thank you, Darren
I guess I posted this in the wrong spot.. oops
Edited by dwsykes (2017-07-20 04:39 PM)
|
Top
|
|
|
|
#212605 - 2017-07-24 03:14 PM
Re: KIX logon script starting minimized at logon
[Re: Glenn Barnas]
|
dwsykes
Fresh Scripter
Registered: 2017-07-20
Posts: 9
Loc: North Carolina
|
I am currently testing some of this... KIX32.EXE KIXTART.KIX seems to be working so far. I'll take a look at those GPOs.
Thank you for the info! Much appreciated!
Darren
|
Top
|
|
|
|
#212606 - 2017-07-24 08:27 PM
Re: KIX logon script starting minimized at logon
[Re: dwsykes]
|
dwsykes
Fresh Scripter
Registered: 2017-07-20
Posts: 9
Loc: North Carolina
|
Ok... I have set 'DelayedDesktopSwitchTimeout' to 0 and have set 'Run Logon Script Visible' and 'Wait for Network at Startup' to enabled, but my logon script is still starting minimized...
I have changed the start of the script to this for testing... no affect.
Break On
$RC=SetConsole("FOREGROUND")
$RC=SetConsole("ALWAYSONTOP")
$RC=SetTitle("Logon Script")
$RC=SetFocus("Logon Script")
BUT if I create a batch file with the following code it DOES always show...
@ECHO OFF
%0\..\KIX32.EXE
This isn't making much sense...
Edited by dwsykes (2017-07-24 08:38 PM)
|
Top
|
|
|
|
#212612 - 2017-07-27 02:56 PM
Re: KIX logon script starting minimized at logon
[Re: Glenn Barnas]
|
dwsykes
Fresh Scripter
Registered: 2017-07-20
Posts: 9
Loc: North Carolina
|
Glenn,
We are using both Windows 7 and Windows 10 Build 1703. Kix version is 4.67.
I will edit the batch file to reflect your suggestion.
@ECHO OFF
KIX32.EXE KIXTART.KIX
Windows 10 Build 1703 is hiding the logon script no matter what I seem to change... so I will have to make some changes to accommodate that issue as well.
GPRESULT /R Output:
Microsoft (R) Windows (R) Operating System Group Policy Result tool v2.0 Copyright (C) Microsoft Corp. 1981-2001
Created On 7/27/2017 at 8:44:48 AM
RSOP data for XXXXX\Darren on IT-DSYKES : Logging Mode -------------------------------------------------------
OS Configuration: Member Workstation OS Version: 6.1.7601 Site Name: Default-First-Site-Name Roaming Profile: N/A Local Profile: C:\Users\Darren Connected over a slow link?: No
COMPUTER SETTINGS ------------------ CN=IT-DSYKES,OU=Computers,OU=! Information Systems,DC=internal,DC=XXXXX,DC=com Last time Group Policy was applied: 7/27/2017 at 8:27:30 AM Group Policy was applied from: svr-ad-03-vm.internal.XXXXX.com Group Policy slow link threshold: 500 kbps Domain Name: XXXXX Domain Type: Windows 2000
Applied Group Policy Objects ----------------------------- Test Mapped Drives Set Printer Search Enable Screensaver Certificate Auto-Enrollment Policy Enable Screensaver at Logon Win7 and Screen display off Standard Desktop Rename local administrator account NVIDIA Control Panel Settings Power Button Action Win7 802.1x XXXXX SSID Default Domain Policy Enable DES for Windows 7 Bigfix Installer Startup Script Global Settings Policy Windows Firewall Policy Local Group Policy
The computer is a part of the following security groups ------------------------------------------------------- BUILTIN\Administrators Everyone BUILTIN\Users NT AUTHORITY\NETWORK NT AUTHORITY\Authenticated Users This Organization IT-DSYKES$ Domain Computers Authentication authority asserted identity CERTSVC_DCOM_ACCESS System Mandatory Level
USER SETTINGS -------------- CN=Darren Sykes,OU=Users,OU=! Information Systems,DC=internal,DC=XXXXX,DC=com Last time Group Policy was applied: 7/27/2017 at 8:42:05 AM Group Policy was applied from: svr-ad-03-vm.internal.XXXXX.com Group Policy slow link threshold: 500 kbps Domain Name: XXXXX Domain Type: Windows 2000
Applied Group Policy Objects ----------------------------- Test Mapped Drives Set Printer Search Enable Screensaver Certificate Auto-Enrollment Policy Enable Screensaver at Logon Win7 and Screen display off Standard Desktop Rename local administrator account NVIDIA Control Panel Settings Power Button Action Win7 802.1x XXXXX SSID Default Domain Policy Enable DES for Windows 7 Bigfix Installer Startup Script Global Settings Policy Windows Firewall Policy Local Group Policy
The user is a part of the following security groups --------------------------------------------------- Domain Users Everyone BUILTIN\Administrators BUILTIN\Users NT AUTHORITY\INTERACTIVE CONSOLE LOGON NT AUTHORITY\Authenticated Users This Organization LOCAL GG_ShrCOperations Workstation Admins AW-MDM Users AW-MDM Test Users Remote Admin SharePoint Admins Mobile Device Users VPNUsers Ironport Exception Users SSAdmin CanonWideFormat AW-MDM IS GG_ShrIS Application Support IS Software Analyst Monitoring KACE-Admins ISSupport Authentication authority asserted identity CERTSVC_DCOM_ACCESS High Mandatory Level
Darren
Edited by dwsykes (2017-07-27 03:08 PM) Edit Reason: more info
|
Top
|
|
|
|
#212665 - 2017-09-06 03:44 PM
Re: KIX logon script starting minimized at logon
[Re: Allen]
|
dwsykes
Fresh Scripter
Registered: 2017-07-20
Posts: 9
Loc: North Carolina
|
This is exactly what I am seeing... (we are using v1703)
This however does seem to work, but rather displeasing to users
SetConsole("MAXIMIZE")
GIANT logon script mode
Edited by dwsykes (2017-09-06 03:49 PM)
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 491 anonymous users online.
|
|
|