Skip to content

Commit

Permalink
Merge pull request #712 from reshmee011/HideTeamPrompt
Browse files Browse the repository at this point in the history
Alternative cmdlet hide team prompt
  • Loading branch information
pkbullock authored Jul 27, 2024
2 parents 3bc0e17 + d7b54e6 commit a8f60fb
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
13 changes: 13 additions & 0 deletions scripts/spo-remove-teamify-link/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,20 @@ Remove the Teamify link on Group sites
#Disable custom script on site or leave it enabled, it will automatically be disabled after 24 hours
Set-PnPSite -Identity $url -NoScriptSite $true -Connection $conn
#alternatively use Set-PnPTeamifyPromptHidden
Set-PnPTeamifyPromptHidden -Connection $conn
```
[!INCLUDE [More about PnP PowerShell](../../docfx/includes/MORE-PNPPS.md)]

# [PnP PowerShell without enabling custom scripting](#tab/pnpps2)

```powershell
#connect to the site using one of the many options available
$conn = Connect-PnPOnline -Url $url -interactive -ReturnConnection -ErrorAction Stop
Set-PnPTeamifyPromptHidden -Connection $conn
```
[!INCLUDE [More about PnP PowerShell](../../docfx/includes/MORE-PNPPS.md)]

***


Expand All @@ -35,6 +47,7 @@ Remove the Teamify link on Group sites
| Author(s) |
|-----------|
| Kasper Larsen |
| Reshmee Auckloo |

[!INCLUDE [DISCLAIMER](../../docfx/includes/DISCLAIMER.md)]
<img src="https://m365-visitor-stats.azurewebsites.net/script-samples/scripts/spo-remove-teamify-link" aria-hidden="true" />
10 changes: 8 additions & 2 deletions scripts/spo-remove-teamify-link/assets/sample.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
""
],
"creationDateTime": "2024-07-16",
"updateDateTime": "2024-07-16",
"updateDateTime": "2024-07-22",
"products": [
"SharePoint",
"Teams"
Expand All @@ -25,7 +25,7 @@
"Configure"
],
"tags": [
"Set-PnPSite","Set-PnPPropertyBagValue"
"Set-PnPSite","Set-PnPPropertyBagValue", "Set-PnPTeamifyPromptHidden"
],
"thumbnails": [
{
Expand All @@ -36,6 +36,12 @@
}
],
"authors": [
{
"gitHubAccount": "reshmee011",
"company": "",
"pictureUrl": "https://avatars.githubusercontent.com/u/7693852?v=4",
"name": "Reshmee Auckloo"
},
{
"gitHubAccount": "kasperbolarsen",
"company": "",
Expand Down

0 comments on commit a8f60fb

Please sign in to comment.