Forum Discussion
TonyBryant
Jun 05, 2020Copper Contributor
Syncing SharePoint Document Libraries on Non-Persistent Virtual Computers
I have searched for ways to "sync" a SPO Document Library, particularly a Teams Document Library, in a non-persistent VDI where you have access via Windows Explorer similarly to OneDrive. While I cou...
MikeG4936
May 03, 2022Copper Contributor
JamesWood NPerez930 I found a solution to this problem. This happens when you have an outdated version of the OneDrive sync client installed on your VDI image. This causes the OneDrive client to self-update, instead of silently logging the user in. Update to the latest version of the OneDrive client on your VDI gold image to fix this problem.
- JamesWoodMay 03, 2022Copper ContributorIn my case, I'm not using VDI; I'm testing this manually on my physical system before deploying via GPO. We have the latest OneDrive installed via Microsoft 365.
- MikeG4936May 03, 2022Copper ContributorMake sure you have enabled the GPO entitled "Silently sign in users to the OneDrive sync app with their Windows credentials"
- Daren DaigleAug 02, 2022Copper Contributor
Using the libraries already installed, this should work.
$SysInfo = New-Object -ComObject "ADSystemInfo" $UserDN = $SysInfo.GetType().InvokeMember("UserName", "GetProperty", $Null, $SysInfo, $Null) $User = [ADSI]"LDAP://$UserDN" $User.Mail
Actually, this script returns an object that has all the active properties for the user.