I hereby claim:
- I am scruffydan on github.
- I am scruffydan (https://keybase.io/scruffydan) on keybase.
- I have a public key ASB-VZfiKVizwBQ7MUxgsVJL3_ZfOhnkgVBIC01Ev_7fSAo
To claim this, I am signing this object:
Net user loginname /DOMAIN /active:YES |
# Steps: | |
# Run command in PowerShell on the DirSync server. ($adConnector and $aadConnector are found in Connectors tab in Synchronization Service Manager) | |
# Perform Full Sync command in PowerShell. | |
# Azure AD Password toggle: | |
$adConnector = "<CASE SENSITIVE AD CONNECTOR NAME>" | |
$aadConnector = "<CASE SENSITIVE AAD CONNECTOR NAME>" | |
Import-Module adsync | |
$c = Get-ADSyncConnector -Name $adConnector | |
$p = New-Object Microsoft.IdentityManagement.PowerShell.ObjectModel.ConfigurationParameter “Microsoft.Synchronize.ForceFullPasswordSync”, String, ConnectorGlobal, $null, $null, $null |
A small collection of useful robocopy scripts |
I hereby claim:
To claim this, I am signing this object:
/** | |
* Utility function to check if a gravatar exists for a given email or id | |
* @param int|string|object $id_or_email A user ID, email address, or comment object | |
* @return bool if the gravatar exists or not | |
*/ | |
function validate_gravatar($id_or_email) { | |
//id or email code borrowed from wp-includes/pluggable.php | |
$email = ''; |
#!/bin/sh | |
TTL="300" | |
ZONE="example.com" | |
HOSTS="@ subdomain0 subdomain1" #subdomains seperated by spaces | |
LASTIP_CHECK="example.com" #domain to check to se if current IP matches public DNS records | |
# Use -f to force ip change | |
if echo "$1" | grep -q "\-f" ; then | |
FORCE=true |