Quantcast
Channel: TechNet Blogs
Viewing all articles
Browse latest Browse all 36188

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 36188

Trending Articles