Skip to content

Instantly share code, notes, and snippets.

View PCAssistSoftware's full-sized avatar

Darren Rose PCAssistSoftware

View GitHub Profile
@PCAssistSoftware
PCAssistSoftware / Scan_WinRE.ps1
Last active January 17, 2023 20:25
Scan remote computers to ensure version of WinRE.wim is higher than 1105 for CVE-2022-41099
$LastUsed = (Get-Date).AddDays(-365).ToString()
$ADcomputers = Get-ADComputer -Filter "OperatingSystem -notlike '*Server*' -and LastLogonDate -gt '$LastUsed'" | select-object -Expand Name
#$ADcomputers = Get-Content C:\Tmp\computerlist.txt | Foreach {$_.TrimEnd()}
#$ADcomputers = @("PC-1", "PC-2")
$online= @()
$offline = @()
$remoteworking = @()
@PCAssistSoftware
PCAssistSoftware / New-RemoteToastNotification.ps1
Created January 29, 2021 13:24 — forked from SMSAgentSoftware/New-RemoteToastNotification.ps1
Displays a toast notification on a remote computer
$Sender = "Trevor Jones"
$Message = "Hey buddy - ready for lunch?"
$RemoteComputer = "PC001"
Function New-ToastNotification {
Param($Sender,$Message)
# Required parameters
$AudioSource = "ms-winsoundevent:Notification.Default"
$HeaderFormat = "ImageAndTitle" # Choose from "TitleOnly", "ImageOnly" or "ImageAndTitle"