Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Ifmember returns error

Ifmember returns error

Ifmember returns error

Hi Everyone,

I am having a strange problem that just recently popped-up.

I have a simple login script that has been used for years. Recently, user's would not get all they mappings because an error would occur while the login script runs. These error are specifically related to "IFMEMBER", please see attachment for screenshots.

This error is not affecting all users and the number of groups they belong to vary, and not related to there PCs because they have tried logging on to diffrent PCs. The server is fine running latest service packs. I also tested by creating some test accounts and the login scripts runs fine for them. I am beginning to believe it could be account related but not 100% sure. Anybody's help would be appreciated.

This is what I found from MS KB, http://support.microsoft.com/kb/290794, which does not help because user's with much more groups do not have a problem.


RE: Ifmember returns error

Sorry guys the attachment did not work...anyhow here is the error i am getting when the login script runs:

ifmember: GetTokenInformation failed. Error code returned by system was 122

When I type "net helpmsg 122" I get this:

The data area passed to a system call is too small.

Any help would be appreciated as I am stumped!

RE: Ifmember returns error

Wow..i am surprised no one else ever experienced this problem...I searched all the net and have found nothing.


RE: Ifmember returns error

ifmember is fairly outdated, given that many, if not most, complex login scripts use vbscript instead. There is a wealth of info here on vbscript, including using it in login scripts.

Pat Richard MVP

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close