Skip to content

Instantly share code, notes, and snippets.

Darren Robinson darrenjrobinson

Block or report user

Report or block darrenjrobinson

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@darrenjrobinson
darrenjrobinson / Password.ps1
Created Jan 25, 2016
MIMHomeDirPSMA-Password
View Password.ps1
# intentionally left blank
View Import.ps1
param (
$Username,
$Password,
$OperationType,
[bool] $usepagedimport,
$pagesize
)
#Needs reference to .NET assembly used in the script.
View Export.ps1
param (
$Username,
$Password
)
BEGIN
{
$DebugFilePath = "C:\PROGRA~1\MICROS~4\2010\SYNCHR~1\EXTENS~2\HomeDir\homefolder\DebugHomeFolderMA.txt"
if(!(Test-Path $DebugFilePath))
{$DebugFile = New-Item -Path $DebugFilePath -ItemType File}
@darrenjrobinson
darrenjrobinson / Schema.ps1
Last active Nov 17, 2018
Microsoft Identity Manager Terminal Services PowerShell Management Agent Schema Script. Supporting blog post is located here https://blog.darrenjrobinson.com/managing-ad-terminal-services-configuration-with-fim-mim-using-the-granfeldt-powershell-management-agent/
View Schema.ps1
$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 "TSUserParameters|String" -Value "blob"
$obj | Add-Member -Type NoteProperty -Name "TSProfilePath|String" -Value "\\server\home$\user\tsprofile"
$obj | Add-Member -Type NoteProperty -Name "TSAllowLogon|Integer" -Value 1
$obj | Add-Member -Type NoteProperty -Name "TSHomeDir|String" -Value "\\server\home$\user\tshome"
$obj | Add-Member -Type NoteProperty -Name "TSHomeDrive|String" -Value "W:"
$obj
@darrenjrobinson
darrenjrobinson / Password.ps1
Last active Feb 2, 2016
MIMTermServPSMA-Password
View Password.ps1
# No Implemented
@darrenjrobinson
darrenjrobinson / Import.ps1
Last active Nov 17, 2018
Microsoft Identity Manager Terminal Services PowerShell Management Agent Schema Script. Supporting blog post is located here https://blog.darrenjrobinson.com/managing-ad-terminal-services-configuration-with-fim-mim-using-the-granfeldt-powershell-management-agent/
View Import.ps1
param (
$Username,
$Password,
$Credentials,
$OperationType,
[bool] $usepagedimport,
$pagesize
)
@darrenjrobinson
darrenjrobinson / Export.ps1
Last active Nov 17, 2018
Microsoft Identity Manager Terminal Services PowerShell Management Agent Schema Script. Supporting blog post is located here https://blog.darrenjrobinson.com/managing-ad-terminal-services-configuration-with-fim-mim-using-the-granfeldt-powershell-management-agent/
View Export.ps1
param (
$Username,
$Password
)
BEGIN
{
$DebugFilePath = "C:\PROGRA~1\MICROS~4\2010\SYNCHR~1\EXTENS~2\TermServ\ts\DebugTermServicesMA.txt"
if(!(Test-Path $DebugFilePath))
@darrenjrobinson
darrenjrobinson / Schema.ps1
Created Feb 2, 2016
MIMUsrPlacementPSMA-Schema
View Schema.ps1
$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 "cn|String" -Value "first last"
$obj | Add-Member -Type NoteProperty -Name "distinguishedName|string" -Value "cn=first last,OU=employees,DC=customer,DC=com,DC=au"
$obj | Add-Member -Type NoteProperty -Name "state|String" -Value "NSW"
$obj | Add-Member -Type NoteProperty -Name "title|String" -Value "manager"
$obj | Add-Member -Type NoteProperty -Name "upn|String" -Value "user@customer.com"
$obj | Add-Member -Type NoteProperty -Name "targetOU|String" -Value "ou=ninjas,dc=customer,dc=com,dc=au"
@darrenjrobinson
darrenjrobinson / Password.ps1
Last active Feb 2, 2016
MIMUsrPlacementPSMA-Password
View Password.ps1
# intentionally left blank
@darrenjrobinson
darrenjrobinson / Import.ps1
Last active Feb 2, 2016
MIMUsrPlacementPSMA-Import
View Import.ps1
param (
$Username,
$Password,
$OperationType,
[bool] $usepagedimport,
$pagesize
)
#Needs reference to .NET assembly used in the script.
You can’t perform that action at this time.