Posts

Cluster: If one of the node and cluster service is unable to bring online

 A specified authentication package is unknown reg query "HKLM\SOFTWARE\Policies\Microsoft\Windows\System" /v AllowCustomSSPsAPs 0 Blocks custom SSPs/APs from loading 1 Allows custom SSPs/APs to load  

Powershell - Check for Timezone on multiple servers and change Timezone.

 $Servers = Get-Content "C:\Temp\Servers.txt" foreach ($Server in $Servers) { try { $TimeZone = Invoke-Command -ComputerName $Server -ScriptBlock { (Get-TimeZone).DisplayName } [PSCustomObject]@{ Server = $Server TimeZone = $TimeZone } } catch { [PSCustomObject]@{ Server = $Server TimeZone = "Unable to connect" } } } --------------- Change Time Zone to Eastern Time on Multiple Servers $Servers = Get-Content "C:\Temp\Servers.txt" foreach ($Server in $Servers) { try { Invoke-Command -ComputerName $Server -ScriptBlock { Set-TimeZone -Id "Eastern Standard Time" } Write-Host "$Server - Time zone updated successfully" -ForegroundColor Green } catch { Write-Host "$Server - Failed: $_" -ForegroundColor Red } } Verify after change: $Servers = Get-Cont...
 # Windows Server Latency Diagnostic Script # Run in PowerShell with Administrator privileges Write-Host "=== CPU & Memory Usage ===" Get-Counter '\Processor(_Total)\% Processor Time' Get-Counter '\Memory\Available MBytes' Write-Host "`n=== Top Processes by CPU ===" Get-Process | Sort-Object CPU -Descending | Select-Object -First 10 Name, CPU Write-Host "`n=== Disk I/O Performance ===" Get-Counter '\PhysicalDisk(_Total)\Avg. Disk sec/Read' Get-Counter '\PhysicalDisk(_Total)\Avg. Disk sec/Write' Get-Counter '\PhysicalDisk(_Total)\Disk Transfers/sec' Write-Host "`n=== Network Latency (Ping Test) ===" Test-Connection -ComputerName google.com -Count 4 Write-Host "`n=== TCP Settings ===" Get-NetTCPSetting | Format-Table SettingName, CongestionProvider, AutoTuningLevelLocal Write-Host "`n=== Event Viewer Errors (Last 50) ===" Get-EventLog -LogName System -EntryType Error -Newest 50 | Forma...

Event id

  windows event logs cheat sheet · GitHub
  $From = "pugazhjan30@gmail.com" $To = "pugazhjan30@gmail.com" $Subject = "Email subject goes here" $Body = "Email body goes here" # The password is an app-specific password if you have 2-factor-auth enabled $Password = "" | ConvertTo-SecureString -AsPlainText -Force $Credential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $From, $Password Send-MailMessage -From $From -To $To -Subject $Subject -Body $Body -SmtpServer "smtp.gmail.com" -port 587 -UseSsl -Credential $Credential App passwords

iDac issue

Image