I am new to Powershell and really scripting altogether. By reading around and watching Jeff Snover and Jason Helmick’s powershell tutorial video, I was able to get servers to sift through eventlogs and email me errors from the previous day…that was really freaking cool.
Now I want to compress and copy txt files across domains to my webserver and then uncompress them.
I have different clients so their servers…some are 2003, some are 2008, some are 2008R2, some are 2012 and 2012r2.
My question is about approach. Would it work and be better to get these extensions that allow zipping in powershell… http://pscx.codeplex.com/releases/view/98267 and then create a script that logs in via enter-pssession (which is a PIA as I would need to establish ssl certificates with each server correct?)? Or do I need to install the powershell extensions on all of these servers in order for them to be able to zip stuff? Will these extensions even work on powershell v1 and v2? The release notes say that the version 1.2 works for earlier versions of powershell, but when I installed the MSI, when I tried to inquire get-help about cmdlets, I got alot of red text.
I also dont quite get how “extensions” are different from “modules” should I copy them into a modules folder?
Maybe it would be easier to powershell script on v3 and higher servers and try to script a 7zip tool for some of these ancient servers.