Need User input pop-up in powershell when its run as a background process of an Application

Hi,
I have created a powershell script which requires two parameters to be passed onto it for getting executed. This script is called by an application and runs it in background (no console /  window). During this process the application is unable to complete
the execution of the script due to the missing user inputs (no popup comes for entering parameters by even after using read-host/[system.console]::Read()). 
The powershell.exe process can only be seen in task manager.
Is there a way in which my script will create a pop up and ask for the parameter values?
Thanks,
Sushruta Banerjee

Hi,
I have created a powershell script which requires two parameters to be passed onto it for getting executed. This script is called by an application and runs it in background (no console /  window). During this process the application is unable to complete
the execution of the script due to the missing user inputs (no popup comes for entering parameters by even after using read-host/[system.console]::Read()). 
The powershell.exe process can only be seen in task manager.
Is there a way in which my script will create a pop up and ask for the parameter values?
Thanks,
Sushruta Banerjee
Note that a process that runs with hidden windows will have all of its child process windows hidden. Any popup you add to the script will behidden.  There is nothing you can do about that.  This is by design.
¯\_(ツ)_/¯

Similar Messages

  • When running the workflow background process for drop shipment order, sale order line's status gets automtically closed instead of awaiting shipping

    Hello friends,
    I am created a drop shipment order with all the setups done . now i have booked the sale order as source type external. but when i run the workflow background process , after completing the report when i check the sale order line status it changes to "closed" instead of "awaiting shipping".
    Plz guide me if i have missed something in the setups.
    thanks,
    Sachin

    Hi Sachin,
    pls check the below notes from MOS
    Drop Ship Sales Order Cycle In Order Management (Doc ID 749139.1)
    Vision Demo - How To Create A Drop Ship Sales Order/Purchase Order (Doc ID 1060343.1)
    Thanks
    -Arif.

  • Always pop-up  error mesage when i run the cd-rom program

    Always pop-up  error mesage when i run the cd-rom program - Macromedia Projector發生問題,必須關閉,謹此致歉

    You need to disable "Autoplay" for your CD drive. In the Control Panel under Hardware.

  • How to stop a process chain when its running?

    Dear Experts,
    How to stop a process chain when its running? is it that a chain can be stoppend when we open an info package of that chain ?
    Thank you,
    Raj

    Hi,
    Goto the main menu process chain --> choose the remove from the Schudule...
    Regards
    sathis
    I hope it helps to u... please assign the points

  • How to restore system RAM memory when i run DI batch job process

    How to restore system RAM memory when i run DI batch job process
    I use SAP-B12005SP53 and i develop with Business Partner Object

    HI ALL
    TAKE CARE: Nothing was working in VB6, but in .NET it sets the default value !
    from help of VS.
    When you assign Nothing to an object variable, it no longer refers to any object instance. If the variable had previously referred to an instance, setting it to Nothing does not terminate the instance itself. The instance is terminated, and the memory and system resources associated with it are released, only after the garbage collector (GC) detects that there are no active references remaining.
    Garbage Collector distroyes the objects at the end of the sub of function, not in the loop.
    So use local variables when you loading the 7000 items. For me working fine and i do not have a memory problems. I am loading 50000 items with prices from EDI file, and memory usage stops at 120MB.
    1st solution  create a sub or a function to populate the data, and run this for every items by as single rutin,
      sub x
        Dim obj As New Object()
            Try
    ... put here your update code
            Catch ex As Exception
            Finally
                GC.Collect()
            End Try
      end sub
    This free up the memory when Garbage
    2nd solution: use inner loop definition
      sub x
    Try
                Do While True
                    Dim obj As New Object()
                Loop
            Catch ex As Exception
            Finally
                GC.Collect()
            End Try
      end sub
    This free up the memory inside the loop.
    I recommend to use Friend Class keyword for your addon declaration and do not use modules.
    Modules and shared classes will be free up the memory when your program terminates execution.
    For more information see MSDN help http://msdn.microsoft.com/en-us/library/7ee5a7s1(VS.80).aspx
    and http://msdn.microsoft.com/en-us/library/0x9tb07z(VS.80).aspx
    Regards,
    J
    Edited by: János Nagy on Oct 15, 2009 2:17 PM

  • HT4623 how can i update my 1st gen ipad when its running at 5.1, i do the update scan and it just says ipad is up to date? why will it not update to 7.1???

    how can i update my 1st gen ipad when its running at 5.1, i do the update scan and it just says ipad is up to date? why will it not update to 7.1???

    iPad 1's can only be updated to IOS 5.1.1. The iPad 1 doesn't have the processing power to handle any higher.

  • I am looking for a way to automate index creation using Adobe Reader Pro without having to use the screen user interface, as the indexing has to be run by a batch process.

    I am looking for a way to automate index creation using Adobe Reader Pro without having to use the screen user interface, as the indexing has to be run by a batch process.

    [discussion moved to Creating, Editing & Exporting PDFs forum.]

  • How to display pop up in foreground when report is executing in background

    Hi All,
    The requirement is:
    My report is executing in background and I have to display a pop-up to end user in foreground.
    Is there any method to do this.
    it is urgent,
    Reward points will be awarded to correct answers.
    Thanks,
    Vishal.

    Thanks frnds,
    ok can we go in this way......I need to display the pop up when the "program -> execute in background" button is clicked or F9 is pressed....just at that time....later the report can be executed in back ground.
    Is there a way to do so......just displaying a pop up when one entry in menu bar ic clicked?
    Vishal.

  • Problem In report output display when i run in the background

    Hi,
    In a classical report i am printing around 17 fields  the width of the report out put is around 800 characters.
    If i run  the report in the  fore ground it running perfectly. But the thing is when i give large selection is it GETTING ' TIMED OUT ' as it is running more than an Hour.
    so i wanted to run it in the back ground to avoid TIME OUT problems.
    But when i run in the backgroud   i am not getting  full  out put in the SPOOL request(SIZE of the report output may causing the problem) .
    Pls come up with some solutions
    Thanks in advance

    Try increasing the spool length..
    Refer this link for doing so.
    Spool List output display > 255 char when the rpt is run in Background
    Thanks
    mahesh

  • How to check running instance of a program, when its run by a job

    Hello,
    I have a report run by a job, twice a day. The thing is, the second run cannot start, if the first one hasn't finished (quite possible).
    So i would like in my report to check if an instance of this report is already running.
    I tried the solutions supplied by Rich Heilman with:
    'ENQUEUE_E_TRDIR' and 'ENQUEUE_ESINDX'
    i also tried locking an entry in table TVARV
    One more thing is, if the program stops with an error, or doesnt finish execution, it shouldnt need any manual reseting - i though of making an entry in tavrv and correcting it at the end of execution, but that would be the issue.
    Thanks for any help,
    Edited by: Michal Szczerbowski on Nov 17, 2008 3:08 PM

    Instead of locking the entry and leaving it unattented incase of error, you may give a try to implement solution like:
    1. Get the all running processes on the server by executing the FM TH_WPINFO.
    2. Check the Exporting table WPLIST with:
    WP_ITYPE = 4
    WP_REPORT = program_name_for_job
    If you find any entry in the table WPLIST that gives you the running instance of the that program in the job.
    Regards,
    Naimesh Patel

  • My iTunes stops working when i try to sync my iphone. Specifically when its in any back up process. help?

    I already uninstalled a reinstalled itunes, i restored my iphone and lost everything and it still has gotten me no where. Im using a pc with windows 7 by the way

    Hi. Uninstall iTunes and download it again. The current version iTunes 10 is more reliable.

  • Taking user input in a PL/SQL block

    Can someone tell me if it is possible to to take user input from within a PL/SQL loop? I mean I want that for each iteration in the loop, the program first take user input, and then based on that input, it perform specific operations. Then it repeats this process for each subsequent iteration of loop.
    If it is not possible in PL/SQL, is there any other alternative?
    Thanks.

    > I'm afraid I have no idea how to get the server to ask questions of the user,
    especially when it essentially operates in a kind of batch mode.
    Yep. To expand a tad on what Hans mentioned here.
    To accept input, the process needs to be able to read from this input device. Let's make it a keyboard. The PL/SQL process needs to read keyboard input.
    The keyboard is attached to a PC 1000km away in a branch office. The Oracle server process, running on a server in the data centre, executes this PL/SQL code.
    So now this PL/SQL process has to automagically hack its way across the network. It needs to remove the keyboard plug from that client PC. It somehow must get that keyboard rewired, across that 1000km, into the server platform at the data centre. And only then can the Oracle server process running that PL/SQL code read from that keyboard input device and accept user input.
    It is important, when developing in Oracle, to grasp just what client-server is and how it works. And not to confuse something like a SQL*Plus Client Process (submitting PL/SQL code) with the Oracle Server Process (parsing and executing that submitted PL/SQL code).

  • Ignore user input until dialog (no command period allowed)

    OK. Hopefully this will finish up my AS app bundle. I need the script to continue its process until the dialog is displayed. When the guest user does ({"."} using command down), the script just ends. Because it doesn't show up as error 128, the cancel script can't run to finish the process.
    I have found that during a dialog, the user can't do ({"."} using command down) to prematurely quit the script. But then the script has to wait and can't continue processes with the dialog displayed... can it?
    Basically, I need a way to keep the user from canceling the script before the dialog. It would also be nice to allow the user to be able to let the script run in the background while they did tasks like check eMail, etc.
    Is there a way to ignore user input until the dialog?

    here is what my script will be like when complete:
    the app is installed into the login items via an script placed in iCal. When the user logs in, a process happens and the desktop image of the day is loaded. The dialog says "Please confirm that your desktop image is Thursday's image." If they confirm, then the script ends. If they select "is not" then the script repeats, it goes through the process again, installing the necessary files or replacing the old ones and doing other processes.
    I have the master app that I can open up once a week and insert the necessary files into the contents folder. Then I make a quick little adjustment to the script, and set it in the server folder.
    I have two real problems with the app: 1. I don't want user interference during the process to mess with the installation, 2. I don't want command period to stop the app from taking its course.
    Another side issue is that I can access the enclosed files to set the desktop but can't find a way to copy the files to the correct folder. I couldn't find a way to use automator as a folder and an app. I would rather do it in AppleScript where I'm a little more familiar.

  • Create a timer to make a variable for pause length from user input

    I have an external task that varies in time based on the machine I am using, yet once that value is determined, it will remain the same while on that machine. I need to have an Applescript perform a task based on that time variable. This a repeating loop script that will need user input for the first iteration of the loop. How can I get this time variable to use in the script? I would like it to be something like this.
    --script clicks OK button in the app (this is already scripted)
    --timer started
    --script throws up a dialog instructing user to click OK when hardware specific task is completed (has a cancel option to cancel script as well)
    --when dialog box OK is clicked a time value is determined between the timer started and the dialog OK click
    --time value is now a variable to call for pause between loop cycles, requiring no more user input (except an overall script cancel if needed)
    is this possible?
    PowerBook G4 Titanium 500 Mhz   Mac OS X (10.4.2)  

    Yeah, it's possible. There are probably a couple ways to do it. Here's a quick one that uses a unique hardware ID. Properties persist between runs, reboots, etc. but not compiles.
    click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">property delay_time : missing value
    property last_mac : missing value
    set test_mac to primary Ethernet address of (system info)
    if test_mac is last_mac and delay_time is not missing value then
    -- performclickhandler()
    delay delay_time
    else
    set start_time to (current date)
    -- performclickhandler()
    display dialog "Click OK to set the timer..."
    set delay_time to (current date) - start_time
    set last_mac to test_mac
    end if
    -- rest of your script
    </pre>

  • Captivate 6 How to validate user input without using keyboard shortcuts

    I've been using Adobe Captivate 6 for about 4 months now.  Completely new to the program.  The number one function of Captivate for me will to create many software simulations for verifiable training.  This means that I will be utilizing the training and assessment modes A LOT.  I have run into many hurdles throughout the process, but one of my biggies right now is this:
    In the training and assessment modes, I have times where the user must input data such as an address or number.  In the actual software they will be utilizing it is not always required to use TAB or ENTER in order to move to the next field.  In some instances, it will be necessary to actually click into a field after entering data.  My problem is that it seems as if Captivate will not allow this,  as a keyboard shortcut is automatically entered even if a TAB or ENTER is not required after input.  I assume this is so that the inputted information can be verified.  If you decide you do not want to use a keyboard shortcut to validate the inputted information, you must have a submit button.  Is there any way to change this??  All I want is for the user to enter information and then click into another field WITHOUT having to press ENTER, TAB, or hit a submit button.  Is this even possible if you need user input to be validated??  Any ideas or suggestions would be much appreciated!!

    Hello,
    A while ago I explained the work flow I’m using often in that case, only for the last field you need to have either a shortcut or a submit button AND the sequence has to be imposed. The idea is that you make the Submit button for the first field transparent, delete the  ‘Submit’ text and put it over the second field. So if the user clicks on the second field, he also submits the value of the first field.
    Here is the blog post I’m referring to:
    http://lilybiri.posterous.com/one-submit-button-for-multiple-text-entry-box
    Although it was written for previous versions, the idea will still be functional.
    Lilybiri

Maybe you are looking for

  • Trying to add a movie to an iPod makes the computer shutdown?

    This is my first time posting here, so please bear with me if I do something incorrectly. One of my new movies refuses to be added to my iPod. When I try to add it, the progress bar gets most of the way there before freezing. Then my computer complet

  • Yosemite Slows Imac

    Yosemite has slowed down my iMac and I would like to go back to factory settings. How can I do this without losing all my documents?  I also don't have a copy of my old operating system. My iMac is an early 2009 and was running 10.6.8 (2gb ram)

  • Year end closing procedure

    Hi I want to end the fiscal year 2008-2009 of my client and start 2009-2010. I dont know the procedure for doing it. Please suggest me procedure for it. Thanks

  • Freeing up space from time machine backup folder

    can i just throw away some of the middle folders in time machines backup folder to free up some space? Each of those folders says its holding multiple gigs of data, which they are obviously not. Throwing one of them away won't incite time machine to

  • Is it possible that apple can factory unlock my phone?

    Is it possible that apple can factory unlock my phone? i bought it last year in america and i am currently in South Africa and it's just gathering dust.