Skip to content

Commit e98e678

Browse files
Update EnableVersioningForAllODBListsForSelectedUsers.ps1
1 parent a08563f commit e98e678

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

OneDrive for Business/Enable versioning for all lists in selected OneDrive sites/EnableVersioningForAllODBListsForSelectedUsers.ps1

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ $Global:csv=@()
7171
foreach($user in $users)
7272
{
7373

74-
7574
if($user.Username.Contains('@'))
7675
{
7776
$persweb=$user.Username.Replace(".","_").Replace("@","_")
@@ -82,9 +81,9 @@ foreach($user in $users)
8281

8382
#Add the following line if you want to assign yourself, administrator or another user access to other users' personal sites
8483
#Set-SPOUser -Site $AdminUrl -IsSiteCollectionAdmin $true -LoginName t@trial765.onmicrosoft.com
85-
Set-SPOListVersioning -EnableVersioning $EnableVersioning -Urelek $AdminUrl
84+
Set-SPOListVersioning -EnableVersioning $EnableVersioning -Urelek $AdminUrl
8685
}
8786
}
8887

8988
# Specify the path where the log file will be published
90-
$Global:csv | Export-Csv -Path C:\Users\Public\Versioning.csv
89+
$Global:csv | Export-Csv -Path C:\Users\Public\Versioning.csv

0 commit comments

Comments
 (0)