Multiple ways to Install software remotely
Multiple ways to Install Software remotely on Windows - Method 1 Group Policy
Multiple ways to Install Software remotely on Windows - Method 2 Third party softwares
Multiple ways to Install Software remotely on Windows - Method 3 Command line PSEXEC tool
Multiple ways to Install Software remotely on Windows - Method 4 WMI (Windows Management Instrumentation)
Multiple ways to Install Software remotely on Windows - Method 5 PowerShell Remoting
Multiple ways to Install Software remotely on Windows - Method 6 PowerShell DSC (Desired State Configuration)
Multiple ways to Install Software remotely on Windows - Method 7 Copy Portable applications
Multiple ways to Install Software remotely on Windows - Method 8 Task scheduler
WMI - Windows Management Instrumentation is a Windows API, With WMI you can fetch tons and tons of Windows information remotely also you can configure windows remotely, I use it to configure and fetch information remotely with great success. Software such as SCCM is heavily dependent on WMI for inventory, Also with the help of WMI in Group policy you can push policies to certain set computers. Its very handy tool for Windows System Admins.
Before starting operation I have kept all my softwares on shared drive \\AD001\Softwares and it has all the necessary folder permissions assigned (check my another blog Method 1 for the same.). I will be demonstrating Adobe Acrobat reader installation here.
I download Acrobat reader it comes in exe format, For unattended installation you can use below parameters
UNC Path\\Adobeacrobatreader.exe /sPB /rs
More parameters information.
/sAll Silent Mode for product
/sPB Silent Mode with Progress Bar for product
/rs Reboot Suppress
/ps Reboot Prompt Suppress
/ini "PATH" Alternative initialization file
/sl "LANG_ID" Set Language; LANG_ID - Code in decimal digits
/l Enable Error Logging. Log file Bootstrap.log will be generated in temp directory
/msi[Command line] Parameters for MSIEXEC
But instead installing i will go with MSI installer, So I can show you how To extract msi from adobe acrobat reader exe setup. use below command. (no space between -nos_o")
AdbeRdr1010_en_US.exe.exe -nos_o"C:\softwares\Adobe" -nos_ne
Once files are extracted on shared drive you will need to add trusted delegate computer account on Remote computer account in Active Directory, Here I am going to execute programs kept on UNC path from AD002. and my remote server is client001.
Means I will be adding AD002 as a trusted delegate on client001 in AD. Why i am doing this. This steps resolve my UNC path connection issue over WMI, I will be able to successfully authenticate to Share Drive,
Next add CIFS service from the list click apply or ok.
Without above AD step WMI will get access denied for UNC path.
Next step i final action executing WMIC command
wmic /Node:Client001 process call create "msiexec.exe /i \\AD001\Softwares\AdobeAcrobatReader\AcroRead.msi ALLUSERS=1 /qn /norestart"
Above Green marked Node is the computername and the UNC share path where I have kept my applications.
As you can see Method execution is successful, Process ID generated on remote computer and Returnvalue is 0 means there is no error. To verify out msiexec process is executed successfully check installed programs appwiz.cpl. Application must be installed after some time.
Next method i will be covering is Powershell way to install softwares remotely.
Multiple ways to Install Software remotely on Windows - Method 5 PowerShell Remoting
Multiple ways to Install Software remotely on Windows - Method 1 Group Policy
Multiple ways to Install Software remotely on Windows - Method 2 Third party softwares
Multiple ways to Install Software remotely on Windows - Method 3 Command line PSEXEC tool
Multiple ways to Install Software remotely on Windows - Method 4 WMI (Windows Management Instrumentation)
Multiple ways to Install Software remotely on Windows - Method 5 PowerShell Remoting
Multiple ways to Install Software remotely on Windows - Method 6 PowerShell DSC (Desired State Configuration)
Multiple ways to Install Software remotely on Windows - Method 7 Copy Portable applications
Multiple ways to Install Software remotely on Windows - Method 8 Task scheduler
WMI - Windows Management Instrumentation is a Windows API, With WMI you can fetch tons and tons of Windows information remotely also you can configure windows remotely, I use it to configure and fetch information remotely with great success. Software such as SCCM is heavily dependent on WMI for inventory, Also with the help of WMI in Group policy you can push policies to certain set computers. Its very handy tool for Windows System Admins.
Before starting operation I have kept all my softwares on shared drive \\AD001\Softwares and it has all the necessary folder permissions assigned (check my another blog Method 1 for the same.). I will be demonstrating Adobe Acrobat reader installation here.
I download Acrobat reader it comes in exe format, For unattended installation you can use below parameters
UNC Path\\Adobeacrobatreader.exe /sPB /rs
More parameters information.
/sAll Silent Mode for product
/sPB Silent Mode with Progress Bar for product
/rs Reboot Suppress
/ps Reboot Prompt Suppress
/ini "PATH" Alternative initialization file
/sl "LANG_ID" Set Language; LANG_ID - Code in decimal digits
/l Enable Error Logging. Log file Bootstrap.log will be generated in temp directory
/msi[Command line] Parameters for MSIEXEC
But instead installing i will go with MSI installer, So I can show you how To extract msi from adobe acrobat reader exe setup. use below command. (no space between -nos_o")
AdbeRdr1010_en_US.exe.exe -nos_o"C:\softwares\Adobe" -nos_ne
Once files are extracted on shared drive you will need to add trusted delegate computer account on Remote computer account in Active Directory, Here I am going to execute programs kept on UNC path from AD002. and my remote server is client001.
Means I will be adding AD002 as a trusted delegate on client001 in AD. Why i am doing this. This steps resolve my UNC path connection issue over WMI, I will be able to successfully authenticate to Share Drive,
Next add CIFS service from the list click apply or ok.
Without above AD step WMI will get access denied for UNC path.
Next step i final action executing WMIC command
wmic /Node:Client001 process call create "msiexec.exe /i \\AD001\Softwares\AdobeAcrobatReader\AcroRead.msi ALLUSERS=1 /qn /norestart"
Above Green marked Node is the computername and the UNC share path where I have kept my applications.
As you can see Method execution is successful, Process ID generated on remote computer and Returnvalue is 0 means there is no error. To verify out msiexec process is executed successfully check installed programs appwiz.cpl. Application must be installed after some time.
Next method i will be covering is Powershell way to install softwares remotely.
Multiple ways to Install Software remotely on Windows - Method 5 PowerShell Remoting
2 comments:
Action1 is a free remote software installation utility to deploys software without using any specialized software deployment tools and acts similar installing software remotely using wmic, command line tools (such as if you installed software remotely with psexec) or PowerShell scripts to install software silently on multiple computers in your network.
https://www.action1.com/p/Free-Install-Software-Remotely-58.html
Nice article admin thanks for share your article keep share your knowledge i am waiting for your new post check mens puffer jacket tracksuit bottoms kindly review and reply me
Post a Comment