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

Page 6 of 14 FirstFirst ... 45678 ... LastLast
  1. badrobot's Avatar
    Posts : 4,313
    Win 10 Pro x64
       11 Apr 2015 #50

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


    I was following the tut and chocolatey is suppose to come later in the process. I will give it another go tonight. Will let you know. Thanks!
      My ComputerSystem Spec

  2. Kari's Avatar
    Posts : 10,702
    Windows 10 Pro
       11 Apr 2015 #51

    badrobot said: View Post
    I was following the tut and chocolatey is suppose to come later in the process. I will give it another go tonight. Will let you know. Thanks!
    That must mean that I have explained things in tutorial in wrong order, will fix it tonight when finished with what I am doing now. Thanks for pointing that out.

    On a lighter note, I know you have been thinking that I am perfect but as you can see, although as perfect as possible for a human being, even I make mistakes . This now is the fifth mistake I have made, the four first ones being my ex-wives.
      My ComputerSystem Spec

  3. badrobot's Avatar
    Posts : 4,313
    Win 10 Pro x64
       11 Apr 2015 #52

    Hahaha... good one Kari....
    I never made that mistake with my wife. It took us 8 years before we decided to get married despite her parents' disapproval. I had plenty of time to decide.

    Anyway, I got stuck in Part 2. Chocolatey is Part 3.
      My ComputerSystem Spec

  4. Kari's Avatar
    Posts : 10,702
    Windows 10 Pro
       11 Apr 2015 #53

    badrobot said: View Post
    Hahaha... good one Kari....
    It was not a joke...

    badrobot said: View Post
    It took us 8 years before we decided to get married despite her parents' disapproval. I had plenty of time to decide.
    I was 22 when I divorced first time, our kids being then 2 years the older son and 6 months the younger son. You have to start early to learn how to do it!

    badrobot said: View Post
    Anyway, I got stuck in Part 2. Chocolatey is Part 3.
    I'm from Finland, we count as 1, 3, 2, 4, 5, and so on.
      My ComputerSystem Spec

  5. Kari's Avatar
    Posts : 10,702
    Windows 10 Pro
       12 Apr 2015 #54

    @badrobot, once more thanks for pointing out an error in the tutorial. I have now edited the step 2.3 by adding a note:

    2.3) Some cmdlets can be used without parameters or piping their output to other cmdlets. For instance to check which repositories we have available we can use the OneGet cmdlet Get-Packagesource (#2 in screenshot above in step 2.2).
    Note   Note
    Notice that as you have not installed any package providers yet, the cmdlet Get-Packagesource might give an error if given now. Install the provider Chocolatey as told in Part Three before using this cmdlet.
    Anyway, did you get OneGet working?
      My ComputerSystem Spec

  6. badrobot's Avatar
    Posts : 4,313
    Win 10 Pro x64
       12 Apr 2015 #55

    Kari said: View Post
    @badrobot, once more thanks for pointing out an error in the tutorial. I have now edited the step 2.3 by adding a note:



    Anyway, did you get OneGet working?

    You're welcome Kari. I didn't get the chance to do it again yet. But I will definitely get back to it. Will let you know.

    EDIT
    @Kari ,

    Yeah, I got OneGet to work but some packages were not found like putty, handbrake, etc. But basically I got it to work. I just need to find the right packages that work.

    Click image for larger version. 

Name:	OneGet01.jpg 
Views:	431 
Size:	678.2 KB 
ID:	16635

    Thanks for your assistance. Much appreciated.
    Thanks for the rep, too!
    Last edited by badrobot; 12 Apr 2015 at 14:26.
      My ComputerSystem Spec


  7. Posts : 256
    Windows 10 & Windows 10 Insider Program, Linux Mint 18, Zorin, elementary OS
       15 Apr 2015 #56

    Kari, Need Help Again


    Click image for larger version. 

Name:	Find-Package error.PNG 
Views:	348 
Size:	62.2 KB 
ID:	16828If I try Find-Package with 10-12 packages I get the following as indicated in attachment. If I reduce the number of package items to 7-8, no errors and then I can install those items. Any work arounds or am I stuck with just installing fewer packages at a time?

    Rich
      My ComputerSystem Spec

  8. Kari's Avatar
    Posts : 10,702
    Windows 10 Pro
       15 Apr 2015 #57

    That is a very rare error message, I have ever only seen it before when trying to use PowerShell to run a set of commands on several virtual machines running on a VMWare vSphere ESXi host. I will set up a test machine later tonight and test this further.

    Only help I can find from the Internet involves some coding. I will take this up in the next OneGet community meeting, in the mean time please do not install more than 8 apps at the time, if this amount can be installed without an error as you mentioned.
      My ComputerSystem Spec

  9. Kari's Avatar
    Posts : 10,702
    Windows 10 Pro
       15 Apr 2015 #58

    @Rich, I tested it on a test rig. I get the Find-Package and Install-Package commands to work with 10 apps, the 11th causes the WaitHandler error.

    Click image for larger version. 

Name:	2015-04-15_21h28_18.png 
Views:	405 
Size:	162.8 KB 
ID:	16829
      My ComputerSystem Spec


  10. Posts : 256
    Windows 10 & Windows 10 Insider Program, Linux Mint 18, Zorin, elementary OS
       16 Apr 2015 #59

    Kari said: View Post
    @Rich, I tested it on a test rig. I get the Find-Package and Install-Package commands to work with 10 apps, the 11th causes the WaitHandler error.

    Click image for larger version. 

Name:	2015-04-15_21h28_18.png 
Views:	405 
Size:	162.8 KB 
ID:	16829
    Thanks very much for your testing and help. I'll keep watch for further developments.

    Rich
      My ComputerSystem Spec


 
Page 6 of 14 FirstFirst ... 45678 ... 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 05:43.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums