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. Visual Basic
  4. getting the user information

getting the user information

Scheduled Pinned Locked Moved Visual Basic
tutorialcsharpwindows-admin
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.
  • D Offline
    D Offline
    devil666
    wrote on last edited by
    #1

    hi!! i want to retirieve the user information currently logged on to the system... the inforamtion whihc i want to reitrieve is group to which the user belongs comlete name this inforamtin is in actie directory so i have to get this from active directory.. would any1 guide me how to do this in vb.net regards

    R 1 Reply Last reply
    0
    • D devil666

      hi!! i want to retirieve the user information currently logged on to the system... the inforamtion whihc i want to reitrieve is group to which the user belongs comlete name this inforamtin is in actie directory so i have to get this from active directory.. would any1 guide me how to do this in vb.net regards

      R Offline
      R Offline
      Ravi_Shankar
      wrote on last edited by
      #2

      Hi, You can use the Environment Class to get the details... Please find the sample as follows: MessageBox.Show("Machine Name: " & Environment.MachineName()) MessageBox.Show("Domain Name: " & Environment.UserDomainName()) MessageBox.Show("Logged on User Name: " & Environment.UserName()) Ravi Shankar S Programmer Analyst iSOFT R&D Pvt Ltd Chennai, INDIA Ph: 91-44-4414980 Extn 1103

      D 1 Reply Last reply
      0
      • R Ravi_Shankar

        Hi, You can use the Environment Class to get the details... Please find the sample as follows: MessageBox.Show("Machine Name: " & Environment.MachineName()) MessageBox.Show("Domain Name: " & Environment.UserDomainName()) MessageBox.Show("Logged on User Name: " & Environment.UserName()) Ravi Shankar S Programmer Analyst iSOFT R&D Pvt Ltd Chennai, INDIA Ph: 91-44-4414980 Extn 1103

        D Offline
        D Offline
        devil666
        wrote on last edited by
        #3

        thx for the reply but this environment class doesnot provide me the facility to know the group of currently logged on user.. which is the most important information about the user as far as i am concerned.. so plz hep me out..

        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