Yes you can!
Having the option to fully automate your work is the goal for most PowerShell enthusiasts. One step closer – one step closer 🙂

Read the rest of this entry »

Advertisements

When working on a specific farm, you may find that you have multiple farms per environment, for example:

Production, Stage, Test and Development farms.

It could be nice to be able to compare WSP packages and features across farms.

I’ve written a script (MapCheckFeature&WSP_Global.ps1) that has two options of MAP and COMPARE a farms’ (the ideal farm, FarmA) enabled features and its WSP solution status.

Read the rest of this entry »

Earlier I would go on a server treasure hunt every time a Correlation Id hit me. This is what happens when working on a SharePoint farm that uses NLB. You never know where your SharePoint session is, and when an error occurs, the error is saved in the sharepoint log on that WFE server.Like most things in our daily lives, you can find the solution using Powershell!

Read the rest of this entry »

When scripting different solutions, i prefere to have Powershell do most of the heavy lifting:-)

Adding a CER certificate to Trusted Root Certificate store.
Code:

CERTUTIL -addstore -enterprise -f -v root C:\MyCert.cer

Adding a PFX certificate to Personal Certificate store.
Code:

certutil –f –p "Password" –importpfx C:\myCert.pfx

When running a test environment and needing a certificate, one will not always have a CA (Certificate Authority lying around).  In Windows Server 2012 and Windows 8, there is a PowerShell command to create a multiple Subject named certificate:

Read the rest of this entry »

Clear the SharePoint Configuration Cache on a SharePoint server or all SharePoint Servers . PowerShell to the rescue!

Read the rest of this entry »

Sometimes when you make big changes in SharePoint, you would like to do an IISRESET on all the SharePoint Servers, an easy way to do that is by using a PowerShell script.

Read the rest of this entry »

Hello world PowerShell

Posted: June 24, 2014 in PowerShell scripts

Open PowerShell and type in:
write-host -f cyan “Hello World”

Sh

🙂

 

This is a test post!