Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Run the following commands to restart a PowerShell session: 

This will create a new PowerShell session and any existing objects will not be preserved. This may be required after updating or removing installed modules.

If ([System.Diagnostics.Process]::GetProcessesByName('servercoreshell')) { Exit } Else { $Process = [System.Diagnostics.Process]::GetCurrentProcess(); Start-Process -FilePath $Process.Path -ArgumentList ("-NoExit", "Stop-Process -Id $($Process.Id)") }
  • No labels