Forum Discussion
Prepare-PlacesEnablement script fails with "Please run the PreparePlacesPowershell7 script first"
AdamK_DC ,
Here are the steps to resolve this issue:
Install the Required Module: First, ensure that you have the PreparePlacesPowershell7 module installed. You can do this by running the following command in PowerShell 7:Install-Script -Name PreparePlacesPowershell7
If prompted about an untrusted repository, you can confirm the installation from the ‘PSGallery’ repository. You can also manually download the module from the https://www.powershellgallery.com/packages/PreparePlacesPowershell7/4.0
Run the PreparePlacesPowershell7 Script: Open a new PowerShell 7 window (separate from the one where you ran PreparePlacesGroups.ps1). Then execute the following command:
Prepare-PlacesPowershell7
This script sets up the necessary environment for Places cmdlets.
Run the Prepare-PlacesEnablement.ps1 Script: After successfully running the PreparePlacesPowershell7 script, you can now execute the Prepare-PlacesEnablement.ps1 script with the desired parameters. For example:
Prepare-PlacesEnablement.ps1 -PlacesWebApp $true -PlacesAdvancedFeatures $true -PlacesAnalytics $true -PlacesMobileApp $true -PlacesFinder $true
Make sure to adjust the parameters according to your requirements.
By following these steps, you should be able to resolve the issue and enable the necessary features for Places. If you encounter any further issues, feel free to ask for additional assistance! 😊