Archive for Systems Administration

PowerShell Commandlet – Compress-Archive to create zip files

folder-compressed-300x225

As I am constantly dealing with log file management on my servers, I have always relied on batch files to use PowerShell commandlets to move log files. And then I had to run other processes to manage the log files in a destination area.

 

 

I found this handy PowerShell commandlet called Compress-Archive.  You will need PowerShell version 5.0.

The link to the official documentation.

Anyway, this little routine has saved me some steps and with my log file management issues.

I simply zip files with and have the destination path in the same line.

I used example #3.  (This is not my exact script that I wrote, just showing the example.)

Compress-Archive -Path C:\Reference\* -Update -DestinationPath C:\Archives\Draft.Zip

 

I hope this tid-bit helps all of my fellow techies out there.

~Tony Maddin~

 

powershell-logo

To leverage Windows Server 2012 R2 Deduplication feature prior to uploading documents into SharePoint

Win2k12LogoTo have SharePoint take place of a file share is a logical choice.  One of the many pillars of SharePoint is enterprise content management.

 

SharePoint robust features can be offset of bring the mess from a file share/shared drive and just simply bringing a new environment without cleansing the documents first.

Windows Server 2012 R2 has a great feature to help tackle the information explosion prior to migrating all your documents into SharePoint called Data Deduplication.

Data deduplication will allow your organization to help cut down on the number of “like” versions that can be scattered across numerous folders.

As a result, you get down the “single versions” of the truth with your primary documents.  Then you can take full advantage of search, records management, etc. within SharePoint to help your organization save money with regard to storage and time to search for vital information.

Here is the article on how you can use data deduplication in Windows 2012 R2.

http://redmondmag.com/articles/2014/03/13/data-deduplication-in-windows-server.aspx

 

Setting up a SMTP service in Microsoft Azure

sendgrid_logo

 

I am part of a project team that is building a custom Windows 8 application that is leveraging Microsoft Azure.

 

 

My project role is multi-tenant infrastructure architect.  This role curtails:

  • Infrastructure as a service design.  To maximize performance while balancing cost in Microsoft Azure.
  • To perform a detail security analysis on all points of data in motion and data at rest.

One of my task items on the project is to come up with a SMTP solution.  My first thought as a system administrator is to leverage a virtual server and enable SMTP as a service.

However, my thinking is changing with the times.  J  Now there are apps for system administrators.

So I looked in the Azure store and found SendGrid.  After doing some internet searches; there have been positive comments about this SMTP application.

SendMail1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

I have activated this application in my Azure subscription. Below are my steps.

Open up the Azure Dashboard, click New, select Store and then choose SendGrid from the App Services Add-ons list.

SendMail2

 

 

 

 

 

SendMail3

 

 

 

 

 

 

 

 

We will not be sending over 25,000 emails a month so the free subscription will fit our current business needs.

SendMail4

 

 

 

 

 

 

The subscription will be tied in with your monthly billing.

I welcome any feedback.

~ Tony Maddin ~