Automation/CM with Package Managers: Chocolatey and Homebrew

Every mobile device has a store app that installs, removes and updates software according to the user demand. Windows and MacOS have their store too for almost a decade. The idea of using a package manager is derived from Linux OS, dpkg almost 25 years ago, but the first one that I’ve used was apt in back in 2000. Apt was not just a installing the package request from the repository but more importantly took care of the dependencies, in short made my life extremely easier in when Open Source was spreading and becoming popular.

Continue reading “Automation/CM with Package Managers: Chocolatey and Homebrew”

TOP50 PowerShell blog of 2018

This is a brief message to thank you all for the positive feedback received.

I will do my best to write better content and choose interesting topics.

As always I’m open to suggestions and to contributions so, please, don’t hesitate to contact me. If you want to receive more updates join the newsletter or follow me on twitter.

Last but not least:

It’s my pleasure to announce that scripting library is now listed on the Top 50 PowerShell Blogs And Websites For Developers To Follow in 2018

 

Compress a Folder With a little bit of help from .NET Framework

Few weeks ago I needed to free some space form a disk on a Windows Server 20012 R2, so I wanted to compress a large number folders, each one of them contained few hundred MB of log files.  It required to preserve the folder name and deleting or moving the files or directory from that volume/partition was not an option.

It’s an easy task with PowerShell“, I thought, “I can re-use one of my functions or scripts“.

In fact, few months ago I’ve published an article on how to compress a folder, but to re-use that specific code on that environment I needed to install 7zip (which in this specific case I tried to avoid), because the cmd-let Compress-Archive was released with version 5 and the server is using PowerShell 4.  So I needed to revisit my script that wasn’t ready to go and solve my problem without a little tweak. Continue reading “Compress a Folder With a little bit of help from .NET Framework”