![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
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.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| 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 Specs![]() |
![]() |
| 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 |