Your Ingorup statements can be changed to (drop the =1 at the end):
You are mapping drives at every logon. If the drive is already there mapping it again will fail. Checking if it exists, if it does exists check if it links to the correct resource and take action or not on the outcome would be a nicer way to map drives. You can also just delete all network drives before mapping them. That also works but I prefer the "see and check link" option myself.
Starting the script with the /f parameter will clear the kixtart tokencahce so all groups a user belongs to should be recognized by kixtart.
_________________________
Mart
- Chuck Norris once sold ebay to ebay on ebay.