| | |
Is there a way to get Windows login username?
![]() |
•
•
Join Date: Jul 2007
Posts: 19
Reputation:
Solved Threads: 0
I'm logging employees' internet access for compliance with company policy. As soon as an employee visits a blocked site, he is redirected to a warning page (on the intranet). This warning page gets their IP addresses & emails them to the IT department. I also need their usernames.I have found 3 different solutions which all work from
1. ASP 2. VBScript 3. Reading a File from employee's PC
Is there a way to read a file from employees' PC from the intranet - without them knowing?
Thank a lot in advance.
//localhost/ (when the page is run from the client's PC). However, this warning page will be on the intranet & I need to know whether it would work from the intranet or not? Or what modifications do I need to make? Here are the 3 ways:1. ASP
asp Syntax (Toggle Plain Text)
<% Response.Write Request.ServerVariables("LOGON_USER") %>
vb Syntax (Toggle Plain Text)
<SCRIPT LANGUAGE="VBScript"> Dim objNet On Error Resume Next 'If fail to create object then display error ' (press no message) Set objNet = CreateObject("WScript.NetWork") If Err.Number <> 0 Then 'If err MsgBox "Do not press ""No"" If your browser warns you." Document.Location = "info.html" 'Display document by placing name again End if Dim strInfo strInfo = "User Name is " & objNet.UserName & vbCRLF & _ "Computer Name is " & objNet.ComputerName & vbCRLF & _ "Domain Name is " & objNet.UserDomain MsgBox strInfo document.write(strInfo) Set objNet = Nothing 'Destroy the Object </SCRIPT>
Is there a way to read a file from employees' PC from the intranet - without them knowing?
Thank a lot in advance.
Real stupidity always beats Artificial Intelligence. (Terry Pratchett)
BA BizMg, MCSE, DCSE, Linux+, Network+
BA BizMg, MCSE, DCSE, Linux+, Network+
![]() |
Similar Threads
- XP desktop icons and task bar disappear after login (Windows NT / 2000 / XP)
- Windows XP slow login (Windows NT / 2000 / XP)
- how to initiate windows login using c# (C#)
- how to get network login user name (ASP)
- display data base on the login username? (ASP.NET)
- Can I change origional windows login name ??? (Windows tips 'n' tweaks)
- XP anf Novell Client Dual Login (Novell)
- can get past windows login screen (Windows NT / 2000 / XP)
Other Threads in the Network Security Forum
- Previous Thread: Help! Someone's forging my Email address!
- Next Thread: remote access through NAT (soho router)
| Thread Tools | Search this Thread |
Tag cloud for Network Security
adobe advice antivirus apple attack banking blackhat bot botnet breach browser business cellphone china crack crime cybercrime daniweb data database dataloss dataprotection development email emailretention encryption exploit facebook firefox flash forensic fraud gadget gartner google government hack hacker hacking hardware hotmail identity idtheft information internet iphone kaspersky koobface law linux malware mcafee mckinnon microsoft military mobile nasa nationalsecurity network news obama p2p password passwords paypal pdf pentagon phishing php politics privacy report research review sans satnav scam school search security socialnetworking software spam survey symantec terrorism terrorist trends trojan twitter uk usb virus vulnerability warning web word worm yahoo zeroday






