Skip to content

Instantly share code, notes, and snippets.

View jfrmilner's full-sized avatar

John Milner jfrmilner

View GitHub Profile
@jfrmilner
jfrmilner / Outlook-AcceptMeeting.ahk
Created February 3, 2022 17:43
AutoHotKey - Hotkey to Accept Outlook Meeting
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
;jfrmilner hotkeys
;^ = Ctrl, ! = ALT, # = Win, + = Shift
;Shift+F7
+f7::
objOL := ComObjActive("Outlook.Application").ActiveExplorer.Selection.Item(1) ; Selected message in Outlook
objOLAp := objOL.GetAssociatedAppointment(True)
@jfrmilner
jfrmilner / veeam-backupfor365_restapi.ps1
Created August 10, 2021 10:50
PowerShell wrapper for the Veeam Backup for Microsoft Office 365 API - Export OneDrive Content Report
<#
PowerShell wrapper for the Veeam Backup for Microsoft Office 365 API - Export OneDrive Content Report
Veeam Backup for Microsoft Office 365 API - REST API Reference
https://helpcenter.veeam.com/docs/vbo365/rest/overview.html?ver=50
API Version = 5.0
.NOTES
Author: John Milner / jfrmilner
Date: 2021-08-06
Legal: This script is provided "AS IS" with no warranties or guarantees, and confers no rights. You may use, modify, reproduce, and distribute this script file in any way provided that you agree to give the original author credit.
V1 - Initial Release
@jfrmilner
jfrmilner / Streamserver-log_scan.ps1
Created July 15, 2021 17:56
PowerShell script to scan for email errors in Streamserver log files
<#
PowerShell script to scan for email errors in Streamserver log files
Auth: jfrmilner
v1 - 2021-06-29 - Initial Release
v2 - 2021-07-13 - Change to separate email per log file. Remove file path prefix (now added to email body header).
#>
$ids = "CH", "AT", "DE", "SE"
foreach ($id in $ids) {
$path = "C:\StreamServe\domain_$($id)\$($id)_runtime_PROD\export\log\log.txt"
$results = Select-String -Pattern "Mail Connector: Failed to send mail\." -Path $path -Context 15, 0
@jfrmilner
jfrmilner / AddSecurityPrincipalonDefaultWinRMSDDL.ps1
Created May 28, 2021 13:45
Add Security Principal on Default WinRM SDDL
<#
.SYNOPSIS
Add Security Principal on Default WinRM SDDL
.EXAMPLE
Change $user and run
.NOTES
Author: John Milner / jfrmilner
Requires: Powershell V2
Filename:
Version: v0.1 - 2021-02 - Test Version
@jfrmilner
jfrmilner / Get-SymantecEndpointStatus.ps1
Last active May 17, 2021 11:02
Get Symantec Endpoint Protection AV Status for use with Science Logic Monitoring
<#
Get Symantec Endpoint Protection AV Status for use with Science Logic Monitoring
Auth: jfrmilner
#>
$version = Get-ItemProperty -Path 'HKLM:SOFTWARE\Wow6432Node\Symantec\Symantec Endpoint Protection\CurrentVersion'
#version check for dat path. Tested with v12 and v14 only.
if ($version.PRODUCTVERSION -match "^12\.") {
$path = (Get-ItemProperty -Path 'HKLM:SOFTWARE\Wow6432Node\Symantec\Symantec Endpoint Protection\CurrentVersion\SharedDefs\' -Name DEFWATCH_10).DEFWATCH_10
}
else {
@jfrmilner
jfrmilner / Get-McAfeeAVStatus.ps1
Last active May 10, 2021 13:03
Get McAfee Endpoint Security AV Status for use with Science Logic Monitoring
<#
Get McAfee Endpoint Security AV Status for use with Science Logic Monitoring
Auth: jfrmilner
#>
$version = Get-ItemProperty -Path 'HKLM:SOFTWARE\McAfee\Endpoint\Common'
$path = Get-ItemProperty -Path 'HKLM:SOFTWARE\McAfee\AVSolution\DS\DS'
$szContentCreationDateTime = Get-Date ($path.szContentCreationDate + " " + $path.szContentCreationTime)
$timeSpan = New-TimeSpan -Start $szContentCreationDateTime
$result = New-Object PSObject -Property @{
'Name' = 'McAfee Endpoint Security'
@jfrmilner
jfrmilner / FastLED_Coaster.ino
Created December 15, 2019 19:07
Arduino FastLED Drinks Coaster
/*
* FastLED Drinks Coaster
* Date: 12-2019
* Auth: jfrmilner
*/
#include "FastLED.h"
#define DATA_PIN 2
#define LED_TYPE WS2812
# FEATURE_BROWSER_EMULATION fix for xwidget.exe and sites without <meta http-equiv="X-UA-Compatible" content="IE=11" />
# https://blogs.msdn.microsoft.com/patricka/2015/01/12/controlling-webbrowser-control-compatibility/
# Test Sites
# http://detectmybrowser.com/
# http://kluge.in-chemnitz.de/tools/browser.php
# auth: jfrmilner
<#
https://msdn.microsoft.com/library/ee330730(v=vs.85).aspx#browser_emulation