Skip to content

Instantly share code, notes, and snippets.

View darrenjrobinson's full-sized avatar

Darren Robinson darrenjrobinson

View GitHub Profile
@darrenjrobinson
darrenjrobinson / Export.ps1
Last active January 25, 2016 01:25
MIMExchPSMA
param
(
$username,
$password,
$ExportType
)
begin
{
@darrenjrobinson
darrenjrobinson / Import.ps1
Created January 25, 2016 01:41
MIMExchPSMA-Import
param (
$Username,
$Password,
$OperationType,
[bool] $usepagedimport,
$pagesize
)
#Needs reference to .NET assembly used in the script.
@darrenjrobinson
darrenjrobinson / Password.ps1
Created January 25, 2016 01:43
MIMExchPSMA-Password
# intentionally left blank
@darrenjrobinson
darrenjrobinson / Schema.ps1
Created January 25, 2016 01:45
MIMExchPSMA-Schema
$obj = New-Object -Type PSCustomObject
$obj | Add-Member -Type NoteProperty -Name "Anchor-objectGuid|String" -Value "00000000-0000-0000-0000-000000000001"
$obj | Add-Member -Type NoteProperty -Name "objectClass|String" -Value "user"
$obj | Add-Member -Type NoteProperty -Name "accountName|String" -Value "x_mim_adma"
$obj | Add-Member -Type NoteProperty -Name "msExchMailboxGuid|Binary" -Value 0x10
$obj | Add-Member -Type NoteProperty -Name "upn|String" -Value "[email protected]"
$obj | Add-Member -Type NoteProperty -Name "mail|String" -Value "[email protected]"
$obj | Add-Member -Type NoteProperty -Name "mailNickname|String" -Value ""
$obj | Add-Member -Type NoteProperty -Name "msExchHomeServerName|String" -Value ""
$obj | Add-Member -Type NoteProperty -Name "homeMDB|String" -Value ""
@darrenjrobinson
darrenjrobinson / Export.ps1
Created January 25, 2016 01:46
MIMExchPSMA-Export
param
(
$username,
$password,
$ExportType
)
begin
{
@darrenjrobinson
darrenjrobinson / Schema.ps1
Last active November 17, 2018 22:05
Microsoft Identity Manager Skype for Business / Lync PowerShell Management Agent Schema Script. Supporting blog post is located here https://blog.darrenjrobinson.com/provisioning-users-for-lync-skype-for-business-with-fim-mim-using-the-granfeldt-powershell-management-agent/
$obj = New-Object -Type PSCustomObject
$obj | Add-Member -Type NoteProperty -Name "Anchor-objectGuid|String" -Value "00000000-0000-0000-0000-000000000001"
$obj | Add-Member -Type NoteProperty -Name "objectClass|String" -Value "user"
$obj | Add-Member -Type NoteProperty -Name "accountName|String" -Value "x_mim_adma"
$obj | Add-Member -Type NoteProperty -Name "sipAddress|String" -Value "sip:[email protected]"
$obj | Add-Member -Type NoteProperty -Name "upn|String" -Value "[email protected]"
$obj | Add-Member -Type NoteProperty -Name "lyncEnabled|Boolean" -Value $true
$obj | Add-Member -Type NoteProperty -Name "RegistrarPool|String" -Value "Lync2013Pool.customer.com.au"
$obj | Add-Member -Type NoteProperty -Name "msDScloudextensionAttribute20|String" -Value ""
$obj
@darrenjrobinson
darrenjrobinson / Password.ps1
Created January 25, 2016 03:29
MIMLyncPSMA-Password
# intentionally left blank
@darrenjrobinson
darrenjrobinson / Import.ps1
Last active November 17, 2018 22:05
Microsoft Identity Manager Skype for Business / Lync PowerShell Management Agent Import Script. Supporting blog post is located here https://blog.darrenjrobinson.com/provisioning-users-for-lync-skype-for-business-with-fim-mim-using-the-granfeldt-powershell-management-agent/
param (
$Username,
$Password,
$OperationType,
[bool] $usepagedimport,
$pagesize
)
#Needs reference to .NET assembly used in the script.
@darrenjrobinson
darrenjrobinson / Export.ps1
Last active November 17, 2018 22:05
Microsoft Identity Manager Skype for Business / Lync PowerShell Management Agent Export Script. Supporting blog post is located here https://blog.darrenjrobinson.com/provisioning-users-for-lync-skype-for-business-with-fim-mim-using-the-granfeldt-powershell-management-agent/
param
(
$username,
$password,
$ExportType
)
begin
{
$DebugFilePath = "C:\PROGRA~1\MICROS~4\2010\SYNCHR~1\EXTENS~2\Lync\Lync\DebugLyncMA.txt"
@darrenjrobinson
darrenjrobinson / Schema.ps1
Last active January 25, 2016 06:08
MIMHomeDirPSMA-Schema
$obj = New-Object -Type PSCustomObject
$obj | Add-Member -Type NoteProperty -Name "Anchor-objectGuid|String" -Value "00000000-0000-0000-0000-000000000001"
$obj | Add-Member -Type NoteProperty -Name "objectClass|String" -Value "user"
$obj | Add-Member -Type NoteProperty -Name "accountName|String" -Value "x_mim_adma"
$obj | Add-Member -Type NoteProperty -Name "homeFolderPath|String" -Value "\\server\home$\userID\hdrive"
$obj | Add-Member -Type NoteProperty -Name "homeDrive|String" -Value "H:"
$obj