Now when i try the script below that NTDOC has to me to test, it is able to detect when a user is in the itdept group or not so it means is on the test computer but why it not working for the map drive and on the domain is what is killing me.


If Not @LogonMode
Break On
Else
Break Off
EndIf
Dim $SO
$SO=SetOption('Explicit','On')
$SO=SetOption('NoVarsInStrings','On')
$SO=SetOption('NoMacrosInStrings','On')
$SO=SetOption('WrapAtEOL','On')

Dim $NoCache, $x
$NoCache = DelKey('HKCU\Software\KiXtart\TokenCache')
@KiX ?
If InGroup(@Domain+'\itdept')
'Found in ITDEPT Group' ?
Else
'Did not find in ITDEPT Group' ?
EndIf

'Press any key to continue...'
Get $x