Hi all,
I've had a look though both the KIX CHM help files and this forum trying to find out if its possible to test for COMPUTER account group membership?

The scenario is this :-
I have one domain over five sites via VPNs. One site has two sister companys, though they share the same human and computing resources. I want a login script that will set the users wallpaper depending on the computer they're logging on to, not who they are... so they get the right wallpaper regardless of which side of the fence they're sitting on on any particular day.

I've created two "Security Group - Global" groups within the Computers container in the domains AD and added the computer accounts to each group. I have the following snip bit of code :-

Code:
If InGroup("domain\COMPANY1")
   ? "Copying company logo."
   Copy "@LSERVER\NETLOGON\FILES\COMPANY1.bmp" "%USERPROFILE%\company-logo.bmp"
   ? "Setting Wallpaper."
   SetWallpaperV2("%USERPROFILE%\company-logo.bmp",1,0)

EndIf

If InGroup("domain\COMPANY2")
   ? "Copying company logo."
   Copy "@LSERVER\NETLOGON\FILES\COMPANY2.bmp" "%USERPROFILE%\company-logo.bmp"
   ? "Setting Wallpaper."
   SetWallpaperV2("%USERPROFILE%\company-logo.bmp",1,0)

EndIf


I am running KIX32.exe with the /F switch for force a fresh check of group memberships.

I have tried this code with and without domain\ leading the group names, and also with domain\Computer\COMPANYx with no joy.

To state the obvious, the KIX help file does say that INGROUP "Identifies the group(s) in which to check the user's membership". Does INGROUP definately not test for computer account group membership? If thats the case I'll try and create my own function and post it back here.

Any imput greatfully receive!

Have a great Christmas!

Thanks

Steve Scotter