Skip to content

Instantly share code, notes, and snippets.

@fenneh
Created December 6, 2013 15:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fenneh/7826215 to your computer and use it in GitHub Desktop.
Save fenneh/7826215 to your computer and use it in GitHub Desktop.
Dan PS
$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