


SharePoint Online: Switch Navigation to Horizontal or Vertical.Hide a Button in SharePoint Online List or document library Toolbar.Switch between Document Libraries with Document Library Dropdown Menu in SharePoint Online and OneDrive.$UserProfileResult = $UserProfileService.GetUserProfileByIndex($UserProfileResult.NextValue) # And now we check the next profile the same way. $SiteUrl | Out-File $LogFile -Append -Force # If "PersonalSpace" (which we've copied to $Url) exists, log it to our file. $Prop = $UserProfileResult.UserProfile | Where-Object # Look for the Personal Space object in the User Profile and retrieve it Write-Host "Checking profile $i of $NumProfiles" -foreground Yellow While ($UserProfileResult.NextValue -ne -1) # As long as the next User profile is NOT the one we started with (at -1). $NumProfiles = $UserProfileService.GetUserProfileCount() $UserProfileResult = $UserProfileService.GetUserProfileByIndex(-1)

# Sets the first User profile, at index -1 $UserProfileService.CookieContainer = $Container $URI = New-Object System.Uri($AdminSiteURL) $StrAuthCookie = $AdminCredentials.GetAuthenticationCookie($AdminSiteURL) $UserProfileService.Credentials = $AdminCredentials $UserProfileService= New-WebServiceProxy -Uri $ProxyAddr -UseDefaultCredential False # Create a new webservice proxy to access UserProfileService $ProxyAddr = "$AdminSiteURL/_vti_bin/UserProfileService.asmx?wsdl" #Set User Profile Service path using SPO admin URL $AdminCredentials = New-Object ($AdminCred.Username, $AdminCred.Password) #Specify the location where the list of OneDrive sites should be saved #Add references to SharePoint client assemblies
