Forum Discussion
tjhdev2024
Jun 26, 2024Copper Contributor
Prepare-PlacesEnablement script fails with "Cannot overwrite variable false because it is read-only"
From the instructions on https://learn.microsoft.com/en-us/deployoffice/places/deployment-guide-for-places PS C:\Users\Administrator> Install-Script -Name Prepare-PlacesEnablement -RequiredVersion...
- Jul 03, 2024Hey all, we have posted updated scripts that should resolve this issue. Please check the latest instructions and commands here: https://learn.microsoft.com/en-us/deployoffice/places/deployment-guide-for-places
VishalK95
Jul 23, 2024Copper Contributor
tjhdev2024 I am getting the same issue when attempting to use the enable script. I Have used both version 4 and 5 and error still appears.
How long did you wait for the retry for it to work for you.
timhoffmann
Jul 23, 2024Brass Contributor
I deleted the existing script and installed whatever it thought was the latest that day.
```
PS C:\Users\Administrator\Documents\PowerShell\Scripts> dir
Directory: C:\Users\Administrator\Documents\PowerShell\Scripts
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 6/25/2024 4:40 PM InstalledScriptInfos
-a--- 6/29/2024 12:49 AM 6148 Prepare-PlacesEnablement.ps1
-a--- 6/11/2024 8:48 PM 3558 PreparePlacesGroups.ps1
-a--- 6/11/2024 11:14 PM 1010 PreparePlacesPowershell7.ps1
PS C:\Users\Administrator\Documents\PowerShell\Scripts>
```
```
PS C:\Users\Administrator\Documents\PowerShell\Scripts> dir
Directory: C:\Users\Administrator\Documents\PowerShell\Scripts
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 6/25/2024 4:40 PM InstalledScriptInfos
-a--- 6/29/2024 12:49 AM 6148 Prepare-PlacesEnablement.ps1
-a--- 6/11/2024 8:48 PM 3558 PreparePlacesGroups.ps1
-a--- 6/11/2024 11:14 PM 1010 PreparePlacesPowershell7.ps1
PS C:\Users\Administrator\Documents\PowerShell\Scripts>
```
- VishalK95Jul 23, 2024Copper ContributorBasically realised they released a series of new scripts and started all from scratch and even removed the old groups created. Downloaded a fresh set of scripts and removed all Modules from Powershell V7 that were downloaded as part of the process.
Now on the enablement side and get the error:
WriteError: C:\Program Files\WindowsPowerShell\Scripts\Prepare-PlacesEnablement.ps1:52
Line |
52 | [bool]$PlacesMobileApp = $false,
| ~~~~~~~
| Cannot overwrite variable false because it is read-only or constant.
So I got the new scripts and still an issue any help be greatly appreciated thanks- BrettGiammonaJul 23, 2024
Microsoft
How long did you wait before attempting to enable platforms after setting up the new security groups and enabling Places?- VishalK95Jul 23, 2024Copper Contributor
BrettGiammona well i been trying all day, they were removed this morning and the newly created ones shortly after that. Then been trying the enablement all day at various times but still get the above error