Skip to content

Commit 3ac70ea

Browse files
committed
Added Remove-DebugDiagLogs
1 parent c7d72dd commit 3ac70ea

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
function Remove-DebugDiagLogs {
2+
[CmdletBinding()]
3+
param(
4+
[Parameter(Mandatory = $true)]
5+
[int]$Days,
6+
7+
[switch]$DryRun
8+
)
9+
10+
process {
11+
Get-Item "$env:SystemDrive\Program Files\DebugDiag\Logs\DbgSVC_*.txt" | Remove-OldItem -Days $Days -DryRun:$DryRun
12+
}
13+
}

0 commit comments

Comments
 (0)