Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Active Directory Exception

Active Directory Exception

Scheduled Pinned Locked Moved C#
csharpcomwindows-admintutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vcorn
    wrote on last edited by
    #1

    System.RunTime.InteropServices.COMException : A device attached to system is not functioning at System.DirectoryServices.Interop.IAds.SetInfo(); this happen when i try a C# program which add users to administrators group. When i add to another group like print operators,guests...everything is fine. Anybody know how to solve this?

    D 1 Reply Last reply
    0
    • V vcorn

      System.RunTime.InteropServices.COMException : A device attached to system is not functioning at System.DirectoryServices.Interop.IAds.SetInfo(); this happen when i try a C# program which add users to administrators group. When i add to another group like print operators,guests...everything is fine. Anybody know how to solve this?

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      This may seem like a stupid question, but is the account that the app is running under have Admin rights to the machine? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      V 1 Reply Last reply
      0
      • D Dave Kreskowiak

        This may seem like a stupid question, but is the account that the app is running under have Admin rights to the machine? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        V Offline
        V Offline
        vcorn
        wrote on last edited by
        #3

        it's using administrator account, and one more, do you know how to do operation delete object, move object starting by authenticate and authorize the user first.. for example we use a username and password to do such an operation, so that whether such operation can be completed or not depends on the permissions given to given username. I found that the permissions is applied according to windows account that is currently logged on and using the program. What i want is the program itself will have its authentication & authorization independent of what account is actually used to logged on to windows. Thanks

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups