getting the user information
-
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
-
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
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
-
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