This file contains hidden or 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
<# List Scheduled Tasks | |
# This script lists scheduled tasks of all known Windows-operated servers, | |
# and places each task's path into a file specific to the server. | |
# | |
# Run this prior to check-api-tasks, which uses the output files. | |
# | |
# Author: A.E.Veltstra | |
# Version: 2.21.818.1243 | |
#> |
This file contains hidden or 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
<# Check API Tasks | |
# This script checks scheduled tasks of all known Windows-operated servers, | |
# determines whether any has missed its scheduled execution, | |
# and emails those tasks with server name and amount of missed executions. | |
# | |
# Run this after list-api-tasks, which creates the input files that this script | |
# expects. | |
# | |
# Author: A.E.Veltstra | |
# Version: 2.21.818.1246 |
This file contains hidden or 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
<# Analyze normal run duration of scheduled tasks. | |
# Gathers insight into how long tasks run, analyzes | |
# which tasks run shorter or longer than normal, | |
# reports back to console, and writes out its report | |
# as a CSV (spreadsheet). | |
# | |
# The script assumes that the user account running it | |
# has access to the computer and is allowed to read its | |
# event log. | |
# |
This file contains hidden or 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
<# Analyze normal run duration of scheduled tasks. | |
# Gathers insight into how long tasks run, analyzes | |
# which tasks run shorter or longer than normal, | |
# reports back to console, and writes out its report | |
# as a CSV (spreadsheet). | |
# | |
# The script assumes that the user account running it | |
# has access to the computer and is allowed to read | |
# its event log. | |
# |
This file contains hidden or 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
mstsc -v:server.domain.edu /admin /F -console |
This file contains hidden or 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
$who = New-Object System.Management.Automation.PSCredential( | |
"[email protected]", | |
(ConvertTo-SecureString "TheSecret" -AsPlainText -Force) | |
) -ErrorAction Stop; | |
#NOTE: this version of Send-MailMessage does NOT have a -ReplyTo parameter. | |
Send-MailMessage ` | |
-From [email protected] ` | |
-Subject $("{0} Reports, dd. {1}" -f $files_count, $now) ` | |
-To undisclosed recipients ` | |
-Body $([System.String]::Concat( |
This file contains hidden or 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-FolderSize { | |
BEGIN { $fso = New-Object -ComObject Scripting.FileSystemObject } | |
PROCESS { | |
$path = $input.fullname | |
$folder = $fso.GetFolder($path) |
This file contains hidden or 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
'''''''''''''''''''''''''''''''''''''''''''''''''' | |
'' A sub process to perform the conversion. | |
'' Takes no parameters. | |
'' Has no return value. | |
'' Call it for instance on Workbook_Open(). | |
'''''''''''''''''''''''''''''''''''''''''''''''''' | |
Sub ImageLinksToImages() | |
Dim new_picture_shape As Shape | |
Dim picture_file_name As String | |
Dim picture_width As Long |
This file contains hidden or 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
["server-1", "server-2", "server-3"].each { server -> | |
task "deploy-to-$server" (type: Copy) { | |
description: "Copies the project executables to $server" | |
enabled: true | |
group: "distribution" | |
afterEvaluate { Project project -> | |
from: "$distDir/$distZip" | |
into: "\\\\$server\\share\\${project.name}\\" | |
} | |
} |
This file contains hidden or 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
psexec -accepteula -i -d -s mmc taskschd.msc |