I'm pretty new to PowerShell and have been experimenting with it at work. I have admin rights, but suddenly I can't open an elevated instance of PowerShell anymore. Previously, I could easily open both the terminal and ISE as an admin, but something has changed. Also, I'm unable to establish a PSSession with another computer from my workstation, receiving an 'Access Denied' error each time. On the bright side, if I log into a different workstation, everything works fine. I'm sure I didn't lose any privileges, so I must have tinkered with something on my local setup. Any guidance on how to resolve this would be really appreciated!
4 Answers
Have you tried using Shift + Right-click to 'Run as different user' instead of just 'Run as admin'? Entering your admin credentials that way might give you more insight into what's going wrong.
It sounds like a new Group Policy might have been applied to your work computer. If that's the case, unfortunately, there's not much you can do since those policies can restrict admin capabilities.
Have you checked how much time is left on your admin password? I've noticed that strange issues can pop up if your password is set to expire in less than 20 days. Just a thought!
If all else fails, maybe consider just wiping your machine and starting fresh. It's just a computer after all, especially since everything works fine on other machines. But really, try to keep your admin tasks on a separate machine to reduce risks—it can save you headaches!
Thanks for the tip! Thankfully, I still have plenty of time left before my password expires. I think I might have accidentally changed something on my local computer.