Intune Initial Scripts Backup

This commit is contained in:
2025-04-21 14:21:38 -04:00
commit 71764cd10f
241 changed files with 28218 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
$WSUSGroup = Read-Host "Enter Target Group Name"
$Computers = Get-WsusComputer -ComputerTargetGroups "$WSUSGroup" -IncludeSubgroups|select Fulldomainname -ExpandProperty Fulldomainname
foreach ($computer in $computers){
if(!(Test-Connection -Cn $computer -BufferSize 16 -Count 1 -ea 0 -quiet))
{write-host "cannot reach $computer" -f red}
else {$Session = New-Object -ComObject "Microsoft.Update.Session"
$Searcher = $Session.CreateUpdateSearcher()
$historyCount = $Searcher.GetTotalHistoryCount()
$Searcher.QueryHistory(0, $historyCount) | Select-Object @{Name="Computer"; Expression={$Computer}}, Date,
@{name="Operation"; expression={switch($_.operation){
1 {"Installation"}; 2 {"Uninstallation"}; 3 {"Other"}}}},
@{name="Status"; expression={switch($_.resultcode){
1 {"In Progress"}; 2 {"Succeeded"}; 3 {"Succeeded With Errors"};
4 {"Failed"}; 5 {"Aborted"}
}}},Title| Where {$_.Status -eq "In Progress"}|Write-Host}}

View File

@@ -0,0 +1,27 @@
PROD:
NCRA
$Host.UI.RawUI.WindowTitle = "NCRA - AD - Servers"
$Host.UI.RawUI.WindowTitle = "NCRA - Application - Prod"
$Host.UI.RawUI.WindowTitle = "NCRA - BizTalk - PROD"
$Host.UI.RawUI.WindowTitle = "NCRA - Edifecs - PROD"
$Host.UI.RawUI.WindowTitle = "NCRA - Exchange - PROD"
$Host.UI.RawUI.WindowTitle = "NCRA - File Servers - PROD"
$Host.UI.RawUI.WindowTitle = "NCRA - Mail Terminal Servers - PROD"
$Host.UI.RawUI.WindowTitle = "NCRA - Remote Desktop - PROD"
$Host.UI.RawUI.WindowTitle = "NCRA - SQL - PROD"
$Host.UI.RawUI.WindowTitle = "NCRA - Terminal Servers - PROD"
$Host.UI.RawUI.WindowTitle = "NCRA - Verint - PROD"
$Host.UI.RawUI.WindowTitle = "NCRA - Vistar Terminal Servers - PROD"
$Host.UI.RawUI.WindowTitle = "NCRA - Web - PROD"
OTHERS:
$Host.UI.RawUI.WindowTitle = "CTHA - Production Servers"
$Host.UI.RawUI.WindowTitle = "FLT2 - Application - PROD"
MANUAL:
$Host.UI.RawUI.WindowTitle = "CyberArc - PROD"
$Host.UI.RawUI.WindowTitle = "Exchange - PROD"
$Host.UI.RawUI.WindowTitle = "Infrastructure Weekend"
$Host.UI.RawUI.WindowTitle = "Last AD Controller"
$Host.UI.RawUI.WindowTitle = "Tidal - PROD"

View File

@@ -0,0 +1,27 @@
psrs001
psql007
psis002
pcpr001
psql015
psrs003
prsh182-failed connect
prsh028-failed connect
prsh175
pedi116
prsh029-failed connect
pvrt003
prsh014-failed connect
prsh018-failed connect
prsh002-failed connect
pedi114-failed connect
pedi111-failed connect
pedi115-failed connect
pspt001
pbiz122
pbiz124
pbiz125
pbiz126
pbiz123
pbiz121