PowerShell PackageManagement (OneGet) - Install Apps from Command Line  

Page 5 of 14 FirstFirst ... 34567 ... LastLast

  1. Posts : 1,557
    W10 32 bit, XUbuntu 18.xx 64 bit
       #40

    Nevermind, trying it out now
      My Computer


  2. Posts : 17,661
    Windows 10 Pro
    Thread Starter
       #41

    We are posting simultaneously. Just to be sure, did you see the previous post of mine with the essentials explained: PowerShell OneGet - Install Apps from Command Line - Page 4 - Windows 10 Forums
      My Computer


  3. Posts : 1,557
    W10 32 bit, XUbuntu 18.xx 64 bit
       #42

    Kari said:
    We are posting simultaneously. Just to be sure, did you see the previous post of mine with the essentials explained: PowerShell OneGet - Install Apps from Command Line - Page 4 - Windows 10 Forums

    It is working, that why I said nevermind. Thank you for your help and the tip about the ipmo path. I already had netframework installed.
      My Computer


  4. Posts : 17,661
    Windows 10 Pro
    Thread Starter
       #43

    Thanks to you I got interested and tested this in Windows 7 :).
      My Computer


  5. Posts : 276
    Windows 10 Insider Program, Linux Mint 19, Arcolinux, MX-17
       #44

    How to use .ps1 script file for unattended installs


    # Chocolatey
    iex ((new-object net.webclient).DownloadString('http://bit.ly/psChocInstall'))

    # install applications
    cinst audacity
    cinst ccleaner
    cinst cdburnerxp
    cinst classic-shell
    cinst defraggler
    cinst everything
    cinst firefox
    cinst google-chrome-x64
    cinst lastpass
    cinst malwarebytes
    cinst picasa
    cinst revouninstallerpro
    cinst skype
    cinst speccy
    cinst teamviewer
    cinst thunderbird
    cinst treesizefree
    cinst utorrent
    cinst vlc
    cinst windirstat
    PowerShell PackageManagement (OneGet) - Install Apps from Command Line-pwrshell.png
    Above script file works but I have to answer each install as indicated in the Powershell attachment. How can I avoid this (hopefully in easy fashion)

    Rich
      My Computer


  6. Posts : 17,661
    Windows 10 Pro
    Thread Starter
       #45

    The short answer: use OneGet in elevated PowerShell instead of Chocolatey and put all apps you want in one command in your script.

    See this short video about OneGet installing multiple apps without none whatsoever user interaction, using a few apps from your list as example. (Sorry, I was two hours without Internet connection, had to use a mobile connection so the DL in the video is painfully slow):

      My Computer


  7. Posts : 276
    Windows 10 Insider Program, Linux Mint 19, Arcolinux, MX-17
       #46

    Kari said:
    The short answer: use OneGet in elevated PowerShell instead of Chocolatey and put all apps you want in one command in your script.

    See this short video about OneGet installing multiple apps without none whatsoever user interaction, using a few apps from your list as example. (Sorry, I was two hours without Internet connection, had to use a mobile connection so the DL in the video is painfully slow):

    Kari,
    Thanks so much for your quick reply - no apology necessary. I appreciate your many informative posts, especially your tutorials. Guess I was trying to be too "fancy" when just a (powerful) one-liner was all that was needed.

    Rich
      My Computer


  8. Posts : 5,286
    Win 10 Pro x64
       #47

    Got the time to do this last night but earlier in the process, I bumped into a road block. Same result for both 10049 and leaked 10056. I was logged in on MS account on 10049 but that didn't help.

    PowerShell PackageManagement (OneGet) - Install Apps from Command Line-ps1g.jpg
      My Computer


  9. Posts : 17,661
    Windows 10 Pro
    Thread Starter
       #48

    badrobot said:
    Got the time to do this last night but earlier in the process, I bumped into a road block. Same result for both 10049 and leaked 10056. I was logged in on MS account on 10049 but that didn't help.
    You have not installed Chocolatey repositories?

    Do this, list numbers referring to screenshot below:
    1. Check that you have Unrestricted script execution policy, cmdlet is Get-Executionpolicy. If not use Set-Executionpolicy Unrestricted to change it if working on an elevated PS, or Set-Executionpolicy Unrestricted -Scope CurrentUser if working with non-elevated PS
    2. Add Chocolatey provider with Get-PackageProvider Chocolatey, accept it by clicking Yes in dialog which will be shown
    3. Check that Chocolatey and NuGet providers were added (adding Chocolatey automatically adds NuGet)
    4. Now you should be able to see all package sources

    PowerShell PackageManagement (OneGet) - Install Apps from Command Line-2015-04-11_18h17_47.png
      My Computer


  10. Posts : 803
    10 Pro Preview x64
       #49

    Or just this and run as Admin..

    Code:
    # Install Programs
    Get-Packageprovider Chocolatey
    Install-Package ` 
    emet, `
    skype, `
    7zip, `
    AdobeReader, `
    notepadplusplus, `
    virtualbox, `
    treesizefree, `
    ccleaner, `
    speccy, `
    google-chrome-x64 ` -force
      My Computer


 

Tutorial Categories

PowerShell PackageManagement (OneGet) - Install Apps from Command Line Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 20:14.
Find Us




Windows 10 Forums