Skip to content

Commit f833304

Browse files
authored
Corrected code language
In the section "### To set the Bing Maps key at the web level with SharePoint PnP PowerShell", the code lines were marked as `csharp`, when they are actually `powershell`. Additionally, in Step 4, the cmdlet shown was not the PnP.PowerShell cmdlet (as indicated in the header), so I've updated it.
1 parent 557ec0f commit f833304

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/general-development/how-to-set-the-bing-maps-key-at-the-web-and-farm-level-in-sharepoint.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,20 +57,20 @@ The Bing Maps key can be set at the farm or web level. To set the Bing Maps key
5757
1. Open the SharePoint Online Management Shell
5858
2. Connect to the site you want to add/update the Bing Maps key
5959

60-
```csharp
60+
```powershell
6161
Connect-PnPOnline -url "https://TENANT.sharepoint.com/sites/SITEURL"
6262
```
6363

6464
3. Add the Bing Maps Key to the Site Property Bag (Update "YOURKEYVALUE")
6565

66-
```csharp
66+
```powershell
6767
Set-PnPPropertyBagValue -Key "BING_MAPS_KEY" -Value "YOURKEYVALUE"
6868
```
6969

7070
4. If you receive an error regarding NoScript being enabled, you must disable it in the site. Then rerun step 3.
7171

72-
```csharp
73-
Set-SPOsite <SiteURL> -DenyAddAndCustomizePages 0
72+
```powershell
73+
Set-PnPSite -NoScriptSite $false
7474
```
7575

7676
> [!NOTE]

0 commit comments

Comments
 (0)