Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8774129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T18:28:55+00:00 2026-06-13T18:28:55+00:00

Just a quick on this morning. Is it possible to create a file and

  • 0

Just a quick on this morning.

Is it possible to create a file and store in it the Powershell runspace/session memory?

Something like:

out-file 'powershell session space'?

instead of:

out-file C:\temp\system_info.txt

I’m creating an e-mail template that catches data from the machine the script is run on and sends it to the domain admin. However if it’s run by another user who for whatever reason hasn’t got access to the ‘temp’ folder or even the C:\ drive, I want the file (script_info.txt) to be created in the memory of the PS session. Is that possible?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T18:28:56+00:00Added an answer on June 13, 2026 at 6:28 pm

    Found out it was this:

    out-file "$env:TEMP\file.extention"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just a quick regex question...hopefully I have a string that looks something like this:
Just a quick question. I'm using something like this FileStream fs = new FileStream(fileName,
This is just a quick question to understand correctly what happens when you create
Good Morning, Just a quick question what this field actually means? I am trying
this is just a quick probe to see if this is technically possible. I'm
Just a quick question about a function like this: class Test { public: Test(vector<int>&
Morning, I am new to this so just need a quick hand on how
Just a quick question about how you would go about implementing this. I want
This is just a quick question in C#. I have a scenario where I
just a quick question, was trying different ways to accomplish this, but ended with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.