first commit
This commit is contained in:
36
PS/pAVExclusions.ps1
Normal file
36
PS/pAVExclusions.ps1
Normal file
@ -0,0 +1,36 @@
|
||||
|
||||
# clients
|
||||
Add-MpPreference -ExclusionPath "C:\Program Files (x86)\Software of Excellence\EXACT\"
|
||||
Add-MpPreference -ExclusionPath "\\SERVER\EXACTResources\"
|
||||
|
||||
#On the Server
|
||||
Add-MpPreference -ExclusionPath "C:\Program Files (x86)\Software of Excellence\EXACT Server\"
|
||||
# data
|
||||
Add-MpPreference -ExclusionPath "F:\Exactwin\"
|
||||
# xrays
|
||||
Add-MpPreference -ExclusionPath "F:\Exactwin\"
|
||||
Add-MpPreference -ExclusionPath "\\SERVER\EXACTResources\"
|
||||
|
||||
# examine pro
|
||||
Add-MpPreference -ExclusionPath "C:\Program Files (x86)\SOE\"
|
||||
|
||||
#
|
||||
Add-MpPreference -ExclusionPath "C:\ProgramData\SOEI"
|
||||
Add-MpPreference -ExclusionPath "\\SERVER\EXACTData"
|
||||
|
||||
# backups directory
|
||||
Add-MpPreference -ExclusionPath "C:\DataBkup"
|
||||
|
||||
# backups directory
|
||||
Add-MpPreference -ExclusionPath "C:\LocalBackups"
|
||||
Add-MpPreference -ExclusionPath "E:\LocalBackups"
|
||||
Add-MpPreference -ExclusionPath "F:\LocalBackups"
|
||||
Add-MpPreference -ExclusionPath "G:\LocalBackups"
|
||||
Add-MpPreference -ExclusionPath "H:\LocalBackups"
|
||||
|
||||
# backups directory
|
||||
Add-MpPreference -ExclusionPath "C:\DocumentsHighfield"
|
||||
Add-MpPreference -ExclusionPath "E:\DocumentsHighfield"
|
||||
Add-MpPreference -ExclusionPath "F:\DocumentsHighfield"
|
||||
Add-MpPreference -ExclusionPath "G:\DocumentsHighfield"
|
||||
Add-MpPreference -ExclusionPath "H:\DocumentsHighfield"
|
||||
5
PS/pAddNetBrother.ps1
Normal file
5
PS/pAddNetBrother.ps1
Normal file
@ -0,0 +1,5 @@
|
||||
#Get-Printer -ComputerName 192.168.1.22 | Format-List Name,DriverName
|
||||
|
||||
#Get-Printer -ComputerName reception1 | where Shared -eq $true | fl Name
|
||||
|
||||
Add-Printer -ConnectionName \\192.168.1.22\"BROTHER"
|
||||
5
PS/pAddNetZebra.ps1
Normal file
5
PS/pAddNetZebra.ps1
Normal file
@ -0,0 +1,5 @@
|
||||
#Get-Printer -ComputerName 192.168.1.21 | Format-List Name,DriverName
|
||||
|
||||
#Get-Printer -ComputerName reception1 | where Shared -eq $true | fl Name
|
||||
|
||||
Add-Printer -ConnectionName \\192.168.1.21\"ZEBRA"
|
||||
7
PS/pAddPrinters.ps1
Normal file
7
PS/pAddPrinters.ps1
Normal file
@ -0,0 +1,7 @@
|
||||
Get-Printer -ComputerName 192.168.1.21 | Format-List Name,DriverName
|
||||
Get-Printer -ComputerName 192.168.1.22 | Format-List Name,DriverName
|
||||
|
||||
#Get-Printer -ComputerName reception1 | where Shared -eq $true | fl Name
|
||||
|
||||
Add-Printer -ConnectionName \\192.168.1.21\"ZEBRA"
|
||||
Add-Printer -ConnectionName \\192.168.1.22\"BROTHER"
|
||||
10
PS/pLastBoot.ps1
Normal file
10
PS/pLastBoot.ps1
Normal file
@ -0,0 +1,10 @@
|
||||
$computers = @("server","surgery12") #list of computers
|
||||
foreach ($computer in $computers) {
|
||||
$wmi = ""
|
||||
if (Test-Connection $computer -Quiet){
|
||||
$wmi = Get-WmiObject -Class win32_OperatingSystem -ComputerName $computer
|
||||
if (($wmi.ConvertToDateTime($wmi.LocalDateTime) - $wmi.ConvertToDateTime($wmi.LastBootUpTime)).Days -gt 6){
|
||||
Start-Process "cmd.exe" "/c C:\Scripts\Base\tmessageH.bat RebootTheServer"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user