Could not load type 'Microsoft.SharePoint.Administration.DesignPackageType'

Submitted by Vladilen on Sun, 11/03/2019 - 20:10

Recently I tried to update module "Microsoft.Online.SharePoint.PowerShell". It was updated OK, but:

Get-Module Microsoft.Online.SharePoint.PowerShell -ListAvailable | ft -a

gave me two modules So I tried to uninstall module with older version "16.0.8525.1200" and import module with newer version. It failed with error: "The version '###' of module '16.0.8525.1200' is currently in use. Retry the operation after closing the applications.

SharePoint powershell automation, DSC and DevOps

Submitted by Vladilen on Wed, 05/08/2019 - 01:07

Automation is not the same as DSC and DevOps.

Automation is about changing existing process - to enable it start and work automatically, without human attendance, i.e. faster and more stable. The good example is site collection provisioning. 

DevOps is an idea to manage infrastructure configuration via code with well-known and proved developers practices - ADLC, version control etc. 

Parse IIS logs for SharePoint with powershell

Submitted by Vladilen on Wed, 03/01/2017 - 01:50

I found pretty useless IIS Log Parser (with Studio) for SharePoint. 
The reasons are - blank spaces and "%20" symbols in Url in SharePoint IIS logs which confuses IIS Log Parser and  prevents you from search through logs using IIS Log Parser 

i.e., if your SharePoint users want to investigate their file "/sites/Very%20Important%20site/much%20more%20important%20unique%20file.docx" - you will stuck.

finally, I found plain Powershell commands the most useful to parse IIS logs, like this: