PowerShell installation and pop-up dialog box capability

Posted on 2009-02-09
Last Modified: 2012-05-06
I'm interested in starting to use PowerShell to install my database on users PC.  I've got a few questions:
1) Can PowerShell display a dialog box?  If so how would I do the following:
       a) Display dialog asking user "Do you want to install the database", with Yes/No buttons
       b) Code to process Yes or No response

2) Can my users run my PowerShell script by clicking on a shortcut?  If so, what do I need for shortcut properties (e.g., c:\winnt\powershell  j:\commonstorage\myscript.scr).

3) Can all my users run PowerShell without installation of any additional software?  They all have Windows XT SP2.

Question by:schmir1
    LVL 70

    Expert Comment

    by:Chris Dent

    2. Yes... but only if it's a batch file that calls a PowerShell file. And only then if you've set the local execution policy to allow scripts to run (default setting does not).

    3. No.

    SP3 includes PowerShell, before that you would have to install PowerShell on each client.

    You'd be better creating an MSI for this wouldn't you? Then Publish (rather than assign it) using Group Policy?


    Author Comment

    My installations needs are simple and I wouldn't want to invest the time in something complicated.  I went down that road once and now that installer is obsolete.  I also have other scripting needs so I thought this would be a good time to get into a new script language.  Maybe I'll just use VBscript for now (unless I find it has the same issues as PowerShell).
    LVL 70

    Accepted Solution


    VbScript should be good, even if it's a bit short on the interactive side unless you're digging into HTA. At least it's available by default :)


    Author Comment

    thanks, I'm now using VBScript and it's coming along

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Are you one of those front-line IT Service Desk staff fielding calls, replying to emails, all-the-while working to resolve end-user technological nightmares? I am! That's why I have put together this brief overview of tools and techniques I use in o…
    "Migrate" an SMTP relay receive connector to a new server using info from an old server.
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now