Skip to content

Instantly share code, notes, and snippets.

View bpalfaro's full-sized avatar

Bryan Alfaro bpalfaro

View GitHub Profile
@bpalfaro
bpalfaro / EnableHybridReportingInMIM.ps1
Created January 12, 2019 22:48 — forked from KentNordstrom/EnableHybridReportingInMIM.ps1
Enable Hybrid Reporting in MIM 2016 without installing the MIMReportingAgent
<#
.SYNOPSIS
Script to manually configure MIM 2016 Hybrid Reporting without installing the Agent as described in
https://docs.microsoft.com/en-us/microsoft-identity-manager/working-with-identity-manager-hybrid-reporting
#>
# Step 1. Create the EventLog to store the MIM Request Events in.
New-EventLog -LogName "Identity Manager Request Log" -Source "Microsoft.IdentityManagement.Service"
Set-Variable -name REGKEY -value "HKLM:\SYSTEM\CurrentControlSet\Services\FIMService"
@bpalfaro
bpalfaro / instructions.md
Created August 16, 2018 02:52 — forked from davisford/Setup MongoDB on localhost as Replica Set
Setup MongoDB replica set on local host with only a single primary

Add the replication section to the mongod.conf file:

$cat /usr/local/etc/mongod.conf
systemLog:
  destination: file
  path: /usr/local/var/log/mongodb/mongo.log
  logAppend: true
storage:
  engine: mmapv1
@bpalfaro
bpalfaro / Backup-MIMConfig.ps1
Created June 20, 2018 12:03 — forked from Froosh/Backup-MIMConfig.ps1
Backup MIM Config (Synchronisation and Service/Portal) and create diffs/history with git
#Requires -Version 5
[CmdletBinding()]
Param (
[Parameter(Mandatory=$true)]
[ValidateNotNullOrEmpty()]
[string]
$MIMConfigPath
,
[Parameter()]