DNS AND AD POWERSHELL SCRIPT
I have been facing crazy DNS conflicts off late in my environment which causes a lot of headache for the users and myself as an Admin. i am trying to find a way to pull every computer in AD. a script that will be able to give me associated IP address and DNS hostname. i would also like to find many more thing like when was the computer created, when was the last logon on the computer, how many bad logins were attempted, what is the Operating System on the computer. any help would be greatly appreciated.
Answer Chosen by the Author
I took that script and massaged it into an HTA, as good chunks of what I wanted the script to do were missing. The HTA can be downloaded here. Please note, however, that I offer no warranty or support, although I'll do my best to answer intelligent questions about it.
Much of what the HTA does can be added to fairly simply. For things like LastLogon time, though, there is a challenge in reformatting the way the date/time is stored into a more standard format but there is code around to do that. It's just a question of massaging it in.