I'm experiencing a strange problem with an if ingroup command. I'm not sure if this is AD, Kixtart, or both. Here's the script...
Code:
IF INGROUP ("Agent") = 1
? "Checking for Agent Install..."
DIM $InstalledC, $InstalledD
$InstalledC = EXIST("c:\program files\patch\agent.exe")
$InstalledD = EXIST("d:\program files\patch\agent.exe")
IF $InstalledC = 0 AND $InstalledD = 0
? "Agent Not Found... Installing Agent now.... please wait"
SHELL '%comspec% /c "\\server\share\setup.exe -s"'
Else ? "Agent Found"
ENDIF
ENDIF
This script won't run if you are a member of this AD group. I checked everything that I can think of (syntax, extra spaces, etc...). So then I thought let me enumerate the group via Kixtart. Here's the script...
Code:
? "Agent"
?
ENUMGROUP("Agent")
Here are the results...
Agent
DOMAIN\cc_users
Now...the cc_users group is a valid group in our domain and there are several users in that group. I don't understand why it shows cc_users as the only member of that group. Does this look like an AD problem or is there something in Kixtart I'm missing? We have 20 if ingroup commands in our production login script.
Thanks for any advice.