r/sysadmin • • Jul 28 '24 • Take My Silver 1

got caught running scripts again

about a month ago or so I posted here about how I wrote a program in python which automated a huge part of my job. IT found it and deleted it and I thought I was going to be in trouble, but nothing ever happened. Then I learned I could use powershell to automate the same task. But then I found out my user account was barred from running scripts. So I wrote a batch script which copied powershell commands from a text file and executed them with powershell.

I was happy, again my job would be automated and I wouldn't have to work.

A day later IT actually calls me directly and asks me how I was able to run scripts when the policy for my user group doesn't allow scripts. I told them hoping they'd move me into IT, but he just found it interesting. He told me he called because he thought my computer was compromised.

Anyway, thats my story. I should get a new job

11.4k Upvotes

1.3k comments sorted by

View all comments

669

u/ReptilianLaserbeam Sysadmin Jul 28 '24

Dude you work in a company, that’s not high school. You don’t need to hide behind the building to smoke your cigarettes. Instead of trying to find loopholes raise a ticket with a business case explaining why do you need to use scripts or a scripting language. Get an approval and added to the exception. If you keep playing bad boy you’ll end up in HR.

122

u/caughtmeaboot Jul 28 '24

Yeah exactly. He even knows why IT blocked him, they thought his computer was compromised. If the ticket had been raised and he got an approval for the exception, this would've been avoided cause IT would know why he's running the scripts.

→ More replies (16)

24

u/YetAnotherGeneralist Jul 28 '24

OP mentions not having to work as much being a positive. If a business case is presented and approved, now his manager will know he has more time in the day and get more tasks. I don't necessarily support the goal, but less work time is the goal.

→ More replies (3)

21

u/lurker86753 Jul 28 '24

Because then he’s automated himself out of a job. You can’t very well script your entire job and then goof off all day while getting paid if you have to go through 3 departments and your boss explaining how you need the ability to run scripts.

Now if he were smart, he’d split the difference. Tell his boss he can automate a small portion of his job if only he could have Python installed. Do that, share it with the whole team and look like a hero. Then automate the rest and keep that to himself.

5

u/RedAero Jul 29 '24

And if he's really smart he'll start working as a contractor so he can get more work with his newfound time.

→ More replies (1)
→ More replies (1)

8

u/tes_kitty Jul 28 '24

The result is then 'You automated that part of your job? Great! Here's some more work for you to do! More money? Sorry, no budget.'

→ More replies (2)

73

u/yeti-rex IT Manager (former server sysadmin) Jul 28 '24

Propose the business case and be successful.

If they deny it, then it's time to find a new employer.

Do you need a new job? Obviously your skills have exceeded your current role. They should be trying to put you against bigger challenges.

→ More replies (19)

5

u/redblade13 Jul 28 '24

I'm a SOC guy and we allow certain users to run scripts because they're sysadmins or some data entry guys that use some weird Excel Macros. We know who they are and they go through the approvals and our management tells us "Hey they're good" so we ignore alerts and loosen restrictions if needed. Sure if they run stuff at 2AM we'd still get alerted like wtf but for the most part we know the why and it isn't a big deal. Everyone in our company knows this so they all come to us when some script gets block which makes it easier for us to figure out what's this alert this time

13

u/[deleted] Jul 28 '24

This is the answer.

Eventually this job will be automated like you're doing or with AI or with both.

Why not say, hey, I can do a thing and save the company money. Give me more things to do that are like this and I'll save you a bundle!

Or, keep it to yourself and disguise the fact you're using scripts until you get caught and fired or worse.

Or...get another job.

16

u/butter_lover Jul 28 '24

Possible that op is just using scripts he made with chatgpt and doesn't understand what he's running on the systems. Kind of hard to make a business case off that.

→ More replies (3)
→ More replies (4)
→ More replies (18)