Install all *.exe in folder

Install all exe in mentioned folder:

<# We need to run this set-execution policy before run the script #>

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
---
<# Sript starts here, save it as "any-name.ps1" and move to mention folder and double click on it #>

$dir = (Get-Item -Path ".\" -Verbose).FullName
Foreach($item in (ls $dir *.msu -Name))
{
    echo $item
    $item = $dir + "\" + $item
    wusa $item /quiet /norestart | Out-Null

Comments

Popular posts from this blog

altiris software key

Service Principal Names (SPNs) SetSPN Syntax (Setspn.exe)

Troubleshooting Netlogon Error Codes