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
# Purpose: Create a CSV report of applications currently deployed in SCCM. | |
# Set parameters. | |
Write-Host "Setting parameters." | |
$FolderNames = @("Common","Purchased") | |
$LengthOfRecent = 7 | |
$ServerAddress = "[YOUR_SERVER_ADDRESS]" | |
$ServerNamespace = "root\SMS\Site_[YOUR_SITE_ID]" | |
$BoxUsername = "[BOX_FTP_USERNAME]" | |
$BoxPassword = "[BOX_FTP_PASSWORD]" |
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 | |
PIC SORT | |
Sort pictures into an organized directory structure based on their timestamp | |
.NOTES | |
Author: Charles Christensen (github.com/charlesrc19) | |
Required Dependencies: MediaInfo CLI | |
Optional Dependencies: none |
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
# Note: If you want to ensure that your hidden service will run, it is important to | |
# disable the ability to boot Windows into safe mode. | |
# Set variables. | |
$NSSM_LOC = "C:\Users\Christensen\Downloads\nssm.exe" | |
$SCRIPT_LOC = "C:\Users\Christensen\Downloads\Monitor-ComputerUsage.ps1" | |
$BRANDS = @("Microsoft", "Windows", "Hyper-V", "Intel(R)", "Realtek", "Google", "Diagnostic", "Network") | |
$TYPES = @("Device", "Communication", "Encoding", "License", "Support", "Data", "Policy") | |
$EXTS = @("Extension", "Helper", "Runtime", "Broker", "Host", "Monitor", "Updater", "Service") |
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
# Collect system data. | |
$System = Get-WMIObject -class Win32_ComputerSystem | |
$BIOS = Get-WMIObject -class Win32_BIOS | |
$Processor = Get-WMIObject -class Win32_Processor | |
$OS = Get-WMIObject -class Win32_OperatingSystem | |
$Processes = Get-WMIObject -class Win32_Process | |
# Organize data. | |
$Uptime = (Get-Date) - [datetime]::parseexact($OS.LastBootUpTime.split('.')[0],"yyyyMMddHHmmss",[System.Globalization.CultureInfo]::InvariantCulture) | |
$SystemInfo = [pscustomobject] @{ |
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
# Collect info on Documents. | |
$document_valids = @("Charles | |
"My Music", | |
"My Pictures", | |
"My Videos", | |
".sync", | |
"desktop.ini") | |
$document_files = Get-ChildItem -Path "C:\Users\Redwood\Documents" -Force | |
# Clean Documents. |
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 | |
DEPLOYMENT SCRIPT BACKUP | |
Perform a backup of all scripts used to deploy software. | |
.NOTES | |
Author: Charles Christensen (github.com/charlesrc19) | |
Required Dependencies: WinSCP binaries, FTPES account |
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
0Ä *ÜHܘ | |
†Ä0Ä10 +�0Ä *ÜHܘ | |
†Ä$ÄÇ | |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>HasRemovalPasscode</key> | |
<true/> | |
<key>PayloadContent</key> |
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
#!/bin/bash | |
# Set connection variables. | |
username="[BOX_USERNAME]" | |
password="[BOX_FTP_PASSWORD]" | |
server="ftps://ftp.box.com:990" | |
# Detect command-line parameters. | |
if [ "$2" == "" ]; then | |
echo -e "\033[0;31mError! No command-line parameters detected.\033[0m" |
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
#!/bin/bash | |
# Place in /var/lib/cloud/scripts/per-boot/ with global execute permissions. | |
# Extract information about the instance. | |
# DNS_NAME = needs to be a FQDN | |
DNS_NAME= | |
DNS_ZONE_ID= | |
PUBLIC_IP=$(curl -s http://169.254.169.254/latest/meta-data/public-ipv4/) |
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 | |
# ScanPorts - a simple, Scapy-based port scanning tool | |
# | |
# .NOTES | |
# Author: Charles Christensen | |
# Required Dependencies: python3, scapy, python-magic | |
# | |
#------------------------------------------------------------- |