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
<# | |
***************************************************** | |
* Active Directory Account Creator * | |
***************************************************** | |
#> | |
function GetHelp() { | |
$HelpText = @" | |
DESCRIPTION: |
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
#NOTE: MUST be ran as administrator! | |
<# | |
***************************************************** | |
* ADChangesLogger * | |
***************************************************** | |
Created By: Gunslap | |
Date Created: June 2nd, 2014 |
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
<# | |
.SYNOPSIS | |
This function disables accounts that are older than a certain threshhold. | |
.DESCRIPTION | |
Searches active directory for users based on an inputted searchbase for users that haven't logged in since a certain threshhold or haven't logged in ever and were created before that threshhold and disables them and marks in their description when and why they were disabled. | |
.PARAMETER $SearchBase | |
This is where to search in Active Directory. Must be in DN form: "ou=x,ou=x,dc=x,dc=x". |
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
<# | |
******************************** | |
* Multi Wake On LAN Script * | |
******************************** | |
By: Gunslap | |
Last Updated: June 20th/2014 | |
Purpose: | |
This script will loop through a provided .csv list of MAC addresses, or a list passed in from |
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
############################# | |
# Modify User Lync Number # | |
############################# | |
<# | |
Description: | |
This script will allow you to automate Lync (Skype for Business) number assignment. | |
It will update the user's number in Lync, as well as AD. | |
If you use a spreadsheet to track number assignment you'll want to add sections to update that as well. | |
Prereqs: |
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
<# | |
************************************************************* | |
* Set Desktoop Background to Default for All Local Profiles * | |
************************************************************* | |
Purpose: | |
This script will loop through all of the user profiles on the | |
local machine and reset the desktop background to the default value in the registry (user hive). | |
Win7 to Win10 USMT doesn't copy over custom wallpapers. | |
So this is often left blank, leaving users with a black background. |
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
<# | |
************************************** | |
* Email Expiring Password Reminder * | |
************************************** | |
Created By: Gunslap | |
Purpose: | |
This script will query AD for user's whose passwords will expire on the day, 5 days from today, and 1 day, and then send them an email reminder, as well as writes | |
the emailed users out to a 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
#Google Photos File Renamer: | |
#just a quick script to rename your jpg's downloaded from google photos after their subfolder's name | |
#(the date they were uploaded if you used Google Takeout) while adding an incrementing number | |
#ie: "(1)" like explorer does if the filename already exists | |
#Path to Google Photos directory (should have subdirectories named as dates) | |
$path = Get-ChildItem -Path "D:\Downloads\Takeout\Google Photos" | |
#Loop through the subfolders | |
foreach ($folder in $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
$path = "V:\_Movies" #Path to scan | |
#Grab all files + folders in that path | |
$childItems = Get-ChildItem -Path $path -Force | |
#Loop through the child items | |
foreach($item in $childItems) | |
{ | |
#filter out directories | |
if($item.PSIsContainer -eq $false) |
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
<# | |
.Synopsis | |
BINERDLE - a binary response number guessing game! | |
.Description | |
Try to guess the number using only "HIGHER" and "LOWER" as clues before your guesses run out! | |
.Parameter numGuesses | |
The number of guesses to give the player. Default 10. |