Solved

Get and log to csv users that access a website with powershell

Posted on 2014-04-03
3
247 Views
Last Modified: 2014-04-11
I need to log and collect the users in our forest that access an internal website so that we can secure the website to only let users that are allowed to login and use the website. The website is now open to anyone. It is located on a server 2008 r2 OS. The users are all from AD.
0
Comment
Question by:hlaten
3 Comments
 
LVL 42

Expert Comment

by:kevinhsieh
ID: 39977318
Does your web site currently require authentication? If not your web server logs are only going to have IP addresses, and it could be a pain to figure out who is logged onto which system when to correlate IP addresses to users.

You can just turn off anonymous authentication on the web site. That would allow you to collect usernames in the IIS log flies.
0
 
LVL 21

Accepted Solution

by:
dan_blagut earned 500 total points
ID: 39977426
hello

first you should disable anonymous authentication, then enable (or install and enable) windows authentication
http://www.iis.net/configreference/system.webserver/security/authentication/windowsauthentication

that will not change many things for your internals users, but will deny access to all non-domain workstations.

Then the log will show the username also. (some IIS restarts are needed)
Dan
0
 

Author Closing Comment

by:hlaten
ID: 39994255
Answer led me in right direction and was excellent advice.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Set OWA language and time zone in Exchange for individuals, all users or per database.
A brief introduction to what I consider to be the best editor for PowerShell.
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question