Bug fix: network interfaces team.

This commit is contained in:
AnD
2026-05-15 16:26:08 -06:00
parent 97d42da9a2
commit f761ff2ed6
25 changed files with 1304 additions and 37 deletions

View File

@@ -0,0 +1,3 @@
REG ADD "HKEY_CURRENT_USER\Control Panel\Desktop" /v ScreenSaveActive /t REG_SZ /d 1 /f
REG ADD "HKCU\Control Panel\Desktop" /v SCRNSAVE.EXE /t REG_SZ /d "C:\WINDOWS\system32\sstext3d.scr" /f
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Screensavers\ssText3d" /v DisplayString /t REG_SZ /d "Unified Systems Inc." /f

View File

@@ -0,0 +1,38 @@
#Add exclusions
Add-MpPreference -ExclusionProcess "C:\Program Files\Avigilon\Avigilon Control Center Server\VmsAdminPanel.exe",
"C:\Program Files\Avigilon\Avigilon Unity Server\VmsAdminPanel.exe",
"C:\Program Files\Avigilon\Avigilon Unity Server\VmsAdminPanelLauncher.exe",
"C:\Program Files\Avigilon\Avigilon Unity Server\VmsDaemonService.exe",
"C:\Program Files\Avigilon\Avigilon Unity Daemon\VmsDaemon.exe",
"C:\Program Files\Avigilon\Avigilon Unity Core\VmsCore.exe",
"C:\Program Files\Avigilon\Avigilon Unity Server\VmsUpgraderApp.exe",
"C:\Program Files\Avigilon\Avigilon Unity Server\LPR6\LprDaemonApp.exe",
"C:\Program Files\Avigilon\Avigilon Unity Device Management\VmsDeviceManagement.exe",
"C:\Program Files\Avigilon\Avigilon Unity Analytics Add-on\AnalyticsDaemonService.exe",
"C:\Program Files\Avigilon\Avigilon Unity Client\VmsClientApp.exe",
"C:\Program Files\Avigilon\Avigilon Unity Client Framework\AvigilonUnityClientFramework.exe",
"C:\Program Files\Avigilon\Avigilon Unity Web Endpoint\WebEndpointService.exe",
"C:\Program Files\Avigilon\Avigilon Unity Web Endpoint\node.exe",
"C:\Program Files\Avigilon\Avigilon Unity API Gateway\VmsApiGateway.exe",
"C:\Program Files\Avigilon\Avigilon Unity Cloud Bridge\VmsCloudBridge.exe",
"C:\Program Files\Avigilon\Avigilon Unity Orchestrator Service\VmsOrchestratorService.exe",
"C:\Program Files\Avigilon\Avigilon Unity Virtual Matrix\VmsVirtualMatrixApp.exe",
"C:\Program Files\Avigilon\Avigilon Unity Software Manager\Service\VmsLocalUpdaterService.exe",
"C:\Program Files\Avigilon\Avigilon Unity Player\VmsPlayerApp.exe",
"C:\Program Files (x86)\Avigilon\Avigilon Unity Player\VmsPlayerApp.exe"
Add-MpPreference -ExclusionExtension ".avd"
Add-MpPreference -ExclusionPath "$Env:programdata\Avigilon",
"$Env:appdata\Avigilon",
"$Env:localappdata\Avigilon",
"C:\Program Files\Avigilon",
"D:\AvigilonData",
"E:\AvigilonData",
"D:\AvigilonConfig",
"C:\AvigilonConfig"
#Check what is already excluded
Get-MpPreference | Select-Object -Property ExclusionExtension -ExpandProperty ExclusionExtension
Get-MpPreference| Select-Object -Property ExclusionPath | Format-table -wrap
Get-MpPreference | Select-Object -Property ExclusionProcess | Format-list

View File

@@ -0,0 +1 @@
Select-String -Path "C:\ProgramData\Avigilon\Avigilon Unity Core\Logs\VmsCore.clef" -Pattern "Acc.ServerName" -List

View File

@@ -0,0 +1,33 @@
# Create incoming rule for Ping
New-NetFirewallRule -DisplayName "Ping" -Direction Inbound -Protocol ICMPv4 -IcmpType 8 -Action Allow
# Create incoming rule for CIW on Total Care PC
New-NetFirewallRule -DisplayName "CIW Syslog" `
-Direction Inbound `
-Protocol UDP `
-LocalPort 514 `
-Action Allow `
-Profile Private
New-NetFirewallRule -DisplayName "CIW Email" `
-Direction Inbound `
-Protocol TCP `
-LocalPort 25 `
-Action Allow `
-Profile Private
# Create outgoing rule for CIW on NVRs
New-NetFirewallRule -DisplayName "CIW Email" `
-Direction Outbound `
-Protocol TCP `
-LocalPort 25 `
-RemotePort 25 `
-Action Allow `
-Profile Private,Public
New-NetFirewallRule -DisplayName "CIW Syslog" `
-Direction Outbound `
-Protocol UDP `
-LocalPort 514 `
-RemotePort 514 `
-Action Allow `
-Profile Private,Public

