I am trying to automatically install and activate a solution to our Project Server 2019.
I have already installed the solution with
Install-PnPSolution, but I cannot activate the feature.
When I activate the feature by hand, I can use
Disable-PnPFeature to deactivate the feature again. When I do the same with
Enable-PnPFeature, the feature does not get activated.
I suspect that it has got something to do with the ID of the solution. When I activate the feature by hand, I can have it listed with
Get-PnPFeature. In this case the GUID of the feature is not the same as during installation.
Unfortunately, I have not found a way to get a list of installed but deactivated features.
How can I get a list of the installed but deactivated features?
What else could cause the feature not being activated?
Here the code:
Connect-PnPOnline -Url $siteUrl -Credentials $cred Install-PnPSolution -SourceFilePath $solutionPath -PackageId $solutionId Invoke-PnPQuery Enable-PnPFeature -Identity $solutionId