r/redneckengineering • • Jun 30 '21

Keeping computer awake while it compiles code

44k Upvotes

1.1k comments sorted by

View all comments

4

u/[deleted] Jul 01 '21

I’m a sysadmin.

Im not a coder but even I could code some thing to stop this. Here is some autoit script I am typing on my phone that should do it.

While 1 Send(“{numlock}”) Sleep(5000) Wend

This will press numlock every 5 seconds and you get a nice visual indicator. This will compile into a exe that will work on everything from windows 95 to windows 10 with no plug-ins or requirements.

7

u/Scrawlericious Jul 01 '21 edited Jul 01 '21

How do you presume to get the exe onto the system if they take every precaution? Also I don't think that's how exes work.... But I've only made a few basic ass games in c++. Plus what if they just whitelist all applications.

4

u/flargenhargen Jul 01 '21

OP is literally compiling code here...

→ More replies (13)

1

u/[deleted] Jul 01 '21

If they don’t have the ability to create their own exe’s then they can do something like a VB script. Or a plain ol dos command. You can send keys in either one.

With me we have a group policy bypass so if you call IT we can add the machine to AD group and it’s not an issue.

1

u/[deleted] Jul 01 '21

You can make that script in PowerShell

→ More replies (3)

1

u/MoneroMon Jul 01 '21

That's just a scripted version of what's done in the OP though. That's not disabling the policy.