Stop Sync OneDrive folder/library by script

Copper Contributor

Is there anyway to perform these two actions by powershell script?
Action 1: stop sync a library

trungnguyenwinget_2-1651829667680.png

Action 2: stop sync some specific folders

trungnguyenwinget_3-1651829715596.png

 

 
 

 

 

2 Replies

@Adin_Calkic Is there any way for files/folders or does it have to be the whole library? 

 

Regards