PowerShell Installing software remotely on Multiple Computers

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

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

  • @TheGroundzero313
    @TheGroundzero313 Месяц назад +1

    Brilliant! Thank you for sharing

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

    Thank you! I've been beating my head against the wall trying to get .exe's to install. &cmd.exe did the trick

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

    Thank you for your video friend, I am using your script for some software installations and works wonderful

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

    This is very helpful. Thank you so much for sharing your knowledge.

  • @MrKbackia
    @MrKbackia 2 месяца назад

    Working expected.. thank you!

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

    Very useful bro... Thank You so much........🙂🙂🙂

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

    Thank you very much for sharing the video..

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

    Very useful video, thanks for sharing.

  • @ibteshamahmed8085
    @ibteshamahmed8085 5 месяцев назад

    I am doing this work on virtualbox. Using one DC and two member servers off that DC.
    The installation files are being copied but it is stuck here for a long time the Second Part 1 : Installing software on SVR1 (my 1st member server name).

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

    Very Helpful. Thank you

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

    Helpful, thank you mate 😃

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

    Thank you very much .... very helpful!

  • @user-xc6nv7fs1m
    @user-xc6nv7fs1m 5 месяцев назад

    hey it shows error the network name cannot be found. can u help me ?

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

    Really very Useful.. Thank you :)

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

    Thank you so much

  • @SunilBaniyal
    @SunilBaniyal 5 месяцев назад

    I am unable to execute this script.
    Can anyone help me please ?

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

    while installing i am getting this error on event log : Exception code: 0xc0000005
    Fault offset: 0x0000ab67
    Faulting process id: 0x1c90

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

    if we add parameter like success or failed installation output like CSV file how to do that. please add this lines so it would be useful.

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

    Great Stuff! How can we check if the software is already installed before trying to install?

  • @SunilBaniyal
    @SunilBaniyal 5 месяцев назад +1

    The files are copied from server to users computer successfully but the process is stuck in in Installation.
    should we provide any administrator username and password in the script?
    can anyone help me please.

    • @SwapnilInfotech
      @SwapnilInfotech  5 месяцев назад

      If filea are getting copied on remote computers then communication is working properly and there is no blockage. Now you have to concentrate on file path that you have provided and silent installation parameter. Please vhrck this tjings and let me know kf this works.

    • @SunilBaniyal
      @SunilBaniyal 5 месяцев назад

      @@SwapnilInfotech I have tried many Mathilda but still unsolvable

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

    Thanks, But In my case I don't have servers but want to install software's on multiple laptops is it possible? maybe my i can share my folders if i execute , whether it will works or guide

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

      Yes this Script is not limited to OS, you can install software on laptop as well. Just take care of silent switch. If you are installing software on Workgroup computer then there is another video on my channel. You can refer it and let me know

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

    Hi folks! I starting to learn PowerShell and understand it. Does anyone could tell me why is put "c$" in $Test = Test-Path -path "\\$Server\c$\Temp\"? c is the C: drive, but the $ what does that mean? If there's a link to a documentation that you can suggest me, it'd be great. I appreciate it. Thanks in advance!!!

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

      As you can see in that line of command we are testing whether Temp folder is present in C drive or not so when we are accessing file shares remotely then the folder must be shared and then testing path will be like "\\$Server\Temp" but I'm our current script condition we have not shared Temp folder on any computer. So we are using the default windows share that we use as "c$" hence the path you see is like that. When you have administrator rights on any computer and you want to access it's files remotely and you have not shared any file or folder on it then you can use \\servername\c$ or d$ or any drive letter with $ sign to access it completely. Please let me know if you still have doubts. Thank you

    • @loseandeat5691
      @loseandeat5691 5 месяцев назад

      Can you help me please

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

    hi Swapnil, i have errors when running this script. Can you help to troubleshooting?

    • @SwapnilInfotech
      @SwapnilInfotech  9 месяцев назад

      Can you provide information what error you are getting while running the script? And script file that you are using.

    • @hlo512
      @hlo512 9 месяцев назад

      Hi Swapnil, I watched other clip you made for private networks and it resolved the issues. Thank you very much 👍. So this clip only works for public domain network, correct? Also, I found that the user account used to execute the ps script have be the same across all the targets too.

  • @NIH-tn6ps
    @NIH-tn6ps Год назад +1

    when i use this script it's only copy files to multiple computers but not installing

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

      May I know which software you are trying to install ? Please post the script that you are using. Suggestion as below.
      1- Match software name in script including file extension
      2- Installer path needs to be mentioned correctly in script.
      3- Silent parameters should be working and properly mentioned

    • @NIH-tn6ps
      @NIH-tn6ps Год назад

      @@SwapnilInfotech I'm trying to install security software FireEye current version with json file.

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

    how do you use it if you only allowed to install on the remote admin account. I have admin name and password of the remote computer.

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

    Hello. For example my LivePCs.txt and my Softwares at in a USB Drive and not in Local C Drive. What do i replace with the "C:?" To the actual USB Drive?

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

      Yes Drive letter should match to repository and path should be complete.

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

    How can I uninstall on multiple computers?

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

      You can watch below video for uninstalling software and let me know if you have any doubt
      ruclips.net/video/978myp7AD5s/видео.html

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

    What would i need to do, if the software I am installing requires I type an IP (for updates purposes) and then finish the installation, how or where do i specify in the script to put that ip during the installation. ?

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

      How you perform the software installation silently on local computer for that application, you have to use the same command in script. Please let me know if there is any other requirement

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

    Hi, getting error Invoke-Command : Cannot convert 'System.Object[]' to the type 'System.Management.Automation.ScriptBlock' required by
    parameter 'ScriptBlock'. Specified method is not supported.

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

      Did you changed anything in script apart from path ? Please put your script as it is here so I can have a look

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

      @@SwapnilInfotech Can you please give me your mail id

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

    Hey,
    I followed your script, and I imported your script into SCCM and run your script through SCCM, it says script executed successfully, but when I go to the other VM’s I don’t see the installed softwares…I need help…Please 😭

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

      Did you try this script from PowerShell directly on a few remote computers before importing it to SCCM ?

  • @anilfad6137
    @anilfad6137 4 месяца назад +1

    Can i get the script

    • @SwapnilInfotech
      @SwapnilInfotech  4 месяца назад

      Script is already given in Video description. Please check and let me if any issue.

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

    Salut. Soit un programme .exe que je dois copier dans c:\temp puis l'exécuter. Je souhaite un script powershell qui accomplira ces 2 fonctions. Merci pour ta contribution

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

      Oui, ce script vous aidera à accomplir votre tâche. Ce script copiera le fichier d'installation sur l'ordinateur distant et l'exécutera. il vous suffit de spécifier correctement le paramètre d'installation silencieuse dans le script. Faites-moi savoir si vous avez besoin d'aide à ce sujet. Merci.

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

    I'm getting an error even though the script seems to be working. It's telling me "The term 'Else' is not recognized a the name of a cmdlet.

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

      Can you confirm which OS you are running the script. You may face issue in Newer OS (2016/2019) depends upon how you paste the code in powershell. Try Ctrl+V or Right Mouse Button Click on the Address Bar > Edit > Paste. Let me know if any query

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

      @@SwapnilInfotech I figured out the problem. I had put a write-host in between the if and the else statements

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

    how to reset the local admin password remotely of all cleints

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

      You can watch this Video to see the process of changing password for multiple client computer.
      ruclips.net/video/-HiqbiR9lnM/видео.html

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

      @@SwapnilInfotech thanks, but i don't have old password

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

      If you don't have an old Password then you cannot reset your password remotely. You can reset the password by replacing utilman.exe to CMD.exe. you can follow the steps below and let me know if this works for you.
      bit.ly/3gyLSP3

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

    Just confused where you declared $Server since $Servers is declared but $Server isnt declared. So how powershell is understanding that each name in the .txt file is to be considered as $Server

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

      In this example, the $Servers array is created and initialized with the string values computer name. The first time the Foreach statement runs, it sets the $Server variable equal to the first item in $Servers("MUM-SRV01"). Then, it uses the further command to run on it. The next time through the loop, $Server is set to "MUM-SRV02", and so on. After the Foreach loop, PowerShell exits the loop. So $Servers and $Server is my value you can change to anything like "$ABC = Get-Content ***" and "foreach ($XYZ in $ABC)". IMP thing is what you declare during get-content should be there in ForEach loop () to help PowerShell to get values from it.

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

    Hi friend, this video is very useful, but i am facing one issue. I can able to create folder and copy exe/msi to the remote computer folder. All these pc in domain.
    I tried to install Adobe dc reader and putty. From the task manager i can see exe is running, but nothing happen, means not installing. Do i need to enable any port etc. i am executing from administrator and admin.
    Windows remote manager service is running and in firewall in bound policy for windows remote management i enabled. Can you please help me here.

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

      Can you check window installer event and see if it is showing any error or information

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

      @@SwapnilInfotech no logged was saved eith this installation. I installed a tera copy, that log snd previous log is available

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

      As you are able to copy setup file to remote computers, can you try below command one by one to check which one works.
      Please make sure to change file path and silent switch according to software and let me know if any issue. Or else paste your script here and I'll verify it.
      ======================================
      First Command
      ======================================
      Invoke-Command -ComputerName server01 -ScriptBlock {
      c:\software\installer.exe /silent
      }
      ======================================
      Second Command
      ======================================
      Invoke-Command -ComputerName server01 -ScriptBlock {
      Start-Process c:\software\installer.exe -ArgumentList '/silent' -Wait
      }
      ======================================

    • @Tarek-lz7ru
      @Tarek-lz7ru 2 года назад

      ​@@SwapnilInfotech
      HI Swapnil,
      The second command worked for me, the .exe file is running in background but not installing.
      I've waited for like 30 minutes the program just hanging in the background.

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

    Please send me the sample file of "LivePCs.txt"

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

      It is just a plain text file which have computer name without space and every computer name in new line

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

    hi sir, Could anyone explain how to add servers here?

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

      You have to add servers in text file

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

      Your reply is appreciated sir, but I don't know how to add, I have some virtual VMs which need installation and how should I add those VMs as Servers, Kindly help, Thankyou.

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

      @@praveenkumar94948 First thing if your VM's are in domain and you have admin rights on the machine then you can use this script but suppose your VM's are in "Workgroup" then you have to use my other script which i explained in ruclips.net/video/QT4u74JWbOM/видео.html. if this query is only how to add machine in text file then You have to create a file in notepad and all the computer in it as list and add that file path in first line ----$Servers = Get-content "C:\Scripts\livePCs.txt"------

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

    can we use it for work stations?

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

      You can check and let me know if you are facing any issue. Domain environment same policies are applied on all computers but in workstation environment policies differ from computer to computer. Try and let me know.

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

    #systemadministration with #powershell #scripting

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

    Do you take online class for Powershell?

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

      I don't take Powershell classes but if you have any specific requirements for any script let me know I'll try my best

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

      @@SwapnilInfotech no i am into python but they way you explained, i took hold to learn Powershell. Since i was always thought of learning from college time.

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

    This is very helpful. Thank you so much for sharing your knowledge.