PowerShell PackageManagement (OneGet) - Install Apps from Command Line  

Page 2 of 14 FirstFirst 123412 ... LastLast

  1. Posts : 17,661
    Windows 10 Pro
    Thread Starter

    For those interested:

    Meeting starts at 10 AM PST, 1 PM EST, 19:00 (7 PM) CET, 18:00 (6 PM) UTC.
      My Computer

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

    Tutorial now fully updated as the Build 9926 gave OneGet a "facelift", there's no need to install an experimental build of OneGet anymore, it will now work in PowerShell Out-of-the-Box.

    An introduction video added at the beginning of the tutorial:

      My Computer

  3. Posts : 10,711
    Windows 11 Workstation x64

    Great work Kari
      My Computers

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

    Thanks John :).
      My Computer

  5. Posts : 16,502
    Windows 11 Pro X64

    Great job on the tutorial Kari, one of the best ones I have seen
      My Computers

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

    Thanks Dude.

    I wholeheartedly recommend to find an hour free time and check out the PS OneGet. I ran a test install yesterday to create a master image to deploy to my machines instead of installing. OneGet is a dot over the I which makes it not only fast but also quite interesting :).

    What I did:
    • On the reference computer, install Windows 10 Build 9926
    • When installation reaches the final Create User account phase, press CTRL + SHIFT + F3 instead of creating the initial user account, to reboot to Audit Mode
    • In Audit Mode, customize the desktop, set colors, icon positions and spacing, folder options, IE favorites and stuff to be copied to Default User Profile
    • Run OneGet in PowerShell to install all software with one command, silently in the background, without repeated "Next" and "Would you also like this and that" dialogs and unnecessary clicks
    • Sysprep with Generalize switch (makes hardware independent image which can be restored to any physical or virtual machine) and COPYPROFILE=TRUE in answer file
    • Capture the image
    • Use the image whenever you need to install, to get a highly customized and personalized virgin system with no user accounts but all software installed

    Instead of the usual 20 to 30 minutes install time I needed about 70 minutes but it's worth of it.
      My Computer

  7. Posts : 17,661
    Windows 10 Pro
    Thread Starter

    If you are interested in the development of the PS OneGet, join today the PS OneGet usual Friday online meeting. Starting at 10 AM PST, 7 PM (19:00) CET.

    Check @PSOneGet about 10 minutes before the meeting for the link to join.

      My Computer

  8. Posts : 17,661
    Windows 10 Pro
    Thread Starter

    OK, here's the meeting link:

    (Garret Serack is the head of the OneGet team at Microsoft.)

    I'm already waiting there...

    PowerShell PackageManagement (OneGet) - Install Apps from Command Line-2015-02-13_18h54_25.png
      My Computer

  9. Posts : 803
    10 Pro Preview x64

    Kari said:
    Please let me know about each and every typo you'll find.
    Well you did ask and I like copy-paste :) Should be a "y" not a ":"
    Kari said:
    3.2) With unrestricted rights to run scripts we can now add the Chocolatey repository with command Get-Packageprovider Chocolate:
    Section 3.3 extra \
    Kari said:
    Find-Package | Export-CliXML \D:\Test.xml
    I was wondering if you had tried updates also. I'm not in a position to (as I only started playing with this today so there aren't any) but this looks like a problem How to automatically keep all locally installed Chocolatey Packages up to date? - Stack Overflow

    I tried uninstalling and hit an issue. Uninstall-Package works (says it does) but in the example of Adobe Reader it doesn't actually uninstall the program. According to here https://github.com/chocolatey/chocol...mandsUninstall among other things uninstall
    Requires a chocolateyUninstall.ps1 in the package itself, of which many of the currently available packages do not have.
    It might be worth noting in the tutorial (unless I've made an error) that Uninstall-Package might not actually uninstall a package in all cases. Hopefully this will improve in time. At the moment it is a pretty excellent way of installing stuff after a clean install though, thanks. I'm going to use it.

    Attachment 13275
    Last edited by adamf; 25 Feb 2015 at 14:09.
      My Computer

  10. Posts : 17,661
    Windows 10 Pro
    Thread Starter

    Thanks @Adam, typos fixed :).

    The update cmdlet, will it be included or not, it's still open. Garret, the head of OneGet team at MS asked opinions in last OneGet community meeting Friday two weeks ago, screenshot of the meeting recording shows my opinion:

    PowerShell PackageManagement (OneGet) - Install Apps from Command Line-2015-02-25_21h28_26.png

    The uninstall function will get fixed, it is under development as we speak. I will ask about it on next community meeting day after tomorrow and update tutorial accordingly.

      My Computer


  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 12:00.
Find Us

Windows 10 Forums