Solved

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

Posted on 2014-04-03
3
249 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 22

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

The following article is intended as a guide to using PowerShell as a more versatile and reliable form of application detection in SCCM.
Windows 10 came with  a lot of built in applications, Some organisations leave them there, some will control them using GPO's. This Article is useful for those who do not want to have any applications in their image (example:me).
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

738 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