This project is read-only.

Set-FIMResource

NAME
    Set-FIMResource
    
SYNOPSIS
    Commits all changes to the resource.
    
SYNTAX
    Set-FIMResource [-Resource] <PSObject> [-Set <Hashtable>] [-Add <Hashtable>] [-Remove <Hashtable>] [-Clear <String[]>] [-ComputerName <String>] [-Port <Int32>] [-Uri <String>] [-Credential <PSCredential>] [-WhatIf] [-Confirm] [<CommonParameters>]
    
    
DESCRIPTION
    

PARAMETERS
    -Resource <PSObject>
        
        Required?                    true
        Position?                    1
        Default value                
        Accept pipeline input?       true (ByValue)
        Accept wildcard characters?  
        
    -Set <Hashtable>
        This parameter only accepts single-valued attributes.
        
        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  
        
    -Add <Hashtable>
        This parameter only accepts multi-valued attributes.
        
        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  
        
    -Remove <Hashtable>
        This parameter only accepts multi-valued attributes.
        
        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  
        
    -Clear <String[]>
        This parameter only accepts single-valued attributes.
        
        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  
        
    -ComputerName <String>
        
        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  
        
    -Port <Int32>
        
        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  
        
    -Uri <String>
        
        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  
        
    -Credential <PSCredential>
        
        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  
        
    -WhatIf [<SwitchParameter>]
        
        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  
        
    -Confirm [<SwitchParameter>]
        
        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  
        
    <CommonParameters>
        This cmdlet supports the common parameters: Verbose, Debug,
        ErrorAction, ErrorVariable, WarningAction, WarningVariable,
        OutBuffer and OutVariable. For more information, type,
        "get-help about_commonparameters".
    
INPUTS
    
OUTPUTS
    
NOTES
    
    
        The default URI used is the one attached to the FIM resource. You can override the URI by passing in one or more of the explicit URI parameters: ComputerName, Port, or Uri.
    
    -------------------------- EXAMPLE 1 --------------------------
    
    C:\PS>Get-FIMResource '/Person[AccountName = "adam.weigert" and Domain = "fim.codeplex.com"]' | Set-FIMResource -Set {
    
    
    DisplayName = 'Adam Weigert';
        Email = 'adam.weigert@fim.codeplex.com';
    }
    
    Sets the DisplayName and Email attribute for the resource.
    
    
    
    
    
    -------------------------- EXAMPLE 2 --------------------------
    
    C:\PS>Get-FIMResource '/Person[Domain = "fim.codeplex.com"]' | Set-FIMResource -Attributes {
    
    
    Email = { $_.DisplayName + '@fim.codeplex.com' };
    }
    
    Sets the Email attribute to the calculated value for each resource.
    
    
    
    
    
    -------------------------- EXAMPLE 3 --------------------------
    
    C:\PS>Get-FIMResource '/Person[Domain = "fim.codeplex.com"]' | Add-FIMAttribute -Name 'ProxyAddresses' -Value { $_.DisplayName + '@fim.codeplex.com' } | Set-FIMResource
    
    
    Adds the calculated value to the ProxyAddresses attribute for each resource.
    
    
    
    
    
    
RELATED LINKS

Last edited Jan 16, 2012 at 4:18 AM by adweigert, version 2

Comments

No comments yet.