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).
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.
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.
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
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
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!!!
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
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.
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
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?
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. ?
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
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.
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 😭
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
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.
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
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
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
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.
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.
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 } ======================================
@@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.
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.
@@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"------
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.
@@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.
Brilliant! Thank you for sharing
Thank you! I've been beating my head against the wall trying to get .exe's to install. &cmd.exe did the trick
Thank you for your video friend, I am using your script for some software installations and works wonderful
This is very helpful. Thank you so much for sharing your knowledge.
Glad it was helpful!
Working expected.. thank you!
Very useful bro... Thank You so much........🙂🙂🙂
Thank you very much for sharing the video..
Very useful video, thanks for sharing.
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).
Very Helpful. Thank you
Helpful, thank you mate 😃
Thank you very much .... very helpful!
hey it shows error the network name cannot be found. can u help me ?
Really very Useful.. Thank you :)
You are welcome 😊
Thank you so much
I am unable to execute this script.
Can anyone help me please ?
while installing i am getting this error on event log : Exception code: 0xc0000005
Fault offset: 0x0000ab67
Faulting process id: 0x1c90
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.
Great Stuff! How can we check if the software is already installed before trying to install?
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.
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.
@@SwapnilInfotech I have tried many Mathilda but still unsolvable
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
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
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!!!
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
Can you help me please
hi Swapnil, i have errors when running this script. Can you help to troubleshooting?
Can you provide information what error you are getting while running the script? And script file that you are using.
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.
when i use this script it's only copy files to multiple computers but not installing
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
@@SwapnilInfotech I'm trying to install security software FireEye current version with json file.
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.
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?
Yes Drive letter should match to repository and path should be complete.
How can I uninstall on multiple computers?
You can watch below video for uninstalling software and let me know if you have any doubt
ruclips.net/video/978myp7AD5s/видео.html
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. ?
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
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.
Did you changed anything in script apart from path ? Please put your script as it is here so I can have a look
@@SwapnilInfotech Can you please give me your mail id
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 😭
Did you try this script from PowerShell directly on a few remote computers before importing it to SCCM ?
Can i get the script
Script is already given in Video description. Please check and let me if any issue.
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
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.
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.
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
@@SwapnilInfotech I figured out the problem. I had put a write-host in between the if and the else statements
how to reset the local admin password remotely of all cleints
You can watch this Video to see the process of changing password for multiple client computer.
ruclips.net/video/-HiqbiR9lnM/видео.html
@@SwapnilInfotech thanks, but i don't have old password
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
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
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.
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.
Can you check window installer event and see if it is showing any error or information
@@SwapnilInfotech no logged was saved eith this installation. I installed a tera copy, that log snd previous log is available
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
}
======================================
@@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.
Please send me the sample file of "LivePCs.txt"
It is just a plain text file which have computer name without space and every computer name in new line
hi sir, Could anyone explain how to add servers here?
You have to add servers in text file
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.
@@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"------
can we use it for work stations?
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.
#systemadministration with #powershell #scripting
Do you take online class for Powershell?
I don't take Powershell classes but if you have any specific requirements for any script let me know I'll try my best
@@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.
This is very helpful. Thank you so much for sharing your knowledge.