I hereby claim:
- I am chrisbrownie on github.
- I am chrisbrown (https://keybase.io/chrisbrown) on keybase.
- I have a public key ASBrRkX0CgLOjIiyihAbRRW6TZSlZPPKVDphaNGOKWABUAo
To claim this, I am signing this object:
# Because we all know loading up an already overwhelmed site helps #Census | |
$url = "https://ebgames.com.au/featured/nintendo-classic-mini-nes" | |
$passes = 0 | |
$fails = 0 | |
while ($true) { | |
try { | |
iwr $url -ErrorAction "STOP" -Verbose:$false | Out-Null |
I hereby claim:
To claim this, I am signing this object:
Set-AdfsWebTheme -TargetName "yourcustomtheme" -AdditionalFileResource | |
@{ | |
Uri="/adfs/portal/script/onload.js" | |
Path="C:\adfs\assets\theme\script\onload.js" | |
}, @{ | |
Uri="/adfs/portal/logo/favicon.ico" | |
Path="C:\adfs\assets\script\onload.js" | |
} |
// From https://gist.github.com/mathiasbynens/428626 | |
document.head || (document.head = document.getElementsByTagName('head')[0]); | |
function changeFavicon(src) { | |
var link = document.createElement('link'), | |
oldLink = document.getElementById('dynamic-favicon'); | |
link.id = 'dynamic-favicon'; | |
link.rel = 'icon'; | |
link.href = src; | |
if (oldLink) { |
$Servers = Get-ExchangeServer | ? IsE15OrLater | Select -exp Name | |
Get-Service -ComputerName $servers -Name “MSExchangeIMAP4”,”MSExchangeIMAP4BE” | Set-Service -StartupType Automatic | |
Get-Service -ComputerName $servers -Name “MSExchangeIMAP4”,”MSExchangeIMAP4BE” | Start-Service |
# Fired when a SMSSec 2000 (AuthN failure) occurs | |
$SmtpDetails = @{ | |
"SmtpServer" = "smtp.margiestravel.com" | |
"To" = "[email protected]" | |
"Subject" = "" | |
"Body" = "" | |
"From" = "[email protected]" | |
"BodyAsHtml" = $true | |
"Priority" = "High" |
function Get-Office365Photo($EmailAddress,$Credential) { | |
$wc = New-Object System.Net.WebClient | |
$wc.credentials = $Credential | |
# Build the URL that'll return the jpeg of the user's photo | |
$url = "https://outlook.office365.com/ews/exchange.asmx/s/GetUserPhoto?email=$EmailAddress&size=HR96x96" | |
# Build a path to export it to (.\[email protected]) | |
$outPath = "$pwd\$EmailAddress.jpg" | |
try { | |
# Download the image and save it to the current directory | |
$wc.DownloadFile($url,$outPath) |
# Connect to Exchange Online | |
$exo = New-PSSession -ConfigurationName Microsoft.Exchange ` | |
-ConnectionUri https://ps.outlook.com/powershell-liveid ` | |
-Authentication Basic ` | |
-AllowRedirection ` | |
-Credential $(Get-credential) | |
Import-PSSession $exo | |
# Get all mailboxes that do not have litigation hold enabled |
Connect-MsolService | |
New-MsolDomain -Name sub.contoso.com -Authentication Managed |
Connect-MsolService | |
New-MsolDomain -Name sub.contoso.com -Authentication Federated |