Forum Discussion
Prepare-PlacesEnablement script fails with "Cannot overwrite variable false because it is read-only"
- 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
Please do the following:
-
Check Variable Names: Ensure that the variable you are trying to modify is correctly named and not a reserved keyword or system variable.
-
Scope of Variables: Verify the scope of the variable. If it is defined outside the current script, make sure it is accessible within the script.
-
Variable Assignment: Double-check the line where the variable is assigned. Ensure that there are no typos or syntax errors.
-
Script Dependencies: Review any dependencies or prerequisites for the Prepare-PlacesEnablement script. Make sure all required modules or functions are available.
-
Repository Trust: If you are installing scripts from an untrusted repository, consider changing the InstallationPolicy value using the Set-PSRepository cmdlet.
- timhoffmannJul 01, 2024Brass ContributorThis is a Microsoft supplied script, there is nothing for me to check.
- jv83642Jul 01, 2024Copper ContributorI tried the same script later on with no modifications and it worked. Not sure what changed?