Tstrowd
(Just in Town)
2008-02-13 06:48 AM
Logon script Win XP

My script works great mapping drives,etc.
When i put Kix32 in the user logon script box it dosen't run at all.
What the deal with a local login script. i do not have a domain controller just a workgroup.


Richard H.Administrator
(KiX Supporter)
2008-02-13 09:27 AM
Re: Logon script Win XP

A couple of questions to help us help you:
  1. Where are you specifing the logon script (user properties, local group policy)?
  2. What exactly is the command you are typing in the box?
  3. Have you checked the event logs for any errors during login?


Tstrowd
(Just in Town)
2008-02-14 05:11 AM
Re: Logon script Win XP

The logon script only runs if i put a batch file in the Group policy configuration mmc snap in. I don't know why the Kixtart manual says to put the script under the local user profile. It dosen't work!
I have to put the Kix script and Kix32 in the system32 directory also. I wish the manual would have told me this.


Witto
(MM club member)
2008-02-14 09:04 AM
Re: Logon script Win XP

I would discourage to copy the kix32.exe and the kix script to the system32 directory for logon scripts. Copy them to the \\domain\netlogon share (On your domain controller, that is the directory %SystemRoot%\SYSVOL\sysvol\domain.extension\scripts)
If you really wish to work with a batch file, you first try to find out if a Wndows 9x or a Windows NT is login on
for Win9x, you use
%0\..\wkix32 %0\..\KIXTART.KIX
for Win NT, you use
wkix32 KIXTART.KIX
Here is an example of how to veify for the operations system:
Frequently Asked Questions Regarding The Windows 2000 Command Processor
 Quote:

Q. What commands can I use in a logon script?
A. A logon script can use any command supported by the client O/S.

If you have a mixture of Windows NT-based clients and other Windows clients, you can test if the client platform is Windows NT-based by including the following statement:

if "%OS%"=="Windows_NT" goto winnt

If you need to test for a specific operation system, the following commands should work on all Microsoft operating systems:

ver | find "Windows XP" >nul
if not errorlevel 1 goto WXP
ver | find "Windows 2000" >nul
if not errorlevel 1 goto W2000
ver | find "Windows NT" >nul
if not errorlevel 1 goto WNT
ver | find "Windows 98" >nul
if not errorlevel 1 goto W98
ver | find "Windows 95" >nul
if not errorlevel 1 goto W95
ver | find "Windows ME" >nul
if not errorlevel 1 goto WME
ver | find "OEM Service Release" >nul
if not errorlevel 1 goto WOEM
ver | find "MS-DOS" >nul
if not errorlevel 1 goto DOS
::Unknown
echo ERROR - What are you running?
goto END
:WXP
goto end
:W2000
goto end
:WNT
goto end
:W98
goto end
:w95
goto end
:WME
goto end
:WOEM
goto end
:DOS
:end



Richard H.Administrator
(KiX Supporter)
2008-02-14 10:56 AM
Re: Logon script Win XP

 Originally Posted By: Witto
Copy them to the \\domain\netlogon share (On your domain controller, that is the directory %SystemRoot%\SYSVOL\sysvol\domain.extension\scripts)


You might want to re-read the original post, especially the bit about "workgroup"


Witto
(MM club member)
2008-02-14 12:07 PM
Re: Logon script Win XP

Whoops