Is there a way to make invoke-command interactive?

Hello,
I have a script that runs an invoke-command with multiple arguments and performs operation on a remote workstation.
I want to add some additional confirmations and dialogue choices depending on how the script block executes on the remove PC.
Is there a way to do that?

I'm afraid it's not possible in my scenario.
I'm using invoke-command with Credssp authentication because I need to execute a number of commandlets that are only installed on a specific remote server. Those powershell commandlets from Microsoft do not work if installed on the client.
Those commandlets use network share resources too, that's why Credssp is used.
During the execution of invoke-command I wanted to make an additional confirmation for overwriting of some resources.
The other option is to run several invoke-commands and get output from the queries, construct the dialogue options based on those queries and  gather input locally and then run the final execute invoke-command last, but it seems just like too much of
hassle for now, so i'll leave things as they are.

Similar Messages

  • Is there any way to make windows "sticky" in mission control?

    If I have several applications open, then invoke mission control, then click on a window to select it, the windows are in a different position the next time I invoke mission control.  This is like trying to hit a moving target, or as I sometimes refer to it,  "musical windows".  I've tried checking and uncheckng the mission control options in system preferences, but the windows still move all over.  Is there any way to make windows "sticky"?  What I would prefer ideally is that each group of windows remains in the same location, then new ones are added after.  I find it frustrating to have to scan mission control and locate the window I want, which is always being moved.
    -Thanks

    Go to Intel Download Center and select the 3000/4000 driver.
    you may need to uninstall the current driver if it won't install on its own

  • _Is there a way to make custom keyboard mapping a default?

    _Is there a way to make custom keyboard mapping a default?
    What I mean is, for example, I want to disable <command> S for saving (so I don't accidentally hit it).
    Thanks!
    Hugh

    Edit>Keyboard Shortcuts Make the changes you want to the shortcuts and save with a new name. In the dropdown at the top choose your new set and close. Quit and restart to seal the deal.

  • Is there a way to make a self-signed client certificate with keytool...

    Is there a way to make a self-signed client certificate with keytool
    that will install successfully into the personal store in IE?

    hi,
    It is possible to make a self-signed client certificate with keytool and i am successfully using in my dummy application.
    The first thing you need to do is create a keystore and generate the key pair. You could use a command such as the following:
    keytool -genkey -dname "cn=Mark Jones, ou=JavaSoft, o=Sun, c=US"
    -alias business -keypass kpi135 -keystore C:\working\mykeystore
    -storepass ab987c -validity 180
    (Please note: This must be typed as a single line. Multiple lines are used in the examples just for legibility purposes.)
    This command creates the keystore named "mykeystore" in the "working" directory on the C drive (assuming it doesn't already exist), and assigns it the password "ab987c". It generates a public/private key pair for the entity whose "distinguished name" has a common name of "Mark Jones", organizational unit of "JavaSoft", organization of "Sun" and two-letter country code of "US". It uses the default "DSA" key generation algorithm to create the keys, both 1024 bits long.
    It creates a self-signed certificate (using the default "SHA1withDSA" signature algorithm) that includes the public key and the distinguished name information. This certificate will be valid for 180 days, and is associated with the private key in a keystore entry referred to by the alias "business". The private key is assigned the password "kpi135".
    Also please go through the http://java.sun.com/j2se/1.3/docs/tooldocs/win32/keytool.html
    This would help u better.
    bye,
    Arun

  • Help! Is ther a way to make the pentool in Illustrator will be like in Photoshop pentool?

    Help! Is ther a way to make the pentool in Illustrator will be like in Photoshop pentool?
    I'm a photoshop user but this days i need make some design using illustrator. because of its vector base features.. but the problem is.. i more handy using the pentool in photoshop.. its hard for me to adjust..
    Is ther a way to make like this
    [IMG]http://i50.photobucket.com/albums/f313/henyongisaiah/VectorTypes-01.jpg[/IMG]
    http://s50.photobucket.com/albums/f313/henyongisaiah/?action=view&current=VectorTypes-01.j pg
    when i Add a anchor point, without converting it?
    i like to be automatic just like in photoshop pentool.

    1. Path with straight segment selected.
    2. PenTool: click the segment to add the anchorPoint. If the straight segment has no handles extended, the added anchorPoint will be a corner point. The added anchorPoint is selected.
    3. Click the Convert To Smooth button in the Control Panel. The anchorPoint is converted to Smooth and its handles are auto-extended.
    OR
    3. Press Alt to invoke the convert tool. ClickDrag the just-added AnchorPoint to drag out both its handles to the length desired. If SmartGuides is on, the handles will snap to the segment.
    If a segment is straight and has no extended handles, clicking the segment with the Pen tool adds a corner AnchorPoint with no handles extended.
    If a segment is straight and has either of its handles extended, clicking the segment with the Pen tool adds a Smooth AnchorPoint with both handles extended.
    JET

  • Is there a way to make a smart "playlist" of specific books in my iTunes library, and copy ONLY THOSE books to an iOS device? I own an iPad and an iPhone but I want different books on different devices.

    Is there a way to make a smart "playlist" of specific books in my iTunes library, and copy ONLY THOSE books to an iOS device? I own an iPad and an iPhone but I want different books on each different device. When I've tried this, the iOS devices don't seem to respond.

    There is no playlist for iBooks, butther eis nothing to preent you from choosing to download specific titles from itunes, or syncing just specific titles to an individual device.

  • Is there a way to make all page margins the same?

    I've exported a book file from indesign. Since the pages were in a book-type spread, the odd and even pages have different margins. The odd page has the bigger margin on the left, while the even has the bigger margin on the right.  Is there any way to make these identical after the fact. I can't go back and redo the indesign file.

    Thanks, there are 382 pages. Can't do them one by one.  And I purposely made the margins different in indesign, to give people more space in the middle.  The margins are as follows:
    But when I try to reverse the inside outside on one page of the spread, just reverse them, so the dimensions are the SAME, all the text and photos move.

  • Is there a way to make sure my MBP doesn't use a particular resolution or ?

    This may be a stupid question. I am hooking my MBP to my lcd tv. When I first connected the television, my tv displayed the message "mode not supported". Having played a little at this I simply went to my display preferences and looked at what resolution was running to my tv. (I have my display preferences in the toolbar) It was running 1920x1080 at 60Hz and right above that there was another 1920x1080 at 60Hz so I clicked on that and my external display lit right up. (Turns out the second resolution's refresh rate is actually 59.9Hz) So no problem right? Well I use this set up as sort of a media center so I like to run my MBP with its lid closed. When I close the lid, and rewake the MBP, my television gives me the message "mode not supported". So there is a signal but the tv can't display it. This leads me to believe that when I close the lid on my MBP it decides to run at the 60Hz as opposed to the functional 59.9Hz. The problem is I can't see the display to change the resolution or refresh rate. Is there a way to make sure my MBP doesn't use a particular resolution or refresh rate? I have tried changing it before I close the lid. I have tried it in mirrored display mode. Nothing works so far. Please Help!

    Not really. In the Displays preferences you can only check the option to show supported resolutions, but that only will be present with another display connected (I believe.) On laptops it isn't an option, obviously, but it may be present once you connect an external display.
    You might try using the shareware utility SwitchResX - VersionTracker or MacUpdate.

  • In contacts there is the possibility to add a new event, as the birthdays, but they do not appear in iCal. Is there any way to make that possible? It is normal to have a person with his birthday, anniversary and others key dates you want to link to him.

    In contacts there is the possibility to add a new event, as the birthdays, but they do not appear in iCal. Is there any way to make that possible? It is normal to have a person with his birthday, anniversary and others key dates you want to link to such person, but the only one shows up is the birthday. How to be able to show all those dates linked to people in the agenda in the iCal?
    Thanks

    Hi,
    I sugggest you try my application, Dates to iCal. It is shareware with a 2 week trial period.
    Dates to iCal 2 is a replacement for Apple's birthday calendar for iCal. It has a range of features to allow the user to choose what, and what not, to sync to iCal from Address Book.
    As well as automatically syncing birthday dates from Address Book, Dates to iCal 2 can sync anniversary and custom dates. It can set up to five alarms for each date in iCal and can also set different alarms for birthdays and anniversaries. It allows the option of only syncing from one Address Book group. This application also allows for the titles of the events sent to iCal to be modified to the user's preference.
    Best wishes
    John M
    As I sell software on my site and ask for donations, the Apple Support Communities Use Agreement requires that I state that I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • Is there any way to make the sent folder in mail list emails "to" instead of  "from"

    Is there any way to make the sent folder in mail list emails in the "to" order instead of  "from".

    Sure open Sent folder.
    Just above first message is an icon titled Sort By Date followed by a downward pointing arrow.
    Click on the arrow and select "To" from the list.
    Allan

  • Is there any way to make Mail open next message?

    Is there any way to make Mail open the next message on the inbox automatically after deleting, forwarding o saving a message?
    I mean, is there any way to, after reading a message, going to the next or previous message without double clicking the main inbox window?
    I used (on windows) to read mail on outlook, or even on entourage for mac, and after I read a message, even if I deleted it, forward it, replied it, or even saving it on a folder, automatically the program (outlook, entourage, hotmail, etc) opened the next message on the inbox, but I am not able to find any way to make Mail do that.
    Is there a way to it? Or should I provide suggestions to Apple?
    By the way, no meant to prefer microsoft for this, I just think this is a cool feature for reading several messages one after another without going back to the main inbox page and double clicking the message to read...
    Thanks for any help

    Down-arrow, Return. Return opens the selected message. I read through hundreds of messages without ever touching the mouse. Once you get used to the keystrokes, Mail is extremely efficient.

  • I share a photo stream with a family member. Is there a way to make it so we have separate photo stream but still use the same apple id?

    i share a photo stream with a family member. Is there a way to make it so we have separate photo stream but still use the same apple id?

    You'll want a separate iCloud account for each user in addition to the main Apple ID used for purchases.
    Let's say you have a family of four (husband, wife, and two children). Here is what you will need:
    Main Apple ID for shared purchases in Tunes (everybody will be using this)
    iCloud (Apple ID) account for husband
    iCloud (Apple ID) account for wife
    iCloud (Apple ID) account for child 1
    iCloud (Apple ID) account for child 2
    Yes, you can have both an Apple ID and iCloud account setup on the same device. On each iOS device, setup the main Apple ID account for the following services:
    iCloud (Photo Stream and Backup are the only items selected here).
    Music Home Sharing
    Video Home Sharing
    Photo Stream
    Additionally, on each iOS device, add a new iCloud account (Under Mail, Contacts, Calendar) that is unique to each user for the following services:
    Mail (if using @me.com)
    Contacts
    Calendars
    Reminders
    Bookmarks
    Notes
    Find My iPhone
    Messages
    Find Friends
    FaceTime
    On your individual Macs (or Mac accounts), use the main Apple ID in iTunes. Then, use the unique iCloud account in/for iCloud.
    Now that everbody is using separate iCloud accounts for your contacts, calendars, and other things, it will be all be kept separate.
    The only thing that is now 'shared' would be iTunes content (apps and other purchases), backups via iCloud (if enabled), and Photo Stream (if enabled).

  • Iphone 4S newly updated to iOS8, keeps popping up window notifying me of things I turned off (cell usage, location, etc) to preserve battery life.  Is there any way to make them stop telling me every time I use the affected apps?

    I have finally taken the step of updating my iPhone 4S to iOS8 after learning the hard way last update to wait for the bugs to be worked out.  I was horrified to find that the battery was being sucked dry in no time at all.  After finding a great article posted elsewhere on the apple forums, I went through and turned off all unnecessary options involving the use of cell data, location services and background refreshing.  My battery life has thankfully returned to what it was before the update.  
    HOWEVER, now, every time I open an app for which I turned these things off, the window informing me of that pops up.   I am getting really irritated by this as I made all of these decisions deliberately and am well aware that I may need to go back and change them in order to activate certain capabilities when I want to use them.  I had done the same thing with the last iOS, but there were far fewer that needed to be turned off and the battery life seemed to be less affected by those that I left on so it was not the annoyance it has become now.
    Is there any way to make the phone stop presenting me with these idiot messages?   TIA

    Sorry no, there isn't a way to turn off those reminders.
    You can send Apple a feedback here  http://www.apple.com/feedback/

  • Is there a way to make Illustrator save in the background, like Photoshop?

    Out of Photoshop, InDesign and Illustrator, Illustrator is definitely the one I have most problems working with, due to small UI differences and ways of handling things
    Like the fact that you can't drag next to a number to change it, like in Photoshop. Or the fact that I can't sync my settings (it only says "Signed in as:", and when I press Manage Account, I'm taken to my CC files in Safari).
    But most annoying is the fact that whenever I'll save a document in Illustrator, a dialogue box opens letting me know the progress of the saving. Not only does this make me unable to continue working on the document (if the file is large, it takes some time), the app icon starts jumping in the dock if I switch to another program before the box appears.
    So, is there any way to make it save in the background, like in Photoshop? I'm running OS X, with Illustrator version 17.1.0.

    This really frustrates me, small differences between the apps that shouldn't be there.
    I understand you can't change the keyboard shortcuts to be the same/similar, but this is totally different. Let's hope it changes soon.

  • Is there a way to make the colour picker in the toolbar bigger?

    Hi,
    Is there a way to make the colour picker in the toolbar bigger?
    I've been using Illustrator for some time now and find this part of the software to be annoying as I frequently mis-click this tiny area and the switching between foreground and background colour is easily mismanaged and you end up changing the colour of the one you didn't intend and then have to make two clicks to remedy that.
    Do any other users find this to be a badly designed part of the software?
    Also, while I'm here I suggest that when in the colour creation dialogue the 'preview' tick can somehow be switched to on as default.
    I can understand that there are situations where it might be better not to see your colour change in the document in real time, but to have to click this (again very small) tick box again and again feels like bad design.
    ^ both the above are frequent tasks for many users
    Interested to hear if there's any work arounds to fix this.

    Thanks for the tip,
    I do use x and shift x and also / to make a no stroke or no fill. But / is a long way across the keyboard. I guess I could reassign that function to a key that's nearer x.
    I think the real annoying bit is not only the small size of the two overlapping squares, but the fact that they change size depending on which one is selected. So the button that is not selected is encroached by the one that is selected (and overlaps it). This to me seems counter to interface design - ie, make the switch button smaller. Worse still is the no fill / no stroke button; insanely tiny.
    I would gladly redesign this corner of Illustrator for Adobe, and I'm sure quite a few other people would too!

Maybe you are looking for