-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-choco-malwarebytes-and-avast.ps1
64 lines (33 loc) · 1.3 KB
/
install-choco-malwarebytes-and-avast.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Install stuff remotely on choco boxes that are servers
import-module ActiveDirectory
$Computers = Get-ADComputer -Filter {OperatingSystem -Like "Windows Server*"} | Select-Object -ExpandProperty Name
Invoke-Command -ComputerName $Computers -ScriptBlock {
choco install avastfreeantivirus -y | Out-File -FilePath C:\Windows\Temp\choco-avast.txt
if ($?) {
Write-Output "$Env:COMPUTERNAME Avast - Successful"
}
else {
Write-Output "$Env:COMPUTERNAME Avast - Failed"
}
choco install malwarebytes --ignore-checksum -y | Out-File -FilePath C:\Windows\Temp\choco-malwarebytes.txt
if ($?) {
Write-Output "$Env:COMPUTERNAME Malwarebytes - Successful"
}
else {
Write-Output "$Env:COMPUTERNAME Malwarebytes - Failed"
}
choco install urbackup-client -y | Out-File -FilePath C:\Windows\Temp\choco-urbackup-client.txt
if ($?) {
Write-Output "$Env:COMPUTERNAME urBackup - Successful"
}
else {
Write-Output "$Env:COMPUTERNAME UrBackup - Failed"
}
choco install googlechrome -y | Out-File -FilePath C:\Windows\Temp\choco-chrome-client.txt
if ($?) {
Write-Output "$Env:COMPUTERNAME urBackup - Successful"
}
else {
Write-Output "$Env:COMPUTERNAME UrBackup - Failed"
}
}