Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
9105bed
Update description.md
JakubPiegza Jan 29, 2020
0f71c38
Update ContentTypeManagementSubsitesIncluded.ps1
JakubPiegza Jan 29, 2020
b3bc53f
Update GetCTNamesinAllLists.ps1
JakubPiegza Jan 30, 2020
48c51aa
Update GetCTNamesinAllLists.ps1
PowershellScripts Feb 11, 2020
d742b2b
Merge pull request #1 from PowershellScripts/develop
JakubPiegza Feb 26, 2020
9f37fd0
Update description.md
JakubPiegza Feb 27, 2020
a378981
Update ListAttachments.ps1
JakubPiegza Feb 27, 2020
1e7b953
Merge pull request #7 from JakubPiegza/patch-9
JakubPiegza Feb 27, 2020
be7ca5c
Merge pull request #6 from JakubPiegza/patch-7
JakubPiegza Feb 27, 2020
e31f9df
Merge pull request #5 from JakubPiegza/patch-6
JakubPiegza Feb 27, 2020
707a505
Merge pull request #4 from JakubPiegza/patch-5
JakubPiegza Feb 27, 2020
f1ba603
Merge pull request #3 from JakubPiegza/patch-53
JakubPiegza Feb 27, 2020
380e2e8
Merge pull request #2 from JakubPiegza/patch-4
JakubPiegza Feb 27, 2020
68dcb40
Update description.md
JakubPiegza Mar 1, 2020
6a56a88
Update BccExternalSharingInvitations.ps1
JakubPiegza Mar 1, 2020
d1f6863
Update description.md
JakubPiegza Mar 1, 2020
d0ce9a4
Update SharingAllowedDomainList.ps1
JakubPiegza Mar 1, 2020
b5d9ea6
Update description.md
JakubPiegza Mar 1, 2020
bf6aea4
Update description.md
JakubPiegza Mar 1, 2020
58edb6a
Update RequireAcceptingAccountMatchInvitedAccount.ps1
JakubPiegza Mar 1, 2020
f778652
Update README.md
JakubPiegza Mar 1, 2020
458afea
Update tenantProps.ps1
JakubPiegza Mar 1, 2020
fd85618
Update description.md
JakubPiegza Mar 1, 2020
a9a19b9
Update HideSyncButtonOnODB.ps1
JakubPiegza Mar 1, 2020
352cf48
Update description.md
JakubPiegza Mar 1, 2020
732228c
Update SharingCapability.ps1
JakubPiegza Mar 1, 2020
dc7a58e
Update description.md
JakubPiegza Mar 1, 2020
8fa7ffc
Update OwnerAnonymousNotification.ps1
JakubPiegza Mar 1, 2020
4cca8fa
Update description.md
JakubPiegza Mar 1, 2020
fda0cd0
Update NotifyOwnersWhenItemsReshared.ps1
JakubPiegza Mar 1, 2020
e2242a5
Update description.md
JakubPiegza Mar 1, 2020
51d0066
Update PreventExternalUsersFromResharing.ps1
JakubPiegza Mar 1, 2020
05e03cb
Update description.md
JakubPiegza Mar 1, 2020
c3733ce
Update SetAnonymousAccess.ps1
JakubPiegza Mar 1, 2020
4bfd513
Update description.md
JakubPiegza Mar 1, 2020
299e4f1
Update AnonymousLinkType.ps1
JakubPiegza Mar 1, 2020
0a62794
Update description.md
JakubPiegza Mar 1, 2020
06e4d6f
Update description.md
JakubPiegza Mar 1, 2020
cd3e518
Update SharingLinkType.ps1
JakubPiegza Mar 1, 2020
2b2266b
Update description.md
JakubPiegza Mar 1, 2020
6dfaf4c
Update SetExpirationForAnonymousLinks (1).ps1
JakubPiegza Mar 1, 2020
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update description.md
  • Loading branch information
JakubPiegza authored Mar 1, 2020
commit dc7a58ec49544070db3cbb4d0ff442685a9c240d
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
Short Powershell script that enables or disables a setting to send emails to OneDrive for Business owners when someone creates an anonymous link to the ODB owner's content.

It uses CSOm and requires SharePoint Online SDK. The script is part of and more explained in a Technet Wiki article:
OneDrive for Business notification settings with Powershell
[OneDrive for Business notification settings with Powershell](https://social.technet.microsoft.com/wiki/contents/articles/39385.onedrive-for-business-notifications-with-powershell.aspx)


###How to use?
Download and open the .ps1 file.
Add correct libraries:

## How to use?

- Download and open the .ps1 file.
- Add correct libraries:

```PowerShell
#Paths to SDK
Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.dll"
Add-Type -Path "C:\Program Files\SharePoint Client Components\16.0\Assemblies\Microsoft.Online.SharePoint.Client.Tenant.dll"
```

- Enter the correct url and admin login:

Enter the correct url and admin login:
```PowerShell
#Enter the data
$AdminPassword=Read-Host -Prompt "Enter password" -AsSecureString
Expand All @@ -25,5 +25,4 @@ $Url="https://TENANT-admin.sharepoint.com"
$OwnerAnonymousNotification=$true #Whether ODB owner should be notified when anonymous link is created or changed
```


Run the script
- Run the script