Getting PowerShell to run on a Mac is quite easy these days. Still you might run into issues when trying to use PowerShell not only in the default Terminal app but instead in a tool such as Visual Studio Code. This article shows how to fix an issue that causes Visual Studio Code showing error Unable to find PowerShell.
Weiterlesen „How to fix PowerShell not being found in Visual Studio on Mac“Kategorie: Powershell
PNP PowerShell: Copy local term group from one Site Collection to another
The following function copies the local termgroups of one site collection to another site collection using the PNP PowerShell provisioning cmdlets.
The template is applied in memory using the Get-PnPProvisioningTemplate -OutputInstance parameter and the Apply-PnPProvisioningTemplate -InputInstance commands.
Weiterlesen „PNP PowerShell: Copy local term group from one Site Collection to another“
SharePoint: Disable Audit Logs on all Site Collections of a WebApplication
The following code snippet shows how to disable audit logs in PowerShell for all Site Collections of a WebApplication.
Weiterlesen „SharePoint: Disable Audit Logs on all Site Collections of a WebApplication“
SharePoint: Timerservice not starting jobs
On one of my servers the timer service stopped working. It could’nt start jobs anymore. Therefore it was not possible to do any deployments. This can have many reasons. In my case it started after installing the SP 2016 November CU.
Weiterlesen „SharePoint: Timerservice not starting jobs“
SharePoint: PeoplePicker caching and filtering
In default mode the SharePoint PeoplePicker shows all users from the trusted domains. In some cases it is necessary to filter the users (e.g. only showing users from one domain in a specific web application).
Weiterlesen „SharePoint: PeoplePicker caching and filtering“
Azure: Start and Shutdown a virtual machine using PowerShell
Microsoft Azures has a lot of useful features for programmers. At the moment I often create virtual machines in the cloud to test different solutions. Most of the Azure VM commands can be executed using powershell.
Weiterlesen „Azure: Start and Shutdown a virtual machine using PowerShell“
Powershell: Get all properties and property values of an object
Today I tried to change some service application properties. One parameter which was mentioned in a msdn article did not exist. Therefore I tried to find out the real name of the parameter. In Powershell you can use a nice oneliner to give you all properties of an object and the current values of this properties.
Weiterlesen „Powershell: Get all properties and property values of an object“