Skip to content

Commit 2b07dd4

Browse files
authored
Update OneDrive-SetFilesOnDemandToCloudOnly.ps1
1 parent 76a0c80 commit 2b07dd4

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

OneDrive/OneDrive-SetFilesOnDemandToCloudOnly.ps1

+15
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
<#
2+
.SYNOPSIS
3+
The script sets all files in OneDrive path to Cloud Only
4+
5+
.DESCRIPTION
6+
Use this script to free space on your local system
7+
8+
.NOTES
9+
Version: 1.0
10+
Author: Manuel Winkel <www.deyda.net>
11+
Creation Date: 2023-08-22
12+
Purpose/Change:
13+
#>
14+
15+
116
get-childitem $ENV:OneDriveCommercial -Force -File -Recurse -ErrorAction SilentlyContinue |
217
Where-Object {$_.Attributes -match 'ReparsePoint' -or $_.Attributes -eq '525344' } |
318
ForEach-Object {

0 commit comments

Comments
 (0)