PowerShell PackageManagement (OneGet) - Install Apps from Command Line  

Page 12 of 14 FirstFirst ... 21011121314 LastLast
  1. Ztruker's Avatar
    Posts : 13,505
    Windows 10 Pro X64 20H4 19042.746
       #110

    Can I go off topic for a bit? How do you get the PS window to open in my user directory c:\users\rrkurtz instead of c:\windows\system32 when running as Administrator. I notice in your screen shot that's how yours is.

    I was able to get the normal Command Prompt to do this by adding /s /k cd %UserProfile% to the end of the Shortcut target in properties.
      My Computers


  2. Posts : 276
    Windows 10 Insider Program, Linux Mint 19, Arcolinux, MX-17
       #111

    Ztruker said:
    A normal install of IrfanView X64 from the IrfanView web site installs and runs okay. Any way to tell if the IrfanView package on Chocolaty is 32 or 64 bit? Seems like either should install.
    Using this command in Powershell ISE: "choco install irfanview" (w/o quotes) I got this:
    PowerShell PackageManagement (OneGet) - Install Apps from Command Line-irvanfiew.png

    Rich
      My Computer

  3. Kari's Avatar
    Posts : 17,434
    Windows 10 Pro
    Thread Starter
       #112

    Ztruker said:
    Can I go off topic for a bit? How do you get the PS window to open in my user directory c:\users\rrkurtz instead of c:\windows\system32 when running as Administrator. I notice in your screen shot that's how yours is.

    I was able to get the normal Command Prompt to do this by adding /s /k cd %UserProfile% to the end of the Shortcut target in properties.
    I don't run it elevated, just normal user mode. You can use PS PackageManagement in normal user mode, too, using
    -Scope CurrentUser switch with Set-Executionpolicy Unrestricted (or AllSigned / RemoteSigned) cmdlet (tut step 3.1):

    PowerShell PackageManagement (OneGet) - Install Apps from Command Line-2016_07_03_21_59_021.png

    This means that I can run PS in normal user mode for PS PackageManagement.
      My Computer

  4. Ztruker's Avatar
    Posts : 13,505
    Windows 10 Pro X64 20H4 19042.746
       #113

    Thanks Kari, that works great though I don't see how that is any better than running elevated.
      My Computers

  5. Kari's Avatar
    Posts : 17,434
    Windows 10 Pro
    Thread Starter
       #114

    Ztruker said:
    Thanks Kari, that works great though I don't see how that is any better than running elevated.
    I am editing and finishing a video at this very moment, thanks to your previous post and an idea it gave to me. Please give me two hours or so until I have finished this project and posted the video :)

    Sneak peek:
    PowerShell PackageManagement (OneGet) - Install Apps from Command Line-2016_07_04_17_02_101.png
      My Computer

  6. Wynona's Avatar
    Posts : 27,957
    Windows 10 2404 Build 19042.867
       #115

    Waiting . . . you have one hour and 11 minutes to go!

    Seriously, thanks, Kari. I will most definitely watch this one and bookmark it.
      My Computer

  7. Kari's Avatar
    Posts : 17,434
    Windows 10 Pro
    Thread Starter
       #116

    Wynona, you now me. One hour my time is 2 to 4 hours your time...
      My Computer

  8. Wynona's Avatar
    Posts : 27,957
    Windows 10 2404 Build 19042.867
       #117

    Kari said:
    Wynona, you now me. One hour my time is 2 to 4 hours your time...
    I can wait, Kari. And yeah, if you say something's gonna be done, we know that the gremlins known as Murphy's Law will somehow reach out and grab you.

    I'm sending StarFerret to take care of your infestation. Just be sure to send her home when she finishes, please.
      My Computer

  9. Kari's Avatar
    Posts : 17,434
    Windows 10 Pro
    Thread Starter
       #118
      My Computer

  10. Ztruker's Avatar
    Posts : 13,505
    Windows 10 Pro X64 20H4 19042.746
       #119

    Looking at it now. Hard to read most of the time. Great when you zoom in though.

    I don't get the same results with normal and elevated ISE though.

    Normal
    PowerShell PackageManagement (OneGet) - Install Apps from Command Line-psiseprofnorm.jpg

    Elevated

    PowerShell PackageManagement (OneGet) - Install Apps from Command Line-psiseprofelev.jpg
      My Computers


 
Page 12 of 14 FirstFirst ... 21011121314 LastLast

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 05:36.
Find Us




Windows 10 Forums