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

  1. Joined : Oct 2014
    Posts : 1,542
    W7 32 bit, Linux Mint Xfce 18 64 bit
       2015-03-26 #40

    Nevermind, trying it out now
      My System SpecsSystem Spec


  2. Joined : Oct 2013
    A Finnish ex-pat in Germany
    Posts : 9,578
    Windows 10 Pro
       2015-03-26 #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 System SpecsSystem Spec


  3. Joined : Oct 2014
    Posts : 1,542
    W7 32 bit, Linux Mint Xfce 18 64 bit
       2015-03-26 #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 System SpecsSystem Spec


  4. Joined : Oct 2013
    A Finnish ex-pat in Germany
    Posts : 9,578
    Windows 10 Pro
       2015-03-26 #43

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


  5. Joined : Oct 2014
    Mid-Hudson Valley, NYS
    Posts : 255
    Windows 10 & Windows 10 Insider Program, Linux Mint 18
       2015-04-09 #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:	232 
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 System SpecsSystem Spec


  6. Joined : Oct 2013
    A Finnish ex-pat in Germany
    Posts : 9,578
    Windows 10 Pro
       2015-04-09 #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 System SpecsSystem Spec


  7. Joined : Oct 2014
    Mid-Hudson Valley, NYS
    Posts : 255
    Windows 10 & Windows 10 Insider Program, Linux Mint 18
       2015-04-09 #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 System SpecsSystem Spec


  8. Joined : Nov 2013
    Toronto
    Posts : 4,289
    Win 10 Pro x64
       2015-04-11 #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:	90 
Size:	281.4 KB 
ID:	16506
      My System SpecsSystem Spec


  9. Joined : Oct 2013
    A Finnish ex-pat in Germany
    Posts : 9,578
    Windows 10 Pro
       2015-04-11 #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:	466 
Size:	160.1 KB 
ID:	16513
      My System SpecsSystem Spec


  10. Joined : Nov 2013
    Posts : 804
    10 Pro Preview x64
       2015-04-11 #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 System SpecsSystem 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 Setup
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:14.
Find Us
Twitter Facebook Google+



Windows 10 Forums