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
function Add-ClassroomTeacherToStudentsClasses { | |
[CmdletBinding()] | |
Param( | |
[string] | |
$Student,$Teacher, | |
[Parameter(ValueFromPipelineByPropertyName)] | |
$SamAccountName | |
) | |
$gamExeLocation = "\path\to\gam.exe" |
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 Posh-ACME Module --## | |
Import-Module -Name Posh-ACME | |
##-- set the server. LE_STAGE or LE_PROD --## | |
Set-PAServer LE_PROD | |
##-- set up letsencrypt acount if it doesn't already exist --## | |
If(!(Get-PAAccount)){ | |
New-PAAccount -AcceptTOS -Contact "<--email address for contact-->" | |
} |
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
function RoboDelete{ | |
param ( | |
$Path | |
) | |
##-- generate a randomly named folder --## | |
$randomString = -join ((48..57) + (97..122) | Get-Random -Count 32 | % {[char]$_}) | |
##-- make the empty directory --## | |
New-Item -ItemType Directory -Path $randomString -Verbose |