Hello.

We are starting to have a look at Windows Vista, which is giving us a problem with the logon script.

Our script is working without any issues on Win2k and WinXP.

Each user in the AD has a "Global.bat" script defined as the "Logon script" in "User profile". The "Global.bat" runs an initial KIX script:

 Code:
%0\..\Kix32.exe %0\..\AS.kix


The AS.kix then checks which global regional group the user is a member of, and then calls the local logon script for that user:

 Code:
SELECT
  CASE INGROUP ("Region - All Region Users") 		CALL @LSERVER+"\netlogon\<local DC>\LocalScript.KIX"
  ...
  ...
ENDSELECT


As mentioned, this is working fine with Win2k and WinXP. The script will also run on Vista, but I'm getting several "Access is denied" because we are both installing software and copying files to and from the client PC. I guess it's the UAC feature that is causing this, but disabling it is not an option.

I've browsed and searched this forum and Google'ed the topic, but I can't really find anything that says "This is how you do it!". I've come across "Launchapp.wsf", "Elevated permissions" and run it as a GPO.

I don't want to use a GPO to run the logon script - I'd like to keep it like we are running it now.

Regarding "Launchapp.wsf" - I've tried to create the following small script to handle the difference between XP and Vista.

 Code:
cls
$LogonServer = @LSERVER

;Check for specific Vista folder
IF Exist("C:\Users\") = 1
  ;Running Vista - run the script the special way
  RUN "\\LocalDC\netlogon\LocalDC\Launchapp.wsf \\LocalDC\NETLOGON\LocalDC\GoVista.bat"
ELSE
  ;Running Win2k or WinXP - run the script normally
  CALL @LSERVER+"\netlogon\LocalDC\LocalScript.KIX"
EndIF


Note: I'm aware of the "@PRODUCTTYPE" variable, but we are currently using KIX V4.23 which doesn't known anything about Vista, and our Domain Admin isn't interested in updating to the latest KIX version at the moment!

The "GoVista.bat" file just calls the "LocalScript.kix".

 Code:
\\LocalDC\netlogon\kix32.exe \\LocalDC\netlogon\LocalDC\LocalScript.KIX


As I understand, the "Launchapp.wsf" is supposed to create a "Scheduled Task" on the Vista client that will run the logon script, but nothing happens - the script is not run.

I've also tried to replace the call for "GoVista.bat" with the call for KIX directly, but then the command is just "echo'ed" instead!?

Am I missing something here, or have I just misunderstood the concept of this?

Thanks in advance.

/Michael