Jump to content

windows 7 (if that matters)

so i'm trying to show off to my friends with some random batch files i created and was wondering if, for instance, i wanted to delete system32. if i just browse the files normally and right click, delete. it asks for the admin username and password. so will it show that if the command is from a batch file?

Taking Falling to whole new Heights

Link to comment
https://linustechtips.com/topic/372577-can-batch-files-bypass-administrators-access/
Share on other sites

Link to post
Share on other sites

I tried to delete System32 once.

It failed because it was in use. xD

~~~SnapDragon~~~

| CPU: AMD Ryzen 9 9950X3D | CPU Cooler: Gigabyte Aorus Waterforce X II 360mm |RAM: 2x32GB G.Skill Trident Z5 Neo RGB 6000MHz | Mobo: Gigabyte X870E Aorus Xtreme X3D AI Top  | Storage: Samsung 9100 Pro 4TB + Samsung 990 Pro 4TB + Samsung 870 Evo 4TB + Samsung 870 Evo 2TB | Graphics Card: Gigabyte RTX 5090 Aorus Master 32G | Case: Lian Li Lancool 216 | PSU: Seasonic Vertex GX-1200 |

 

Link to post
Share on other sites

no it will fail unless you run as admin

this ^^^

NEW PC build: Blank Heaven   minimalist white and black PC     Old S340 build log "White Heaven"        The "LIGHTCANON" flashlight build log        Project AntiRoll (prototype)        Custom speaker project

Spoiler

Ryzen 3950X | AMD Vega Frontier Edition | ASUS X570 Pro WS | Corsair Vengeance LPX 64GB | NZXT H500 | Seasonic Prime Fanless TX-700 | Custom loop | Coolermaster SK630 White | Logitech MX Master 2S | Samsung 980 Pro 1TB + 970 Pro 512GB | Samsung 58" 4k TV | Scarlett 2i4 | 2x AT2020

 

Link to post
Share on other sites

You  could probably get around it if you really wanted to.

 

Something like: Take ownership of all of the files under C:\Windows\System32

 

Then force delete the whole folder...

 

------

 

I used to have a similar script for XP for trolling people at school(the machines were ghosted and booted off the network so it was fine after reboot)

 

W7 step up a lot of security so it may no longer work...

 

-----

 

A fun thought for you: If you replace the windows help program that is run on startup from the login page it automatically runs as admin, doing this may allow you to delete the folder.

 

-----

 

Remember, I'm not responsible for anything you do  ;)

Link to post
Share on other sites

I tried to delete System32 once.

It failed because it was in use. xD

I thought it complained that you didn't have permission from trustedinstaller if you tried.

 

I still have a windows folder on one of my hard drives because I'm too lazy to set up a dual boot and remove it with linux.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×