how to install software using power shell | software installation automation , power shell tutorial

Поделиться
HTML-код
  • Опубликовано: 20 авг 2024

Комментарии • 18

  • @TechSckool_Vijay
    @TechSckool_Vijay  2 года назад +2

    Start-Transcript -Path "C:\automation\logs
    otepad++_install.log" -Force
    # Source file location
    $source = 'objects.githubusercontent.com/github-production-release-asset-2e65be/33014811/631fdd8c-a753-409b-8690-985980874723?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220716%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220716T170410Z&X-Amz-Expires=300&X-Amz-Signature=5e8721c2e835bae03ef51b8c12db36b43f07be99b3cd32df72375245db192cfc&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=33014811&response-content-disposition=attachment%3B%20filename%3Dnpp.8.4.2.Installer.x64.exe&response-content-type=application%2Foctet-stream'
    # Destination to save the file
    $destination_dir = 'c:\automation\installers\'
    $installation_file = "$destination_dir
    otepad++.exe"
    $softwareName='notepad'
    if ( ( Get-ItemProperty HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*).DisplayName -like "$softwareName*"){
    Write-Output "Software is already installed"
    Write-Host "--------> Exiting

  • @bhushanlambade2088
    @bhushanlambade2088 9 месяцев назад +1

    Awesome video

  • @Bi0man007
    @Bi0man007 6 месяцев назад +1

    Great Video. Thank you! 😀

  • @laughoutloud1028
    @laughoutloud1028 2 года назад +1

    hey i love this video
    Thank you

  • @user-qg5ld5pw1l
    @user-qg5ld5pw1l 8 месяцев назад

    Great tutorial, can you add a video on automating via GUI instead of Silent mode if possible?

  • @bhushanlambade2088
    @bhushanlambade2088 9 месяцев назад +1

    It works for me but when i am moving files from one location to another its not working files is not moving

  • @gamingpackage28
    @gamingpackage28 Год назад

    👍👍👍

  • @fullstackraj
    @fullstackraj Год назад +1

    Video is amazing
    But can I install those software also, required to check the terms and conditions and with radio button agree or disagree.
    Will it ask to agree or would not be downloaded.

    • @TechSckool_Vijay
      @TechSckool_Vijay  Год назад

      Hey Raj, It will depend a lot on the developer of software, how it was packaged etc.. It can get trickier if they dont want thr software installation to be automated.

  • @alifurqan1375
    @alifurqan1375 2 года назад

    Can you please make a video about how to UNINSTALL Nvidia Graphics Driver through power shell. Thanks

  • @laughoutloud1028
    @laughoutloud1028 2 года назад +1

    Hello
    can i use this this kind of installation for things like python?

    • @TechSckool_Vijay
      @TechSckool_Vijay  2 года назад

      Definitely, infect python installer gives you more options that you can use. run .exe /? to see different options.

    • @laughoutloud1028
      @laughoutloud1028 2 года назад

      @@TechSckool_Vijay Ok , is there a way you can share the scrip, maybe on email or in the comment section below

    • @TechSckool_Vijay
      @TechSckool_Vijay  2 года назад

      @@laughoutloud1028 I didnt see your message earlier. Updated the script in the pinned comment. please check

  • @Rinishaniyamol
    @Rinishaniyamol Год назад

    How to install a software with license key using powershell?

  • @tonyonyekwelu3352
    @tonyonyekwelu3352 Год назад

    Please how can we add multiple scripts to install more than 1 application. Thank you

    • @TechSckool_Vijay
      @TechSckool_Vijay  Год назад

      Hi Tony, You can encircle the logic in a for loop and iterate it over the list of your software... I have given this as assignment in the end of lecture.