Posts

Showing posts from February, 2018

How to Create State Service Application for SharePoint 2013

Image
This is a very simple code snippet which we need most of the time. I thought it will be handy to publish this PowerShell command for any one who might look for a way to create State Service Application on SharePoint 2013 New-SPStateServiceDatabase - Name Farm_StateService_ContentDB | New-SPStateServiceApplication - Name "State Service Application" | New-SPStateServiceApplicationProxy - Name "Farm State Service Application Proxy" - DefaultProxyGroup Cheers

.ps1 cannot be loaded because running scripts is disabled on this system

Image
Many of us has face this error When we are trying to execute PowerShell Script on our Windows PC/Server. Solution is to enable the PowerShell Scripts on the PC. How to do that ? First we need to see what is the current script execution policy, by using Get-Execution Policy Command Get-ExecutionPolicy -List Now we know what is the current policy of our PC. Now it's time to enable the Policy for us to execute the Scripts. Set-ExecutionPolicy -Scope LocalMachine Unrestricted Now We can check our current policy Status with previous Get-Execution Policy Command Get-ExecutionPolicy -List

How to Publish Nintex Forms through PowerShell

Image
Publishing Nintex form through PowerShell, was a challenge for me during last few weeks. After consulting Nintex team they have provided many valuable information related to the same topic. I will go through each and every information which I have gathered. Finally I was able to publish the Nintex Form through PowerShell Initially Nintex team has provided details to the in built web service for publishing a workflow. Nintex Web Service Reference Above link explains all available methods within the service  ·          Endpoint URL ·          DeleteForm ·          GetFormXml ·          PublishFormXml The moment I tried to access the web service via browser, I got an error saying " End Point Not Found ". But later I found a valuable post on Nintex community by  mattbriggs  who has overcome same issue through Visual Studio Solution in his blog post Named as “ Publish a Form Using the Nintex Forms On Prem 2013 Web Service “. Unfortunately