47Ronin
Senior Member
- Joined
- Jan 11, 2022
- Messages
- 577
- Reaction score
- 312
Right everyone and their pet rock knows Powershell is a bit of a double edge sword when it comes to running scripts. Since my main PC is airgapped I am not really worried about bad things happening. I would connect only to update Win11 security and virus definitions. I have a rescue-kit on a flash to do scans with. Other then that it is offline. It is where I do my work and keep customer profiles and stuff like that so obviously extra careful with it.
My poor laptop on the other hand is not so lucky. It is running on a separate router with its own internet and is essentially isolated. Thing is my Powershell is enabled all the time on it. Now this is seriously stupid as we all know the damage Powershell can do if it runs a bad script.
I figured I would just disable the bloody thing in the registry but find I forget from time to time. So was wondering if there is a way to enable and disable it without running to the registry 10 times a day.
I did a custom registry entry to activate scripts and deactivate it. Nothing serious but like I said I do forget so... how do you all deal with this?
I am not clued up with Win11 and is still learning it, but it is an obvious problem so I am hoping for a easy "you click here" solution. If not I will just try and make a bat[batch] file to change the value make it run on startup. This takes me back to winNT4 now don't know why...
My poor laptop on the other hand is not so lucky. It is running on a separate router with its own internet and is essentially isolated. Thing is my Powershell is enabled all the time on it. Now this is seriously stupid as we all know the damage Powershell can do if it runs a bad script.
I figured I would just disable the bloody thing in the registry but find I forget from time to time. So was wondering if there is a way to enable and disable it without running to the registry 10 times a day.
I did a custom registry entry to activate scripts and deactivate it. Nothing serious but like I said I do forget so... how do you all deal with this?
I am not clued up with Win11 and is still learning it, but it is an obvious problem so I am hoping for a easy "you click here" solution. If not I will just try and make a bat[batch] file to change the value make it run on startup. This takes me back to winNT4 now don't know why...