Skip to content

Commit c648031

Browse files
Merge pull request SharePoint#8669 from sympmarc/patch-5
Corrected code language & updated script
2 parents 557ec0f + 7e82ead commit c648031

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Set the Bing Maps key at the web and farm level in SharePoint
33
description: Learn how to set the Bing Maps key programmatically at the web (SharePoint Server and SharePoint Online) and farm (SharePoint Server) level by using the SharePoint client object model and Windows PowerShell, to enable the Bing Maps functionality in SharePoint lists and ___location-based web and mobile apps.
4-
ms.date: 06/13/2022
4+
ms.date: 01/06/2023
55
ms.prod: sharepoint
66
ms.assetid: 507ed9de-c349-44b5-b182-e838795dd862
77
ms.localizationpriority: medium
@@ -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)