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 | |
Print server job logs from Event Viewer to csv file | |
.DESCRIPTION | |
This script uses Get-WinEvent and XML queries to retrieve EventID 307 job logs from print servers. | |
Specifically querying the Microsoft-Windows-PrintService/Operational log. | |
Log is extracted to a CSV file and optionally emailed. | |
.PARAMETER FileName |
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 will generate a list of all servers in AD, collect inventory items and export to Excel | |
# Requires the Active Directory module for Windows Powershell and appropriate credentials | |
#LOAD POWERSHELL SESSIONS | |
#------------------------ | |
$DC = "dc1.maydomain.com.au" | |
$usercredential= get-credential -credential mydomain\admin | |
$Path = "\\mydomain.com.au\Scripts\Data\" | |
$ExportFile = $Path + "ServerInventory.csv" |
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 | |
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 |
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
############################################################################################################ | |
# Module Variables - Veeam # | |
#-------------------------------# | |
# Customise report Variables | |
$EmailTo = $EmailTo | |
$EmailSubject = $EmailSubject | |
$ReportTitle = $ReportTitle | |
$ReportSubTitle = $ReportSubTitle |
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 will set up AD, User Directories, Exchange and Lync, using basic data retrived from a CSV file | |
# Requires the Active Directory module for Windows Powershell and appropriate credentials | |
# CSV file with corresponding header and user(s) info: | |
# Office,UserName,FirstName,LastName,Initial,Department,Role,Title,SetupSameAs,Manager,MailboxAccess,Extension,Mobile | |
#LOAD POWERSHELL SESSIONS | |
#------------------------ | |
$exchangeserver = "exchange1.domain.com" | |
$Lyncserver = "lync1.domain.com.au" |
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
############################################################################################################ | |
# Module Variables - PC Health # | |
#----------------------------------# | |
# Customise report Variables | |
$EmailTo = $EmailTo | |
$EmailSubject = $EmailSubject | |
$ReportTitle = $ReportTitle | |
$ReportSubTitle = $ReportSubTitle |
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
############################################################################################################ | |
# Global Variables # | |
#------------------------ | |
# Email Variables | |
$SmtpServer = "exchange.mydomain.com.au" | |
$EmailFrom = "SAMReports@mydomain.com.au" | |
$EmailTo = "administrator@mydomain.com.au" | |
$EmailSubject = "SysAdmin Modular Report for $module $($Date)" |
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
############################################################################################################ | |
# Module Variables - Exchange # | |
#----------------------------------# | |
# Customise report Variables | |
$EmailTo = $EmailTo | |
$EmailSubject = $EmailSubject | |
$ReportTitle = $ReportTitle | |
$ReportSubTitle = $ReportSubTitle |
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
############################################################################################################ | |
# Module Variables - Certificates # | |
#-------------------------------------# | |
# Customise report Variables | |
$EmailTo = $EmailTo | |
$EmailSubject = $EmailSubject | |
$ReportTitle = $ReportTitle | |
$ReportSubTitle = $ReportSubTitle |
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 | |
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) |
NewerOlder