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 4336176
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T10:46:17+00:00 2026-05-21T10:46:17+00:00

In my eagerness to find out what variables were protected or constants, I decided

  • 0

In my eagerness to find out what variables were protected or constants, I decided to just see what ones could be removed – assuming those mentioned above would be left alone. What I didn’t realize is the removal of those variables would not be limited to the scope of this session of the ISE – but was not only PowerShell global – but system global. I’m hoping that someone can help me get the ISE working again.

My foolishness:

Remove-Variable *  

…resulted in a bunch of errors reported and only a handful (10-15) remaining when I executed dir variable: afterward. Thinking it was no big deal and that a restart of the ISE would restore me to normality, I closed it — and I cannot start it anymore.

Additional Symptoms

I’ve since found that I’ve lost things like environment variables %windir% are gone – which in a most interesting twist, prevents you from opening your Advanced system settings (can’t find %windir%\system32\systempropertiesadvanced.exe) to set your ENV back up… (Yes, I can run it directly)

Update: I found an additional effect/symptom: Windows reported that I may not have a genuine version of Windows after the auto-update was not able to work correctly. I hadn’t realized that something as simple as some ENV vars being gone would kill that. Hrm.

So – anyone knows how to restore or re-create the environment needed to successfully run the ISE?

(And yes, I’ve tried removing and re-adding the Feature, combined with reboots.)

  • 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-05-21T10:46:18+00:00Added an answer on May 21, 2026 at 10:46 am

    Thanks all for the assist – here’s what I did, which while I’m not sure got me back 100% everywhere, has allowed me to use the ISE, Hyper-V Manager and validate as genuine again.

    I went to another Server 2008 R2 box, compared the key and manually edited the registry and added these values back to the broken machine:

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
      Path=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;
      PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
      PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
      TEMP=C:\Windows\TEMP
      TMP=C:\Windows\TEMP
      windir=C:\Windows
    

    I’m leaning towards the elevated Administrator privilege of the ISE as the underlying reason it affected more than the session.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First of all let me tell you one thing that I am posting this
Can I convert Class into Dictionary<string, string>? In Dictionary I want my class properties
I'm getting following messages and I don't know what they mean. Everything seems to
I have this query var test = context.Assignments .Include(a => a.Customer) .Include(a => a.Subscriptions)
Apparently it is possible to implement Haskell such that it evaluates eagerly without changing

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.