PowerShell PackageManagement (OneGet) - Install Apps from Command Line  

Page 13 of 14 FirstFirst ... 311121314 LastLast

  1. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
       #120

    Got it, I didn't do the Set-Location. Added that and it works perfectly now. They both now wend up at

    PS C:\Users\rrkurtz\PowerShellScripts>

    I don't want them stored on OneDrive yet. Maybe in the future.
      My Computers


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

    When it works with ISE and if you want the same to done to normal PowerShell, just copy the Microsoft.PowerShellISE_profile.ps1 file to same folder, rename the copy to Microsoft.PowerShell_profile.ps1 (same name without ISE).
      My Computer


  3. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
       #122

    Love it, many thanks Keri.

    Now something for you to think about. Can Powershell communicate with windbg? If so I can see ways to automate a lot more of the basic debugging for BSODs in Windows.
      My Computers


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

    First, did you notice that the profile will be used also when you open PS session in Command Prompt:
    PowerShell PackageManagement (OneGet) - Install Apps from Command Line-2016_07_07_07_44_271.png

    Here some reading about PS and WinDBG:

      My Computer


  5. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
       #124

    Oh wow!!!!! You're like the magic Genie of the Lamp Kari.

    Looks like I have a lot of reading and playing ahead of me.

    Thanks again.
      My Computers


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

    Sadly everything I am able to find about PS & WinDBG is quite old. All those links I posted are from 2007.
      My Computer


  7. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
       #126

    I hope to spend some time today to see if I can get it working. I'll post back with results.
      My Computers


  8. Posts : 112
    Win 7 Ultimate
       #127

    Should there not be some kind of UI for this just the way various Linux package managers do?
      My Computer


  9. Posts : 17,661
    Windows 10 Pro
    Thread Starter
       #128

    That is a good question to ask Microsoft.
      My Computer


  10. Posts : 2
    Windows 10 Professional
       #129

    Powershell Question


    Hello!

    I am following the video guides for creating Windows 10 images and ran into a small issue using the powershell commands in part 1 -> Windows 10 Install Image - Part 1: Customize Image in Audit Mode - YouTube

    I created the example VM and set everything up as the video shows then tried to install the software automatically as shown in the video. I ran into a couple of issues.

    First off... I will say that I am using Windows 10 build 14393, that is the version of the media I downloaded from Microsoft today (Jan 5, 2017.)

    I had no issue getting the Chocolatey provider. The next step says to run this command:

    Install-Package Paint.net, Opera, GoogleChrome, Firefox, vlc, 7zip, Notepadplusplus, Malwarebytes, Teamviewer, Steam, Rufus.install, Skype -Force

    When I tried running that command, I immediately got an error indicating that too many packages '73' were listed, the max number of packages was '63'. I still don't know what that means, but I assume it meant the command was too long. So I truncated it down by removing the last two entries and ran this command instead:

    Install-Package Paint.net, Opera, GoogleChrome, Firefox, vlc, 7zip, Notepadplusplus, Malwarebytes, Teamviewer, Steam -Force

    This seemed to work. It installed 10 packages, versus 12 that the video showed. About half way through installing (after displaying package firefox was installed) I received another error saying that a required file was not found. I noticed that it had completed software installation up through firefox, so I again truncated the command to only install the packages that it failed to install on the first run.

    Install-Package vlc, 7zip, Notepadplusplus, Malwarebytes, Teamviewer, Steam, Rufus.install, Skype -Force

    The command executed with no issues. So then I ran the command with the last two packages I omitted when I encountered my first error.

    Install-Package Rufus.install, Skype -Force

    This command also executed without issue.

    However, I noticed some things were different when I went to verify software was installed.

    These applications seemed to install correctly:

    Paint.net
    Opera
    7zip
    Notepad++
    Malwarebytes
    Teamviewer
    Steam

    These applications are no where to be found, and also do not show up in Program and Features as installed programs:

    Google Chrome
    Firefox
    vlc
    Rufus

    I tried to run the command, with just the packages that were missing in powershell. It displays that the command executed properly, but I still don't see these programs as being installed in my VM.

    Is there something I am missing? I planned on reading through the entire powershell tutorial in the next couple of days but thought it might be a simple error I'm overlooking.

    Thank you in advance,

    Ron
      My Computer


 

Tutorial Categories

PowerShell PackageManagement (OneGet) - Install Apps from Command Line Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  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 11:25.
Find Us




Windows 10 Forums