What I want to do is get a list of all the servers on our domain.
So we have an Admin box that is running Windows 2k3. I've been told I can't get the activedirectory module for powershell to go on that machine. Is that right? If not, where do I get it?
Assuming that's right, can I somehow run the import-module command on my domain controller and have it return a list of all the computers that I can then use in a loop to check drive space and things like that?
I know I can do something like
invoke-command -computername DC -scriptblock{ import-module activedirectory get-adcomputer -filter * | select name }
But then how can I get it to return the list back to the computer I'm running it from?
Thanks!