first commit

This commit is contained in:
USER
2023-01-17 23:15:21 +00:00
commit 773c15c6ce
27 changed files with 1059 additions and 0 deletions

36
PS/pAVExclusions.ps1 Normal file
View 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
View 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
View 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
View 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
View 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"
}
}
}