0

This may seem like a total newb question, because it is...

I was testing some customised functions, specifically a function found here to suppress Write-Host. This deleted the original Powershell Write-Host function.

I have googled for a while but I can't find a way to restore the Powershell functions to "factory settings".

Does anyone know how to get the standard Write-Host back?

Erik Erik
  • 45
  • 5

1 Answers1

1

Answered by Mathias R. Jessen's comment:

Just remove it and start a new instance of powershell.exe - the script in the second answer to the post you linked only removes it from the current session

Wai Ha Lee
  • 8,598
  • 83
  • 57
  • 92
Erik Erik
  • 45
  • 5