VBS – Alert if user isn’t in System Administrator Group

Home Forums Scripting General Scripting VBS – Alert if user isn’t in System Administrator Group

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Avatar
    AndyBoot
    Member
    #110542

    I was wondering if anybody could cook me something up…

    Is there any way a VBS script can detect whether you have Admin Rights or not?
    If you aren’t in the group, a message appears with a preset message.

    I’ve tried fooling Windows before by making an attempt to copy a non functional file to the local hard drive, if you aren’t allowed, it would return an error. But I told it to display an error of my choice as opposed to VB’s message.
    Problem with this way is that it isn’t practical and can proove to be slow sometimes.

    I would like it if VB would check your system and then tell you. Rather than fooling it.

    Can anybody help?

    Thx

    Andy.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.