Created
December 6, 2013 15:10
-
-
Save fenneh/7826215 to your computer and use it in GitHub Desktop.
Dan PS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$computers = Read-Host 'List computers to run against seperated by commas' | |
foreach($computer in $computers){ | |
$width = (Get-WmiObject -ComputerName $computer -Class Win32_Processor).addresswidth | |
If($width -eq 64) Then | |
{psexec \\$computer msiexec /i \\Ukpddc01\netlogon\NSClient++\NSCP-0.4.1.102-x64.msi /quiet /norestart /log \\$computer\c$\NSClientInstall.log} | |
Else($width -eq 32) Then | |
{psexec \\$computer msiexec /i \\Ukpddc01\netlogon\NSClient++\NSCP-0.4.1.102-Win32.msi /quiet /norestart/log \\$computer\c$\NSClientInstall.log} | |
End If | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment