Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Enter a PowerShell Nested Prompt Directly

$
0
0

Summary: Learn how to directly enter a Windows PowerShell nested prompt.

 Hey, Scripting Guy! Question How can you directly enter a nested prompt without going through a cmdlet and using Suspend?

Hey, Scripting Guy! Answer Use the EnterNestedPrompt method from the $host object:

PS C:\> $host.EnterNestedPrompt()

PS C:\>> exit


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>