This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Searches the Windows 10 Setup Compatibility logs for upgrade hard blockers | |
# Find all the compatibility xml files | |
$SearchLocation = 'C:\$WINDOWS.~BT\Sources\Panther' | |
$CompatibilityXMLs = Get-childitem "$SearchLocation\compat*.xml" | Sort LastWriteTime -Descending | |
# Create an array to hold the results | |
$Blockers = @() | |
# Search each file for any hard blockers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Script to export html and csv reports of file and directory content on the system drive | |
# Use to identify large files/directories for disk space cleanup | |
# Uses WizTree portable to quickly retrieve file and directory sizes from the Master File Table on disk | |
# Download and extract the WizTree64.exe and place in the same directory as this script | |
# Set the running location | |
$RunLocation = $PSScriptRoot | |
#$RunLocation = "C:\temp" | |
$TempLocation = "C:\temp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.Synopsis | |
Retrieves O365/C2R info from a local or remote registry | |
.DESCRIPTION | |
Retrieves some basic info on the Office 365 / Click-to-run installation on the local or remote computer/s, such as products installed, version number, activation account, bitness etc. | |
Requires PS remoting to be enabled for remote computer access. | |
.PARAMETER ComputerName | |
[Optional] the name or names of remote computers | |
.EXAMPLE | |
Get-OfficeC2RInfo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.Synopsis | |
Generates an HTML-styled report with Delivery Optimization statistics for local or remote Windows 10 computers | |
.DESCRIPTION | |
Uses the built-in Windows 10 cmdlets for delivery optimization to generate a DO report in html format. Can run against the local or remote computers. Optionally sends the report as an email. | |
.EXAMPLE | |
New-HTMLDeliveryOptimizationReport | |
Creates an HTML DO report for the local machine and invokes it. | |
.EXAMPLE | |
New-HTMLDeliveryOptimizationReport -ComputerName "PC001","PC002" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###################################################################################### | |
## ## | |
## This script compares the current list of AD sites and subnets with a cached list ## | |
## If anything has changed, the cached list will be updated and the changes emailed ## | |
## ## | |
###################################################################################### | |
################ | |
## PARAMETERS ## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########################################################################## | |
## Script to create collections for Software Update installation errors ## | |
########################################################################## | |
<# | |
Find SUP error codes in your environment (SQL): | |
" | |
Select Count(ResourceID),LastEnforcementErrorCode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##################################################################################################### | |
## ## | |
## This script checks for any SCCM Site Server components currently in an error or warning ## | |
## state and emails it as an html report, including the latest status messages for each component. ## | |
## ## | |
##################################################################################################### | |
################ | |
## PARAMETERS ## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function Get-CMUserLogonEvents { | |
[CmdletBinding()] | |
Param | |
( | |
[Parameter(Mandatory=$false,ValueFromPipelineByPropertyName=$true)] | |
$ComputerName, | |
[Parameter(Mandatory=$false,ValueFromPipelineByPropertyName=$true)] | |
$MaximumEvents = 50 | |
) | |