Is it possible to create a package that will install a program and then run a PS command?

Hi,
I need to deploy a language pack to my clients and then run a PS command to have the new language selected. Do I need to create a program for this? Is it possible to just run a PS command and prompt for a reboot? The command is
Set-WinUILanguageOverride  en-US
Thank you

That works fine using the "Run another program first option". Alternatively, you can call all of your commands from a single batch file which is initiated in the program. Or you can have your PowerShell script call everything directly -- it is
a script after all. Or you can use the PowerShell Deployment Toolkit as suggestion by Jeff.
If you are simply calling a single PowerShell script, the command-line is the same that you would use anywhere:
PowerShell -ExecutionPolicy Bypass -NoLogo -NoProfile -Command "English.ps1"
With the your Package containing English.ps1 of course.
Jason | http://blog.configmgrftw.com | @jasonsandys

Similar Messages

  • How do I create a package that will install a shell script?

    From various sources I have made this shell script which creates a hidden admin user, starts ard and sshd.
    I would like to make this a package which will run on a machine on first boot. (I'm using deploystudio to deploy ML)
    It creates a hidden user called testuser1 with the password of password1
    [code]# Create user record in directory services
    dscl . -create /Users/testuser1
    dscl . -create /Users/testuser1 RealName "testuser1"
    dscl . -create /Users/testuser1 UniqueID 401
    dscl . -create /Users/testuser1 PrimaryGroupID 20
    dscl . -create /Users/testuser1 UserShell /bin/bash
    dscl . -passwd /Users/testuser1 "password1"
    # Set up a hidden home folder
    dscl . -create /Users/testuser1 NFSHomeDirectory /var/testuser1
    cp -R /System/Library/User\ Template/English.lproj /var/testuser1
    chown -R testuser1:staff /var/testuser1
    # Grant admin & ARD rights
    dseditgroup -o edit -t user -a testuser1 admin
    /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/ki ckstart -activate -configure -access -on -users testuser1 -privs -all -restart -agent
    # Tell loginwindow not to show the user
    defaults write /Library/Preferences/com.apple.loginwindow Hide500Users -bool TRUE
    # Alternate: defaults write /Library/Preferences/com.apple.loginwindow HiddenUsersList -array testuser1
    # start remote login ssh
    systemsetup -setremotelogin on[/code]
    I'm using package maker but it keeps failing. If I add it from somewhere like my Documents dir it says it will give my username the permissions instead of root. If I add it from / and make root the owner packagemaker errors probably because my user doesn't have the rights to it. I want it to copy somewhere then maybe have another script that copies to the same location and does an rm to remove the previous script so no admin details are left on the machine

    Basicilly I want to roll out an image that will work with all models of macs which are comaptible with Mountain Lion. To do so I'm using deploystudio with the installESD.dmg as the image. This way it will install the relevant drivers for each model of mac. So the image should work whether it's a mac pro tower/mac mini/macbook.
    Upon completetion deploystudio lets you run packages so I would like the script above to be in a package. I don't want it even to copy the script anywhere I would just like it to run the .sh file I've made if thats possible?
    I'm just not sure what steps to take with packagemaker, I've never used it before.
    But yeah the ultimate goal is: upon installation completetion setup hidden admin user that will have ssh and ard access.

  • Is it possible to create a bean that will generate (fill up) applet paramet

    Hi all,
    As a newbie I was asking myself is it possible to create a bean that will fill up applet parameter or directly generate the applet ??
    And I can I create it ?
    I mean : Having a jsp page that make reference to the bean, the bean shall generatehtml applet parameter values.
    Some samples will be welcome or a template.
    Thanks in advance
    Shamann

    Thanks a lot for your reply siv viv,
    I've posted this thread because I'm a little bit disappointed with Applet and jsp according to lot of thread about this subject (it seems that communication between applet and jsp is not easy : bug reported).
    The basic thing i want to do is to create a dynamic Pie Chart as applet or bean so i need to set applet parameter thanks to variables.
    See the http://forums.java.sun.com/thread.jsp?forum=45&thread=80250 this one is putting me in the dark.
    regards
    Shamann

  • With iDVD, how can I create a DVD that auto plays on insert and then loops?

    I want to burn a presentation using idvd which will be played at an exhibition. how do I create a dvd without menu that auto plays upon insert and then loops?
    Thanks
    Message was edited by: Host <to clarify Subject>

    To create a OneStep DVD:
    Connect your DV camcorder to your computer and set the camera to VTR, VCR, or Play mode. Turn on your camcorder if it doesn't turn on automatically.
    Open iDVD and click the OneStep DVD button. (If iDVD opens to a recent project, choose File > OneStep DVD.)
    Insert a recordable DVD disc.
    iDVD rewinds the tape in the video camera and captures the video.
    ------------or-------------
    To burn a OneStep DVD from a folder:
    Choose File > "OneStep DVD from Movie."
    Locate the movie you want to add in the dialog that opens, then click Import.
    Insert a blank DVD disc into the optical drive.
    This kind of disc is sometimes called "kiosk mode" and is a good way to create demos or other presentations that play automatically and require no user interaction.

  • Is it possible to create a script that will replace text?

    I have created a template, and every day I change the text and the image source. Is it possible to make a script that read a file with the new text and the destination of the image and replace it?

    I have created a template, and every day I change the text and the image source. Is it possible to make a script that read a file with the new text and the destination of the image and replace it?

  • Searching for how to create a page that will recreate it self and image uploader!

    Greetings,
    Does any one knows how I could create client side page that would always recreate it self when a new clients to signs up and become a member to my blog site, so they could manage and add friends to their page and upload image to their album? The idea is to have pages added like it is on Facebook, when a member signs up.
    If I server side software is need in order to achieve this goal; what type of server side software do I need for this design? Please contact me if you have any idea.
    I also would like to receive any information on where to find script that will help visitors upload images to my site.
    I have done with other parts of my web design adding this idea is all I need to finish. Your help is immensely appreciated.
    Joplateau.

    You may want to ask in a more generalized forum such as http://forums.adobe.com/community/design_development/webdesign. This one is specifically for Adobe Contribute (which won't do what you want) and is seldom visited. Good luck.

  • Need library that lets me kill Windows programs and then reopen them.

    I have issues with a certain program crashing in remote locations..cough* VzAcess. I want to create a program that tries to ping a website and if that fails then it will kill the program and then re open the program. Everywhere I look line these three libraries come up:
    import org.javagroup.process.ProcessManager;
    import org.javagroup.process.ProcessManagerHolder;
    import org.javagroup.process.JProcess;
    I cannot find anywhere where to get these. Maybe my google skills have diminished. I don't know. If anybody knows of any good and reliable libraries that let me do these things that would be great. Thanks!

    dothedru22 wrote:
    ... Everywhere I look line these three libraries come up:
    import org.javagroup.process.ProcessManager;
    import org.javagroup.process.ProcessManagerHolder;
    import org.javagroup.process.JProcess;
    I cannot find anywhere where to get these. Not sure they do what you expect.
    jsh seems to be an abandoned project; no activity since 2001/2002.

  • OK, I need to be able to have a linked TOC, and also have destinations created in FM10 that will not be lost when I 1. Save the book as a PDF. then 2.  need the PDF to be as small as possible, but without losing my destinations. Anyone know how to do that

    OK, I need to be able to have a linked TOC, and also have destinations created in FM10 that will not be lost when I 1. Save the book as a PDF; then 2. I need the PDF to be as small as possible, but without losing my destinations. Anyone know how to do that??
    I had been saving as a PDF and then reducing the size of the PDF by printing it as a PDF with a degree of image compression. I write manuals with a LOT of screen captures and line art that needs to be clear. So it is a balancing act between image clarity and PDF size. The PDFs on the web need to be smaller - sure you can undertsand.
    Anyway, when I print the PDF again, I lose both my destinations and bookmarks.
    Anyone know of any way to avoid that?

    Control the images by creating a custom PDF Job Options and then selecting it in the PDF Job Options drop-down of the PDF setup dialog box (File > Save as PDF...)
    Create the custom PDF Job Options file with Distiller. If you do not have Distiller, open the Printing Preferences of the Adobe PDF printer. Start with the Smallest File Size Job Options settings and Edit.

  • Is it possible to create a link that I can place on a website to an internet radio stream on iTunes?

    Is it possible to create a link that I can place on a website to an internet radio stream on iTunes?

    Yes, but it WON'T play through the browser. It'll require any visitor who clicks it to have iTunes installed, and it'll open iTunes as soon as they do.

  • Is it possible to create a configuration profile that will install multiple network printers and their associated drivers

    Is it possible to create a configuration profile that will install multiple network printers and their associated drivers?
    I was not able to find profile manager on my employer's installation of 10.6 Server. Is this only a feature of 10.7/10.8 server?

    10.6 server does not have profile manager, profile manager is only available in 10/7 and 10.8 server
    for 10.6 server you'll need to use wgm and server admin
    printer management with 10.6, I recommend you read the relevant server manuals regarding
    print server and user management, printer management

  • Is it possible to create a formula that converts a resource hours into full time units in project server 2010

    Hi
    Is it possible to create a formula that converts a resource available hours into full time equivalent units in project server 2010? Say a resource has 160 available hours for any given month this will translate into 1 FTE for this month. If it is 80 hours
    for that month then it will be 0.5 FTE and so on and so forth.
    Thanks,
    -Maurizio

    Maurizio,
    It's a bit late, but there are two OLAP cubes that can provide you with this information in a pivot table in Project Server 2010.
    "MSP_Portfolio_Analyzer" and "Resource Timephased" contains capacity measures that be used to provide calculated measures when the cube database is generated. You change OLAP cube configuration in "Server Settings -> Database Administration -> OLAP
    Database Management". In either of the aforementioned cubes, use "Calculated Measures" to create two measures:
    Member Name
    MDX Expression
    Available (FTE)
    ([capacity]-[work])/[capacity]
    Work (FTE)
    [Work]/[Capacity]
    These two fields will appear in the pivot table field list as "Values", and when combined with a "Time" column, can give you a picture of FTE usage and availability.
    I prefer the portfolio version since it contains project/assignment data and resource data, letting you see just  how resources are being utilized.
    One thing I have not been able to get around is getting ""Maximum Units" for a resource factored into the measure. A common practice is to allocate more that "100%" to generic resources to represent teams for planning purposes. The OLAP measures will show
    only 0.0 to 1.0 FTE for any resource, even if a resource represents more than one body.
    If you have an SSRS query you could share, I would appreciated it!
    Hope this helps!
    JTC
    JAckson T. Cole, PMP, MCITP

  • Is it possible to create an invoive that keeps a running total in one column and in another column keep total of monies spent from a starting amount of funding?

    Is it possible to create an invoive that keeps a running total in one column and in another column keep total of monies spent from a starting amount of funding?

    Hi Sara,
    Many thanks for your reply.  We just brought Adobe Acrobat XI Pro complete
    with Adobe Forms Central, My manager asked whether I could use the forms
    part to create a summary tracking sheet for all of our contracts.
    Having looked at it I could see how to create a table that in the first
    column deleted costs from a starting fund, and in the last keeps a running
    total of all monies spent.
    I agree, Excel does seem to be much better suited to the task.  I was try
    trying to comply with her request
    Regards,

  • Is it possible to create a script that does this?

    Hey there,
    I can work my way around a Mac pretty well, but as for coding, I'm not as good. Hopefully someone will know how to do what I'm looking for:
    I do a lot of school assignments on my computer, and I've recently utilized an online service that allows me to sync up my files on my computer with their servers (like MobileMe, but not). Anyway, this is great and all, but this service is virtually useless if I'm trying to access a Pages publication via my school's computers which run Windows and, consequently, Microsoft Word 2007. However, they ALSO run Adobe Reader. Is it possible to create a script that, every time I save a Pages publication, automatically creates a PDF export of that same file in the directory where I'm working? Also, when I update the Pages file, it'll automatically update the PDF file?

    Saving a script as a Script, an Application or an Application bundle requires the use of the Script Editor as explained in the System (Finder) help.
    step 1:
    open the script in the Script Editor
    step 2:
    compile it clicking the "Compile" button
    step 3:
    Save the script from the "File > Save" menu:
    To save as "script" select the "script" menu item
    To save as "Application" select the "Application" menu item
    To save as _"Application Bundle"_ select the _"Application Bundle"_ menu item
    The files which I post are saved thru the "Text" menu item which attache the extension name ".applescript" telling that it's an _Applescript's text file._
    All these infos are given in resources pointed by my late messages !
    Now are infos which maybe you will not find in the Apple's resources
    I use the text (.applescript" format because it embeds nothing related to my machine.
    To work from the Scripts menu, my best choice is "Script" which appears to be the fastest one.
    "Application" is slower and sometimes gives odd results on MacIntels.
    "Application Bundle" behaves well on every machines but is slower than "Script".
    Yvan KOENIG (from FRANCE vendredi 29 mai 2009 09:53:21)

  • Can I create a presentation in iPhoto that will combine still slides and video?

    I have just returned from a safari and have a lot of pictures and videos from the trip.  I would like to create a presentation/slide show that will show the slides and also videos in the same slide show and allow me to manually pace the show.  I know how to do this in PowerPoint but would rather use a more natice mac ap and thought it might be possible in iMovie or iPhoto but am not sure exactly what the best way to do this would be.

    and allow me to manually pace the show.  I know how to do this in PowerPoint but would rather use a more natice mac ap and thought it might be possible in iMovie or iPhoto but am not sure exactly what the best way to do this would be.
    If you want a native Mac application for your slideshow you could also try Keynote, the Apple alternative to Powerpoint. It will give you similar presentation options.
    Aperture - if you have it - would allow to trim the videos, allow more fine control over how the audio of the clips will be mixed, and still allow to manually pace the slideshow, but it is expensive and will no longer be developed. But if you have compatible versions of Aperture and iPhoto, simple open your iPhoto Library in Aperture: Aperture 3.3: Using a unified photo library with iPhoto and Aperture

  • I need instructions on how to create a button that will email a pdf form to someone else on a websit

    I NEED ASSISTANCE CREATING A BUTTON THAT WILL EMAIL A PDF FORM FROM A WEBSITE TO WHOEVER THE VIEWER WANTS TO

    Just a bit more info. E-mail can be used, but has potential problems -- often related to the client machine that you have no control over. Use the data submissions (either FDF or XML) rather than the full PDF so you do not have to deal with Reader Rights and the related license issues. The FDF and XML data files are easily imported into the original form so that you see what the client sees. With those aspects in mind, just go ahead and try one. Be aware that you can add form fields using the form tools in the Advanced Editing tools, OR use the forms menu that will take you to Designer. You might want to try both to see the pros and cons. Be sure to keep such a test simple so you are not wasting time on your final form just for testing. I typically create a 1 page form that has all of the possible fields for such a test.

Maybe you are looking for

  • CS5 Crashing consistently

    Hey all ... i have a file i'm trying to work on. I open the document, select the text with the text tool. Deselect it, then change ot the arrow tool and it crashes immediately. Error is repeated every time. Here is the crash log. Any ideas? Process: 

  • Macbook Aluminum connect to Standard CRT Tv

    Hi, I've read some of the postings on here and on other websites. I have an idea of connecting my Aluminum macbook to a CRT TV with the RGB cables because i don't have a fancy plasma tv like everyone else does apparently. I was just wondering, if i b

  • Multiple tcp connections

    I have noticed using resource monitor that Skype.exe periodically opens connections to around 40 different internet addresses. I have not timed it but it happens probably around 3 times an hour. Why? Constantly it keeps connection to 3 adresses and l

  • REFX: display contracts without payment performed

    Hello RE Gurus, I wonder is there any possibility in REFX to display Contracts, which don't have payment for current date yet. For example, I have 3 Commercial lease-out contracts with the same conditions and terms. For the Contract 1 Customer have p

  • Java Standart Edition 6 vs symbian

    I noticed that the nokia n8 has Java Micro Edition, but there is no Java Standart Edition. In all android phones installed Java Standart Edition. For Java Micro Edition is the ability to write only small, minor program. When will be added full suppor