Help! Can’t keep a remote PowerShell session open – any advice?

0
6
Asked By TechWiz74 On

I'm having a weird issue when trying to establish a remote PowerShell session using a function that pulls encrypted credentials from an XML file. The function works fine most of the time, but occasionally, I get an access denied error. The strange part is that if I open a new tab and attempt to connect again, it works. Then, after a while, it stops working in that tab as well. Has anyone else run into this problem and do you know how to fix it?

2 Answers

Answered By CoderNinja88 On

Could you share what your function looks like? I've faced situations where scope issues can cause problems, making things not work as expected.

Answered By ScriptScribe32 On

You might want to try running your script outside of PowerShell ISE. I've heard ISE can have some quirky issues that mess things up sometimes.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.