Skip to content

Instantly share code, notes, and snippets.

<#
.SYNOPSIS
Create a new desktop wallpaper from various sources and optionally overlay some text.
.DESCRIPTION
The script can be run manually, at logon or even as a scheduled task to update the wallpaper regularly
Wallpaper sources include:
- A solid colour
@theagreeablecow
theagreeablecow / Get-PasswordGenerator.ps1
Last active August 29, 2015 14:05
Creates random passwords of varying complexity from ASCII table of characters or phrases from random words selected from on posts on Reddit
<#
.NAME
Get-PasswordGenerator.ps1
.DESCRIPTION
Creates random passwords of varying complexity from ASCII table of characters
or phrases from random words selected from on posts on Reddit
Ref: http://www.asciitable.com/ & http://www.reddit.com
@theagreeablecow
theagreeablecow / 00 Module Variables.ps1
Last active July 4, 2018 00:18
SAMReport Module for SSL Certificates
############################################################################################################
# Module Variables - Certificates #
#-------------------------------------#
# Customise report Variables
$EmailTo = $EmailTo
$EmailSubject = $EmailSubject
$ReportTitle = $ReportTitle
$ReportSubTitle = $ReportSubTitle
@theagreeablecow
theagreeablecow / set-ADPhotos.ps1
Last active July 20, 2017 20:47
Add photos to Active Directory
<#
.SYNOPSIS
Import photos into Active Directory
.DESCRIPTION
- Source files are collected in bulk from network location and filtered on Last Modified Date
- Source files must be in the format username.jpg and will be checked against valid AD users
- The files are copied and processed in a temporary working directory
- The files are resized (retaining proportions) and imported into AD
- Both the original and new files are date stamped and backed up (see Exported and Imported folders)
@theagreeablecow
theagreeablecow / 00 Module Variables.ps1
Last active April 30, 2020 14:37
SAMReport Module for PC Health
############################################################################################################
# Module Variables - PC Health #
#----------------------------------#
# Customise report Variables
$EmailTo = $EmailTo
$EmailSubject = $EmailSubject
$ReportTitle = $ReportTitle
$ReportSubTitle = $ReportSubTitle
@theagreeablecow
theagreeablecow / 00 Module Variables.ps1
Last active July 4, 2018 00:18
SAMReport Module for Exchange
############################################################################################################
# Module Variables - Exchange #
#----------------------------------#
# Customise report Variables
$EmailTo = $EmailTo
$EmailSubject = $EmailSubject
$ReportTitle = $ReportTitle
$ReportSubTitle = $ReportSubTitle
@theagreeablecow
theagreeablecow / 00 Module Variables.ps1
Last active May 11, 2023 22:05
SAMReport for Veeam
############################################################################################################
# Module Variables - Veeam #
#-------------------------------#
# Customise report Variables
$EmailTo = $EmailTo
$EmailSubject = $EmailSubject
$ReportTitle = $ReportTitle
$ReportSubTitle = $ReportSubTitle
@theagreeablecow
theagreeablecow / 00_Global_Variables.ps1
Last active July 4, 2018 00:18
SysAdmin Modular Reporting (SAMReports)
############################################################################################################
# Global Variables #
#------------------------
# Email Variables
$SmtpServer = "exchange.mydomain.com.au"
$EmailFrom = "[email protected]"
$EmailTo = "[email protected]"
$EmailSubject = "SysAdmin Modular Report for $module $($Date)"
@theagreeablecow
theagreeablecow / PasswordExpiryReport.ps1
Created June 13, 2012 12:17
Password Expiry Email Report
<#
.SYNOPSIS
Reports on Users whose passwords are about to expire
.NOTES
Requires Quest.ActiveRoles.ADManagementsnapin to get the AD attributes.
.LINK
http://www.theagreeablecow.com/2012/06/preventing-password-expirations-with.html
#>
# --------------------------------------------------
@theagreeablecow
theagreeablecow / lyncClients.sql
Created June 8, 2012 03:19
Lync Client Discovery
declare @user varchar(20)
set @user = ''
declare @ClientVer varchar(100)
set @ClientVer = ''
declare @server varchar(10)