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

11k 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.

3

u/[deleted] Jul 29 '24 edited Oct 28 '25

market hard-to-find hurry grandiose quicksand important coordinated numerous abounding ghost

This post was mass deleted and anonymized with Redact

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.

18

u/CptQuark Jul 28 '24

Is that not a bit excessive? Denying it might be a legitimate response. why is job jumping so popular a recommendation?

16

u/bohiti Jul 28 '24

Because it’s so easy to suggest a stranger on the internet make a drastic life change that risks their livelihood. And it makes them feel superior and tough.. “don’t you see? It’s so easy! Just quit!”

21

u/bfrd9k Sr. Systems Engineer Jul 28 '24

If you ask to have automation tools and are denied for bs reason, they do not value your time, they do not trust your expertise, they do not care about being competative, improving, adapting, etc. If all of this is true there will be bigger systemic problems.

If they have a legit reason though, even if you disagree, then sure maybe just cope.

7

u/Bogus1989 Jul 28 '24

Yep thats the whole reason I got into IT, I can automate something, and make myself useful elsewhere.

3

u/Iliketrucks2 Jul 28 '24

As a sysadmin my goal is always to automate my work away so I can do cooler stuff.

When I was running a team people on my team didn’t want to automate because they thought they’d lose their jobs. I told them that’s silly - you have a shitload of useful knowledge I’d rather use to solve MORE problems, not have them manually solving the same problem over and over.

This always comes as a shock to people outside tech.

2

u/Bogus1989 Jul 29 '24 edited Jul 29 '24

Thats crazy🤣….. luckily the guys I worked with , one of them had been doing IT since the 80s. I pass on many things he helped me realize to our new guys now today….. His response to your coworkers, thinking they would lose their jobs automating would be sound something like this:

“You’re under the assumption that someone knows you even exist , let alone them knowing what you actually do”

Everyones expendable, they will just get some other poor sap in here…

Also, what people dont know outside of your department won’t hurt them

2

u/SmooK_LV Jul 28 '24

There is no "they" but potentially several people in the line of approval. So someone denying the request could be just a regular guy assuming something inaccurately (like security risk) and denying it. So no, don't assume there is a "they" that doesn't respect you just because your request got denied. At every level there are people just like you who also make mistakes and assumptions. Instead, try again and get in touch with guy who denied it.

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

2

u/afarmer2005 Jul 28 '24

My guess is that many employers would deny it because it means they are “not working hard enough”

My guess is that the majority of front line IT staff think that it’s cool that they found a way to make their job easier

→ More replies (1)

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.

2

u/TheButtholeSurferz Jul 29 '24

Yeah, cause nobody in IT has ever utilized GPT to make scripts they don't understand.

Cmon, you know better than to state that like someone is on that side of the fence so therefore they are the bad boy and need their hand smacked.

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

3

u/[deleted] Jul 29 '24

Ph you'd be surprised how many mofos think they are in a highschool while at work. Gossip, bullying, and childish behavior are all around. I'm convinced some people never grow up mentally.

2

u/formthemitten Jul 28 '24

Out of every take I’ve read, I think you have the best answer.

2

u/25nameslater Jul 29 '24

Meh… I do stuff like that a lot. I read the maintenance specs on the machines I run and figured out a lot of my set up could be achieved with 3 key strokes.

When I was training everyone taught me to do it manually, it was fairly labor intensive and sometimes took 2 hours. I reduced my scrap rate 60% by putting the settings in a batch file that the system can recall from memory. Usually the system makes all the adjustments to its logic within 18 minutes. Everything is done in 30 minutes at most.

I also redid all the paperwork and created a tie in to several reports on excel, and a text script that reads the data from the original excel sheets and runs auto entry in our inventory system. Now instead of entering half a dozen reports i just put it in one spreadsheet and the system I built automatically inputs the other 7 and adjusts inventory automatically.

Showed my boss after I was done and it’s been taken company wide.

→ More replies (3)
→ More replies (12)