Windows 10: PowerShell PackageManagement (OneGet) - Install Apps from Command Line  

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

  1. Posts : 1,550
    W7 32 bit, Linux Mint Xfce 18 64 bit
       26 Mar 2015 #40

    Nevermind, trying it out now
      My ComputerSystem Spec


  2. Posts : 11,858
    Windows 10 Pro
    Thread Starter
       26 Mar 2015 #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 ComputerSystem Spec


  3. Posts : 1,550
    W7 32 bit, Linux Mint Xfce 18 64 bit
       26 Mar 2015 #42

    Kari said: View Post
    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 ComputerSystem Spec


  4. Posts : 11,858
    Windows 10 Pro
    Thread Starter
       26 Mar 2015 #43

    Thanks to you I got interested and tested this in Windows 7 .
      My ComputerSystem Spec


  5. Posts : 265
    Windows 10 & Windows 10 Insider Program, Linux Mint 18, feren OS, MX16, Xubuntu
       09 Apr 2015 #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
    Click image for larger version. 

Name:	pwrshell.PNG 
Views:	264 
Size:	27.7 KB 
ID:	16411
    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 ComputerSystem Spec


  6. Posts : 11,858
    Windows 10 Pro
    Thread Starter
       09 Apr 2015 #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 ComputerSystem Spec


  7. Posts : 265
    Windows 10 & Windows 10 Insider Program, Linux Mint 18, feren OS, MX16, Xubuntu
       09 Apr 2015 #46

    Kari said: View Post
    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 ComputerSystem Spec


  8. Posts : 4,510
    Win 10 Pro x64
       11 Apr 2015 #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.

    Click image for larger version. 

Name:	PS1G.jpg 
Views:	110 
Size:	281.4 KB 
ID:	16506
      My ComputerSystem Spec


  9. Posts : 11,858
    Windows 10 Pro
    Thread Starter
       11 Apr 2015 #48

    badrobot said: View Post
    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

    Click image for larger version. 

Name:	2015-04-11_18h17_47.png 
Views:	525 
Size:	160.1 KB 
ID:	16513
      My ComputerSystem Spec


  10. Posts : 804
    10 Pro Preview x64
       11 Apr 2015 #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 ComputerSystem Spec


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

Related Threads
Hi all I have several network connections configured. There is one wifi connection which automatically connects to my WLAN, another cable based LAN connection to a NAS which is used for backups and some L2TP connection connections (used...
:really:I have a few PCs connected via a bridge on an ethernet LAN. They communicate with each other, not "the internet". I'd like to rename "Unidentified network" to something more reasonable like "DoNotTreadOnMe" (allegorical.) 76590
How do I open windows store apps like Hulu from the command prompt?
For some unknown reason I cannot any more navigate to Update panel from "Einstellungen" - it is blocked. I have to cancel the "Einstellungen" window by the task manager ! So in this moment I cant go forward nor backward any more: cant...
in win7, after installation and setting the correct file associations, the correct program would start upon double clicking in win10 however, it popups wanting you to set a ?default app?. ive seen this happen for klite codec pack, firefox,...
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 03:53.
Find Us