Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

Accessing common parameters

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 05-14-2008   #1 (permalink)
David Pope
Guest


 

Accessing common parameters

Hello all. Is there a way to gain access to the common parameters passed to
a cmdlet without parsing the command line? We would like to know that
-WhatIf, -Confirm etc. were specified on the command line, without inferring
it via ShouldProcess.

I know this sounds like a crazy thing to do. Unfortunately the remoting
strategy being pursued in Powershell does not meet our requirements, so we're
investigating ways to provide this functionality ourselves. In order to
replicate the user's intent on the target server we need to convey things
like -WhatIf over to the cmdlets running there.

This is a deep topic so I'll stop there for now. We've been through the
debugger trying to find this information, but it looks like these parameters
are consumed by the engine before cmdlets execute. Any ideas?

My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
common folder showall32's Vista file management 1 05-06-2008 07:15 AM
Common Places Like XP Bill Meyer Vista file management 3 02-27-2008 07:33 AM
Hopefully this is a common issue ....... kristina_f_1 Vista General 2 10-13-2007 11:07 AM
Common Dialogs MagneX Avalon 3 06-26-2007 12:49 AM
Common App Data will f Vista General 0 03-14-2007 10:26 AM


Update your Vista Drivers Update Your Drivers Now!!

Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008