Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Keep variable in RAM between PowerShell sessions

I’ve seen ways to keep data in files in order to preserve it between sessions, but I’m looking for a way to somehow keep it in memory. I want to to be able to set the variable, close the session, open a new session, and access the variable without the use of any files.

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

When a program exits, all of its data is reclaimed from memory unless it stays open in the background, which hardly counts as a different session. What you’re asking for is impossible to the extent of my knowledge.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading