Page 5 of 14 FirstFirst ... 34567 ... LastLast
  1.    26 Mar 2015 #40
    Join Date : Oct 2014
    Posts : 1,552
    W7 32 bit, Linux Mint Xfce 18 64 bit

    Nevermind, trying it out now
      My ComputerSystem Spec
  2.    26 Mar 2015 #41
    Join Date : Oct 2013
    A Finnish expat in Germany
    Posts : 12,657
    Windows 10 Pro
    Thread Starter

    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.    26 Mar 2015 #42
    Join Date : Oct 2014
    Posts : 1,552
    W7 32 bit, Linux Mint Xfce 18 64 bit

    Quote Originally Posted by Kari 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.    26 Mar 2015 #43
    Join Date : Oct 2013
    A Finnish expat in Germany
    Posts : 12,657
    Windows 10 Pro
    Thread Starter

    Thanks to you I got interested and tested this in Windows 7 .
      My ComputerSystem Spec
  5.    09 Apr 2015 #44
    Join Date : Oct 2014
    Mid-Hudson Valley, NYS
    Posts : 269
    Windows 10 Insider Program, Linux Mint 18.2, LinuxLite, Ubuntu 17.10

    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:	271 
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.    09 Apr 2015 #45
    Join Date : Oct 2013
    A Finnish expat in Germany
    Posts : 12,657
    Windows 10 Pro
    Thread Starter

    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.    09 Apr 2015 #46
    Join Date : Oct 2014
    Mid-Hudson Valley, NYS
    Posts : 269
    Windows 10 Insider Program, Linux Mint 18.2, LinuxLite, Ubuntu 17.10

    Quote Originally Posted by Kari 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.    11 Apr 2015 #47
    Join Date : Nov 2013
    Toronto
    Posts : 4,612
    Win 10 Pro x64

    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:	111 
Size:	281.4 KB 
ID:	16506
      My ComputerSystem Spec
  9.    11 Apr 2015 #48
    Join Date : Oct 2013
    A Finnish expat in Germany
    Posts : 12,657
    Windows 10 Pro
    Thread Starter

    Quote Originally Posted by badrobot 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:	535 
Size:	160.1 KB 
ID:	16513
      My ComputerSystem Spec
  10.    11 Apr 2015 #49
    Join Date : Nov 2013
    Posts : 804
    10 Pro Preview x64

    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


Similar Threads
Tutorial Category
How to connect/disconnect to a VPN using the command line?
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...
Network and Sharing
What powershell command will let me rename my network?
: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
Network and Sharing
Opening windows store apps from command line
How do I open windows store apps like Hulu from the command prompt?
Software and Apps
Can restore of Win 7 be started from command line ?
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...
Installation and Upgrade
setting default apps from command line?
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,...
Software and Apps
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 09:54.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums