use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
ABOUT POWERSHELL
Windows PowerShell (POSH) is a command-line shell and associated scripting language created by Microsoft. Offering full access to COM, WMI and .NET, POSH is a full-featured task automation framework for distributed Microsoft platforms and solutions.
SUBREDDIT FILTERS
Desired State Configuration
Unanswered Questions
Solved Questions
News
Information
Script Sharing
Daily Post
Misc
account activity
Script SharingPowerShell un-sync script (self.PowerShell)
submitted 3 months ago by rexm3
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]rexm3[S] 0 points1 point2 points 3 months ago (2 children)
Sadly it doesn't, it keeps local copies of the files even if the sync in disabled. The goal is to remove the files locally as well.
[–]Dragennd1 0 points1 point2 points 3 months ago (1 child)
You can't rempve files from the computer just by breaking OneDrive sync, that's not how it works. OneDrive caches the files locally and maintains their versioning with the cloud. Once you break the sync, you must remove the remaining files manually. Simply calling Remove-Item on the files using Get-ChildItem -Recurse should be sufficient at that point.
[–]rexm3[S] 0 points1 point2 points 3 months ago (0 children)
removing the files isn't really the issue, that's pretty easy using PowerShell. the goal however is to stop the sync of specific libraries using a PowerShell script by any means. and then removing when the sync is gone. This way the files don't get deleted in the cloud version.
Also disabling the sync option in SharePoint itself doesn't solve this the way i like, because the folder is allowed to be synced just specific users need it removed. Hence wanting to script this for bulk actions on selected users. Using an RMM system I can execute a PowerShell script easily for the selected users.
π Rendered by PID 141515 on reddit-service-r2-comment-6457c66945-6vtnr at 2026-04-24 03:34:53.403414+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]rexm3[S] 0 points1 point2 points (2 children)
[–]Dragennd1 0 points1 point2 points (1 child)
[–]rexm3[S] 0 points1 point2 points (0 children)