Solved

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

Posted on 2014-04-03
3
244 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
Comment Utility
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
Comment Utility
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
Comment Utility
Answer led me in right direction and was excellent advice.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

763 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

Need Help in Real-Time?

Connect with top rated Experts

5 Experts available now in Live!

Get 1:1 Help Now