I’m pretty new to PowerShell. I have about 200 hyper-v servers running 2008, 2008R2 and 2012 server. I need a list of scheduled tasks for each server, but I’m only interested in the non-microsoft tasks. I believe I have figured out how to do that by using -taskpath “\”, however, my script is only working against the 2012 servers in my domain. The errors on the other servers seem to indicate that I need to run “WinRM quickconfig” in order to be able to remotely manage the machines. Also, after running “WinRM quickconfig” on a few to test my theory, I was able to connect to them with my PowerShell script, but they don’t recognize the Get-ScheduledTask cmdlet. If I’m understanding this all correctly, I could install the PowerShellPack.msi onto each of the 2008/2008R2 servers, run “WinRM quickconfig” on each server, then my script would work for all of those the same way it’s working for the 2012 servers. This seems like an incredible amount of work to run a script that’s supposed to save me from having to log into each of these machines in the first place. I guess what I’m asking is this: Is there a better way to do this than what I’ve described? Is there some easier way to go about this in my situation?
Thanks!
↧
Newb question about Get-scheduledtask
↧