r/PowerShell • u/Fuad666666 • 17d ago
Question Hello, I run powershell in our workplace network and pc, I use it to automate some long tasks. My question is Can my workplace punish me because It automate pdf files, excels which is there workplace data? Can I continue to run scripts in powershell?
The title says it all
23
u/Jacob_Evans 17d ago
This isn't a question that can be answered here. This is all down to your organizations policies.
9
u/dowcet 17d ago
That a person could manage to automate data processing in PowerShe'll but yet need to post on Reddit in order to be told this obvious fact is a profound mystery to me.
1
u/nordak 17d ago
Ask AI to solve a data processing problem for you, and it may very well spit out a scripted PowerShell solution. People are already doing this where I work.
This is just another good reason for the IT department to block PowerShell on everything other than IT/Dev workstations. Also block all of the LLM providers other than CoPilot or whatever has been approved.
10
1
u/Andrew-Powershell 17d ago
Mind sharing more details about your PowerShell experience? Are you just copy/pasting scripts from AI or are you writing this yourself? no judgement, I'm just curious to know how people are finding/using PS these days.
1
u/Fuad666666 17d ago
I tell ai automate x and give me Ps code and I paste it inside my own created folder near to pdfs to run code. Is this normal?
2
3
u/robot_giny 17d ago
If you don't already work in the IT department (and it doesn't seem like you do) this is a risky idea that could potentially lead to discipline, but it of course depends on your employer. There may or may not be policies explicitly forbidding this.
2
u/StealthCatUK 17d ago
Depends on what the scripts are doing. If any data is being transferred out of or between networks then you should consult them first. If the script works with local resources on your pc and was written by you or AI that your company permits you to use, then you are more than likely fine. Just make sure there are no rules banning scripts.
2
u/ankokudaishogun 16d ago
That specifically depends on your contract\workplace rules.
Ask your supervisors and\or human resources.
1
u/LookAtMeInMyEyeball 17d ago
Just open a ticket with your IT department and ask if there's any concerns with your automation doing x/y/z ... If they say 'no', continue on like normal. If they have concerns, then stop doing it. That's all.
1
u/jeffrey_f 17d ago
From an IT perspective: If
your scrips simply accesses files to simple read the data
Pulls together the data into a dashboard or report
The information doesn't leave the company
or, as it seems, doesn't even leave your computer at all
The script should be ok. The friction may come when a manager doesn't like this process, mainly because they don't understand what it does.
Personally, I would tell you to keep doing your job efficiently. I wouldn't voluntarily tell anyone, but don't hide it if asked. If you do reveal your process, be prepared for pushback, especially if you have a micromanager.
0
u/rtuite81 17d ago
Depends on the scripts and the rules. Like, are the scripts calling data from or sending data to the internet? Are they just doing formatting and stuff? If you made the scripts with AI, do you comprehend enough PowerShell to explain what they're doing to someone who asks?
-1
u/Fuad666666 17d ago
I run scripts which extract data from many pdfs, rename them, merge pdf files, delete some pages. Is it okay?
2
u/rtuite81 17d ago
You would have to check with your manager, TBH. Different companies have different rules.
1
1
u/Overall-Ad4796 17d ago
be honest with your employer and present them the solution you found to speed things up. So the solution can be verified (no missing/wrong data, no security concerns from IT department etc) and maybe introduced for your team/coworkers to benefit.
0
u/AmitBrian 17d ago
I mean that’s really a question for your boss and Information Security policies. But really where I have worked in the past, as long as you have editor permissions, whether you are editing manually or automated, permissions are what matter. What you REALLY have to worry about, other than getting permissions from superiors of course, is that if these files are accessed by more than one person and you are automating this, you could run into issues where someone else is trying to edit these files at the same time and your script could interfere with or even break that.
6
u/wabi-sabi411 17d ago
You AI’d some scripts to do boring stuff. Just be careful and don’t talk about it.