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
#Login to Exchange Online | |
#Replace <UPN> with your admin email account | |
#Reference: https://docs.microsoft.com/en-us/powershell/exchange/connect-to-exchange-online-powershell?view=exchange-ps | |
Import-Module ExchangeOnlineManagement | |
Connect-ExchangeOnline -UserPrincipalName <UPN> |
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
# Accounts | |
# Access work or school | |
ms-settings:workplace | |
# Email & app accounts | |
ms-settings:emailandaccounts | |
# Family & other people | |
ms-settings:otherusers | |
# Set up a kiosk | |
ms-settings:assignedaccess |
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
import java.util.*; | |
int howMany = 361; | |
int howManyFrames = 9840; //2:44 @ 60FPS | |
int size=30; | |
Stack[] stacks = new Stack[howMany]; | |
Turtle[] turtles = new Turtle[howMany]; | |
void setup() { |
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
/************* | |
Tristan Madden | |
08-28-2019 | |
**************/ | |
float x = 0; | |
float y = 0; | |
float[][] magicX = { | |
{0.00, 0.00}, |
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
# Microsoft apps can be removed individually with wildcard support like so: | |
Get-Appxpackage *Bing* | Remove-Appxpackage | |
Get-Appxpackage *News* |Remove-Appxpackage | |
Get-Appxpackage *Office* | Remove-Appxpackage | |
Get-Appxpackage *Skype* | Remove-Appxpackage | |
Get-Appxpackage *Solitaire* |Remove-Appxpackage | |
Get-Appxpackage *Sports* |Remove-Appxpackage | |
Get-Appxpackage *Weather* |Remove-Appxpackage | |
Get-Appxpackage *Xbox* | Remove-Appxpackage | |
Get-Appxpackage *Zune* | Remove-Appxpackage |
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
#Step 1. Load your targets into an array from a text file. | |
$Targets = Get-Content 'targets.txt' | |
#Step 2. Create a DataTable | |
$table = New-Object system.Data.DataTable "MyTable" | |
$col1 = New-Object system.Data.DataColumn Computer,([string]) | |
$col2 = New-Object system.Data.DataColumn Status,([string]) | |
$table.columns.add($col1) | |
$table.columns.add($col2) |
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
#View Scheduler Configuration | |
Import-Module ADSync | |
Get-ADSyncScheduler | |
#Delta Active Directory Sync | |
Import-Module ADSync | |
Start-ADSyncSyncCycle -PolicyType Delta | |
#Full Azure Active Directory Sync | |
Import-Module ADSync |
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
#Export a table of last logon dates for every domain computer | |
import-module ActiveDirectory | |
Get-ADComputer -Filter * -Property * | Format-Table Name,lastLogonDate,OperatingSystem,OperatingSystemVersion –Auto | Out-File 'file.txt' -Append |
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
$path ="HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" | |
$aal = "1" | |
#The only modifications you need to make are to the following 3 variables: | |
$ddn = "yourdomain.org" | |
$dp = "DEFAULT PASSWORD" | |
$dun = "DEFAULT USER NAME" | |
function RegistryEntry { | |
param( [string]$name, [string]$value ) |
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
import java.util.Scanner; | |
public class Kattis { | |
public static void main(String[] args) { | |
Scanner sc = new Scanner(System.in); | |
while (sc.hasNext()) { |