Remove-FIMAttribute

NAME
    Remove-FIMAttribute
    
SYNOPSIS
    Removes a value to a multi-valued attribute.
    
SYNTAX
    Remove-FIMAttribute [-Resource] <PSObject> [-AttributeName] <String> [-AttributeValue] <Object> [-Locale <String>] [-FullyResolved] [-PassThru] [<CommonParameters>]
    
    
DESCRIPTION
    

PARAMETERS
    -Resource <PSObject>
        
        Required?                    true
        Position?                    1
        Default value                
        Accept pipeline input?       true (ByValue)
        Accept wildcard characters?  
        
    -AttributeName <String>
        
        Required?                    true
        Position?                    2
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  
        
    -AttributeValue <Object>
        The value can be a POCO or a script block which will be passed the current resource to use to calculate a value.
        
        Required?                    true
        Position?                    3
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  
        
    -Locale <String>
        
        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  
        
    -FullyResolved [<SwitchParameter>]
        
        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  
        
    -PassThru [<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 Set-FIMResource cmdlet must be called to commit the change to the resource.
        
        The FIMAutomation PowerShell snapin does not support DateTime attributes pre-R2.
    
    -------------------------- EXAMPLE 1 --------------------------
    
    C:\PS>Get-FIMResource '/Person[AccountName = "adam.weigert" and Domain = "fim.codeplex.com"]' | Remove-FIMAttribute -Name 'ProxyAddresses' -Value 'adam.weigert@fim.codeplex.com'
    
    
    Removes the value for each resource to the ProxyAddresses attribute
    
    
    
    
    
    -------------------------- EXAMPLE 2 --------------------------
    
    C:\PS>Get-FIMResource '/Person[Domain = "fim.codeplex.com"]' | Remove-FIMAttribute -Name 'ProxyAddresses' -Value { $_.AccountName + '@fim.codeplex.com' }
    
    
    Removes the calculated value to each resource
    
    
    
    
    
    
RELATED LINKS

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

Comments

No comments yet.