-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlocalConfiguration.ps1.dist
37 lines (36 loc) · 1.59 KB
/
localConfiguration.ps1.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env pwsh
####
# Local Configuration File
####
# @see:
# https://github.com/Bromeego/Clean-Temp-Files/blob/master/Clear-TempFiles.ps1
# @since 2021-04-07
# @author stev leibelt <artodeto@bazzline.net>
####
#bo: general variable section
#$beVerbose = $false
#$globalLogLevel = 3 #@see: https://docs.microsoft.com/en-us/dotnet/api/microsoft.extensions.logging.loglevel?view=dotnet-plat-ext-5.0
#$isDryRun = $false
#$lockFilePath = ($PSScriptRoot + "\data\CleanUpSystem.lock")
#$logDirectoryPath = ($PSScriptRoot + "\log\")
#eo: general variable section
#bo: path section
####
#You can add paths in here
# The `path` could contain $user
# If `path` contains $user, the script will automatically apply this path to all users in `C:\Users\<username>`
#
#If you want to, you can remove all pre shipped paths by declaring the $collectionOfTruncableObjects new.
# $collectionOfTruncableObjects = New-Object System.Collections.ArrayList
#
#Example:
# Following is a example without real data, you see the expected type and if it is mandatory or optional and default values
# $collectionOfTruncableObjects.Add((New-TruncableObject <string: path> [<int: days to keep old files = 1] [<bool: check for duplicates = $false] [<int: check for duplicates greater than megabyte = 64])) | Out-Null
#
# Following is an example with real data
# $collectionOfTruncableObjects.Add((New-TruncableObject 'C:\Users\$user\...' 7 $true 32)) | Out-Null
####
# bo: user general
#$collectionOfTruncableObjects.Add((New-TruncableObject 'c:\Users\$user\Downloads' 21 $true 32)) | Out-Null
# eo: user general
#eo: path section