From 6ec2eb61a02f9e55ef5b8d22a5ca61ca53ca05e7 Mon Sep 17 00:00:00 2001 From: heqnx Date: Fri, 11 Jul 2025 21:55:20 +0300 Subject: added initial setup for domain controller --- ansible/scripts/cleanup.ps1 | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 ansible/scripts/cleanup.ps1 (limited to 'ansible/scripts/cleanup.ps1') diff --git a/ansible/scripts/cleanup.ps1 b/ansible/scripts/cleanup.ps1 new file mode 100644 index 0000000..8ac42bf --- /dev/null +++ b/ansible/scripts/cleanup.ps1 @@ -0,0 +1,9 @@ +$scriptName = $MyInvocation.MyCommand.Name +$logFile = "C:\Logs\${scriptName}_log.txt" +Start-Transcript -Path $logFile -Append + +Remove-Item -Path C:\tmp -Recurse -Force +Remove-Item -Path C:\setup -Recurse -Force +Remove-Item -Path C:\scripts -Recurse -Force +Remove-Item -Path C:\software -Recurse -Force +Stop-Transcript \ No newline at end of file -- cgit v1.2.3