View File

@@ -0,0 +1,62 @@
# Show favorites in navigation pane
Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'NavPaneShowFavorites' -Value 1
# Show all folders in navigation pane
Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'NavPaneShowAllFolders' -Value 1
# Automatically expand to current folder
Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'NavPaneExpandToCurrentFolder' -Value 1
# Show libraries in navigation pane
Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'NavPaneShowLibraries' -Value 1
# Always show menus
Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'AlwaysShowMenus' -Value 1
# Display file icon on thumbnails
Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'IconsOnly' -Value 0
# Display file size information in folder tips
Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'FolderContentsInfoTip' -Value 1
# Show hidden files and folders
Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'Hidden' -Value 1
# Unhide empty drives
Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'HideDrivesWithNoMedia' -Value 0
# Uncheck "Hide extensions for known file types"
Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'HideFileExt' -Value 0
# Uncheck "Hide folder merge conflicts"
Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'HideFolderMergeConflicts' -Value 0
# Hide protected operating system files
Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'ShowSuperHidden' -Value 0
# Restore previous folder windows at logon
Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'PersistBrowsers' -Value 1
# Show drive letters
Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'ShowDriveLetters' -Value 1
# Show encrypted or compressed NTFS files in color
Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'ShowEncryptedCompressedColor' -Value 1
# Show pop-up description for folders and desktop items
Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'ShowInfoTip' -Value 1
# Show previous handlers in preview pane
Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'ShowPreviewHandlers' -Value 1
# Show status bar
Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'StatusBar' -Value 1
# Apply the changes by restarting File Explorer
Stop-Process -Name explorer -Force
Start-Process explorer
# Apply settings to all folders (This usually requires user action; automate if necessary)
$wshell = New-Object -ComObject wscript.shell
$wshell.SendKeys('%(ve)') # Opens Folder Options -> View
$wshell.SendKeys('{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{ENTER}') # Select "Apply to Folders" and Confirm

View File

@@ -0,0 +1,8 @@
$adapters = Get-NetAdapter -Physical | Get-NetAdapterPowerManagement
foreach ($adapter in $adapters)
{
$adapter.WakeOnMagicPacket = 'Enabled'
$adapter.WakeOnPattern = 'Enabled'
$adapter.AllowComputerToTurnOffDevice = 'Disabled'
$adapter | Set-NetAdapterPowerManagement
}

View File

@@ -0,0 +1,8 @@
# Set computer to never sleep
powercfg /change standby-timeout-ac 0
# Set monitor to never turn off
powercfg /change monitor-timeout-ac 0
# Set hard drives to never turn off
powercfg /change disk-timeout-ac 0

View File

@@ -0,0 +1,9 @@
# Enable Remote Desktop
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server" -Name "fDenyTSConnections" -Value 0
# Enable Remote Desktop through Windows Firewall
Enable-NetFirewallRule -DisplayGroup "Remote Desktop"
# Allow "Everyone" group to connect
$rdpAccessGroup = "Remote Desktop Users"
Add-LocalGroupMember -Group $rdpAccessGroup -Member "Everyone"

View File

@@ -0,0 +1,49 @@
# Import the Update Session COM object
$updateSession = New-Object -ComObject Microsoft.Update.Session
# Create an update searcher object
$updateSearcher = $updateSession.CreateUpdateSearcher()
# Search for available updates
$searchResult = $updateSearcher.Search("IsInstalled=0")
# Check if updates are available
if ($searchResult.Updates.Count -gt 0) {
Write-Output "$($searchResult.Updates.Count) updates found. Installing..."
# Create an update downloader object
$updateDownloader = $updateSession.CreateUpdateDownloader()
$updateDownloader.Updates = $searchResult.Updates
# Download updates
$downloadResult = $updateDownloader.Download()
if ($downloadResult.ResultCode -eq 2) {
Write-Output "Updates downloaded successfully."
# Create an update installer object
$updateInstaller = $updateSession.CreateUpdateInstaller()
$updateInstaller.Updates = $searchResult.Updates
# Install updates
$installResult = $updateInstaller.Install()
if ($installResult.ResultCode -eq 2) {
Write-Output "Updates installed successfully."
# Check if a restart is required
if ($installResult.RebootRequired) {
Write-Output "Restart is required. Restarting the computer..."
Restart-Computer -Force
} else {
Write-Output "No restart is required."
}
} else {
Write-Error "Failed to install updates. Result code: $($installResult.ResultCode)"
}
} else {
Write-Error "Failed to download updates. Result code: $($downloadResult.ResultCode)"
}
} else {
Write-Output "No updates are available."
}