Skip to content

Commit 3746a95

Browse files
Update README.md
1 parent 6341410 commit 3746a95

File tree

1 file changed

+57
-1
lines changed
  • OneDrive for Business/Update locale id for all personal sites

1 file changed

+57
-1
lines changed
Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,57 @@
1-
.
1+
## Acknowledegement
2+
The script uses [Vadim Gremyachev's](https://sharepoint.stackexchange.com/users/10610/vadim-gremyachev) Invoke-LoadMethod published [here](https://sharepoint.stackexchange.com/questions/126221/spo-retrieve-hasuniqueroleassignements-property-using-powershell)
3+
4+
5+
6+
7+
8+
## Description
9+
The script updates locale id in regional settings of all personal sites to which you have access. The locale id can later be verified by going to Site Settings>Regional Settings.
10+
11+
12+
13+
The script requires the following libraries:
14+
15+
16+
17+
```PowerShell
18+
# Paths to SDK. Please verify location on your computer.
19+
Add-Type -Path "c:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.SharePoint.Client\v4.0_16.0.0.0__71e9bce111e9429c\Microsoft.SharePoint.Client.dll"
20+
Add-Type -Path "c:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.SharePoint.Client.Runtime\v4.0_16.0.0.0__71e9bce111e9429c\Microsoft.SharePoint.Client.Runtime.dll"
21+
```
22+
23+
24+
25+
26+
27+
28+
Enter the correct data and specify the locale id you'd like to set:
29+
30+
31+
32+
```PowerShell
33+
# Insert the credentials and the name of the admin site
34+
$Username="admin@tenant.onmicrosoft.com"
35+
$AdminPassword=Read-Host -Prompt "Password" -AsSecureString
36+
Connect-SPOService https://tenant-admin.sharepoint.com -Credential $Username
37+
$myhost="https://tenant-my.sharepoint.com"
38+
$LocaleID=1033
39+
```
40+
41+
42+
43+
44+
45+
46+
If you are not currently an Administrator of the user's personal site, you can gain access using:
47+
48+
```PowerShell
49+
Set-SPOUser -Site $urelek -LoginName $username -IsSiteCollectionAdmin $true
50+
```
51+
52+
53+
In order to use the cmdlet, you can either modify the ```.ps1``` file or write a separate script.
54+
55+
56+
57+

0 commit comments

Comments
 (0)