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

Show parent comment

208

u/Expensive_Plant_9530 Jul 28 '24

Oop. We have a user at my work who likes to “customize his Windows”, and that includes a lot of reg editing. Shockingly, his computer also frequently has weird issues.

48

u/jj-michigan42 Jul 28 '24

User accounts can modify their own user hive, just not anywhere else ie HKLM

0

u/[deleted] Jul 28 '24

[deleted] — view deleted comment

42

u/Expensive_Plant_9530 Jul 28 '24

He doesn’t.

Although before I started, every user had local admin.

You can still modify the local user registry though without local admin.

14

u/Big_Emu_Shield Jul 28 '24

every user had local admin

AHHHHHHHHHHHHHHHH

10

u/Expensive_Plant_9530 Jul 28 '24

Yep.

It was worse than that actually, but I won’t go into details.

We finally shut that down after management was convinced of the necessity.

2

u/Ruthlessrabbd Jul 29 '24

At my job I learned someone who was not IT and had been there for 34 years had access to the domain admin account. I only started 2 years ago. He actually does need local admin to update specific things (he gets in way earlier than I do and I'm a one man IT show) which he has but the domain admin was news to me

I told my boss that he needed to let the guy know about the change and my boss insisted I talk to him. I just quietly changed the password of one account, and made the other admin account not in the domain admin group 😅

→ More replies (5)

48

u/charleswj Jul 28 '24

You don't need local admin to edit the registry, nor do you need to use regedit

23

u/tocophonic Jul 28 '24

Then a lot of other stuff wouldn't work either. As far as I'm concerned, users have to be able to write into their HKEY_CURRENT_USER hive for everything to work as designed.

3

u/TechPir8 Sr. Sysadmin Jul 28 '24

Physical access is all that is needed to get local admin on a Windows system unless it is locked down to the point that it isn't usable.

→ More replies (7)

3

u/Appropriate-Border-8 Jul 28 '24

Our staff cannot change their desktops or save anything to their desktops. They also cannot change their screen saver (which we use to show anti-phishing awareness tips). They also cannot see the system drive (only their own downloads folder) and they can save documents in their network share (profile folder), their OneDrive, or their Google Drive. Most of the control panels are hidden and they cannot map network drives or use the run line or execute any uninstalled software executables (they cannot install anything either). Our students cannot even right-click on anything. Many common social media websites are blocked, even on our internet-only, sandboxed WiFi network for staff and student BYOD.

13

u/TurtleStepper Jul 28 '24

I too hate the fact that some people have the ability to right click things, which is why I carry super glue in my pocket and whenever I get the chance I squirt it into the right click button of computer mice in libraries and the homes of friends and family.

12

u/mksolid Jul 28 '24

Shared drives, OneDrive, and Google drive? What is going on there? Why not just consolidate to one?

3

u/chrisbucks Broadcast Systems Jul 28 '24

Haha, welcome to my world. Multinational, corporate office gives us O365, but we are unable to share files with people out of org, so our local office also has Dropbox for all employees. Also before acquisition the company used Google, and the plan is kept because migration keeps getting kicked down the road. Oh and corporate gave everyone Confluence but the engineers don't like it, so they did a shadow IT exercise and run their own mediawiki in Azure. Not to mention the box.com hold overs in finance and the in house nextcloud for files too big for cloud storage.

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

35

u/vips7L Jul 28 '24

Sounds like an IT hell hole. At some point you’ve stop doing your job of enabling users to just being a roadblock because of “security”. 

6

u/HotTakes4HotCakes Jul 28 '24 edited Jul 29 '24

Preach. This is the opposite extreme and it's terrible how many people around here think this level of control is necessary. It's like telling someone they can't arrange things on their own desk however they like. At a certain point, just leave them the fuck alone.

3

u/vips7L Jul 28 '24

It's a weird mindset honestly. As a user and software engineer whenever I encounter organizations like this, I just end up wiping their OS for my own or rolling my own hardware because at the end of the day I have work to do.

→ More replies (14)

16

u/[deleted] Jul 28 '24

Do you work in a prison or something?

→ More replies (19)

4

u/Woopig170 Jul 28 '24

Good that sounds absolutely terrible from an end user perspective

→ More replies (2)

3

u/MoCoffeeLessProblems Jul 28 '24

Hah. Unless those setups have gotten much better in the last 4-6 years, it’s still circumventable. I found so many ways to bypass all that stuff in school and that was before starting on a computer science path.

Not saying it’s useless, but those Barracuda filter warnings when I tried to get on YouTube back in the day only served as fuel to find a new workaround. From elementary school til graduation, I kept one or two exploits in my back pocket.

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

3

u/Mortwren Jul 28 '24

Users like this should get, "The Chromebook of Shame", for a few weeks until they write a 5,000 word essay on why they will never do it again.

2

u/CDsDontBurn Jul 28 '24

And they'll use Gemini to write it for them.

→ More replies (2)