I have just been given 30 new 2012R2 servers for a new project.
My first thing to do is to check all machines are all built the same
I have not written any powershell before! and was thinking a script i can point at the server and generate a txt file with the results would help me confirm all servers are the same!I know this is a big ask as there are lots of checks i want to do, perhaps someone can at least start me off?
FQDN of machineDrive space / letterslocal admin groupscomputer group membership in ADobject location in ADmachine specpagefile size/locationwindows update statusWidnows activation statuscheck any services have failed to startip address/Subnet/DGDNS and search suffixlocal firewall statuslist windows roles and features installed
You will need PowerShell remoteing enabled for this kind of effort. There several pre-built scripts on the Microsoft PowerShell Gallery you can leverage as well. No reason to do this from scratch.
'www.powershellgallery.com' Just search for what you need: 'www.powershellgallery.com/items?q=inventory&x=0&y=0'
You can even do that kind of search directly on this site as we have had many questions like this which we have responded to.
So, literally, just type your points or variations of them in the search and you will see several hits to start you adventure.
I have written something like this for my customers, but way to large to post here. So, my suggestion above would be your most prudent approach.
You can do a search on each point one at a time, then merge it as one script.