- Open up command prompt
- Type:Â
%windir%\system32\inetsrv\appcmd list site > c:\sites.csv - Open the Sites.csv file in Excel!
Related Post
Get all the domains controllers in the AD forest along with their current FSMO roles
Posted on by mo wasay
In a large enterprise an admin would need to keep track of all the domains in a AD forest, the domain names, the domain controllers (DC) , their IPs, and what FSMO roles does a DC hold. Wrote a little script to just do that...
Force synchronization for DFSR-replicated SYSVOL
Posted on by mo wasay
One of my clients had a problem with processing GPO on client computers. Different computers applied different settings from the same GPO but from different domain controllers. All tests related to replication was successful, all GPOs are applied, but replication between domain controllers was a problem, and because of that...
Get Inactive Users Report for the past 60 days in a multi domain environment
Posted on by mo wasay
I had a request recently to provide an inactive user report for the past 60 days. Basically, find out which accounts have not logged in for the past 60 days so action can be taken against them. The request was for a multi domain forest which queries every domain controller...
Get Primary, Secondary, Tertiary DNS values and more from Multiple Servers
Posted on by mo wasay
Came across a unique request to get primary, secondary, and tertiary DNS values for multiple computers/servers across the domain. I started writing the script and got what I wanted. Now this started off as just to query for DNS Server information, but then I thought to add other pieces to...