Run a FIM 2010 R2 specific Management Agent with PowerShell

Hello, Here is a cmdlet I to start a selected Management Agent with a specific Run Profil. (Get-WmiObject -ComputerName $FIMSyncServer -NameSpace ‘root/MicrosoftIdentityIntegrationServer’ -Class ‘MIIS_ManagementAgent’ | Where-Object { $_.Name -eq $ManagementAgent }).Execute($RunProfile)

List FIM 2010 R2 Management Agents with PowerShell

Hello, Here is the cmdlet to list FIM Sync Management Agents. Get-WmiObject -ComputerName ‘FIMSyncServer’ -NameSpace ‘root/MicrosoftIdentityIntegrationServer’ -Class ‘MIIS_ManagementAgent’

Get the Run History of FIM Sync using PowerShell

Hello, If like you me you use Forefront Identity Manager for a long time and love PowerShell you might want to use the following PowerShell command to list the Run History of FIM Synchronization Server. Get-WmiObject -ComputerName $FIMSyncServer -NameSpace ‘root/MicrosoftIdentityIntegrationServer’ -Class ‘MIIS_RunHistory’

Get a named item value in a XAML with PowerShell

Hello, I came up with the same idear from my previous post??but to get informations back from the named item. Function Get-ControlValue { ?? ?? [CmdletBinding()] Param( [String]$Control, [Object]$Window = $Window ) switch ($Window.$Control.GetType().Name) { ‘TextBox’ { $Value = $Window.$Control.Text } ‘ComboBox’ { $Value = $Window.$Control.SelectedItem } ‘Button’ { $Value = $Window.$Control.Content } } Write-Output […]

Set a named item value in a XAML with PowerShell

Hello, I wrote this small function to set the value depending on the control type. Function Set-ControlValue { [CmdletBinding()] Param( [String[]]$Control, [String]$Value, [Object]$Window = $Window ) foreach ($control in $control) { switch ($Window.$Control.GetType().Name) { ‘TextBox’ { $Window.$Control.Text = $Value } ‘TextBlock’ { $Window.$Control.Text = $Value } ‘ComboBox’ { $Window.$Control.SelectedItem = $Value } ‘Button’ { $Window.$Control.Content […]

Disable a named item in XAML with PowerShell

Hello, Here is a function I wrote for my current script, to create user in Active Direcotry with a GUI in XAML, and which will disable a named item in the XAML. Function Disable-NamedItem { [CmdletBinding()] Param( [String[]]$Item, [Object]$Window = $Window ) foreach ($object in $Item) { $Window.$object.IsEnabled = $false } }

Add WPF ComboBoxItem in PowerShell

Hello, I have been working on a PowerShell tool to create users in Active Directory with a GUI. Thanks to Tobias Weltner and his ISESteroids it is now easy to work with XAML in PowerShell ISE. For this tool I had to create couple of dropdown which will contains Sites list, Company list, Preferred Language […]

How can I use PowerShell to manage FIM 2010 R2 ?

Hello Currently working on a project for Avanade with Forefront Identity Manager 2010 R2 and making my way arround PowerShell. As You may not know, there is no PowerShell module for FIM 2010 R2 at all (except the FIMAutomation snippet but limited to the FIM Portal part). There is a snippet available from the FIM […]

FIM 2010 R2 Self-Service Password Reset : Permissions minimum pour le compte de service

As you may know the best practices regarding Active Directory account permissions is to set them with the least required. In order to??set the minimum permissions required to enable password reset with FIM SSPR you??will have to set the permission as following in you Active Directory. Open Active Directory Users and Computers with advanced features. […]