Skip to content

Commit 0aa33a1

Browse files
Create README.md
1 parent 1a90001 commit 0aa33a1

File tree

1 file changed

+49
-0
lines changed
  • Items Management/Attachments/Disable or enable attachments to list items

1 file changed

+49
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
Want to keep your lists tidy? Saving space?? This is a solution for you! Looking for a quick way to restore the option for all lists?
2+
</br>**This is also a solution for you! :)**
3+
4+
5+
Want to keep your lists tidy? Saving space? Do you want to prevent users from adding unnecessary attachments to the list because their place belongs elsewhere?
6+
This is a solution for you!
7+
Or maybe you already disabled the feature? For some of the lists - for some not, and now you are looking for a quick way to restore the option for all lists?
8+
9+
This is also a solution for you! :)
10+
11+
12+
13+
14+
15+
16+
</br>**This is also a solution for you! :)**
17+
18+
19+
```Powershell
20+
# Paths to SDK. Please verify location on your computer.
21+
Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.dll"
22+
Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.Runtime.dll"
23+
24+
# Insert the credentials and the name of the site and the desired setting: $true or $false
25+
$Username="trial@trialtrial123.onmicrosoft.com"
26+
$AdminPassword="Pass"
27+
$Url="https://trialtrial123.sharepoint.com/sites/teamsitewithlists"
28+
$Attachments=$false
29+
30+
31+
32+
33+
Set-SPOListsAttachments -Username $Username -AdminPassword $AdminPassword -Url $Url -Attachments $Attachments
34+
```
35+
36+
37+
For full description please refer here to the [Wiki Article](https://social.technet.microsoft.com/wiki/contents/articles/30024.sharepoint-online-disable-or-enable-attachments-to-list-items-using-powershell.aspx)
38+
39+
40+
41+
<br/><br/>
42+
<b>Enjoy and please share feedback!</b>
43+
44+
**Related scripts** </br>
45+
[Set direction of the reading order for a single list](https://gallery.technet.microsoft.com/office/Set-the-direction-of-the-f17ca66a)
46+
47+
[Set-SPOList properties (module)](https://gallery.technet.microsoft.com/office/Set-SPOList-properties-9d16f2ba)
48+
49+
[Allow or disallow your users to create folders in SPO lists](https://gallery.technet.microsoft.com/scriptcenter/Allow-or-disallow-your-20f7b44a)

0 commit comments

Comments
 (0)