Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Display Computer Info on an ASP.NET Page

Tags:

c#

asp.net

I want to build a page for end users to visit (in our MPLS Network) and it show the following information in regards to them:

  • Computer Name
  • OS
  • Disk Space
  • Memory
  • IP Address
  • Active Directory User Name
  • Password Expiration Time (As defined by Global Policy)

Maybe a few other things such as Trend Micro Office current version vs. their version, # of MS Updates needed (we utilize WSUS), and a few other things in the future.

My question is how would I pull this information from the user when they visit the page? What is the proper function for this? Anyone have examples they wish to share for me to learn by if possible?

like image 352
Gene Avatar asked Nov 06 '22 12:11

Gene


2 Answers

You won't be able to show all of this using C#. C# is a server side language and therefore, only has access to that information relative to the server it's being hosted on. You might be able to access this information from a java applet that runs on the page in the user's browser, but I'm not sure. There are usually security restrictions involved.

like image 68
Chris Avatar answered Nov 13 '22 16:11

Chris


If you allow your web page to gather all this information about your users, what's to stop some other web page from doing the same?

like image 45
John Saunders Avatar answered Nov 13 '22 16:11

John Saunders