Clear-FIMRunHistory

NAME
    Clear-FIMRunHistory
    
SYNOPSIS
    Clears the run history before the specified date.
    
SYNTAX
    Clear-FIMRunHistory -FIMServer <ManagementObject> -DateTime <DateTime> [-WhatIf] [-Confirm] [<CommonParameters>]
    
    Clear-FIMRunHistory -FIMServer <ManagementObject> -TimeSpan <TimeSpan> [-WhatIf] [-Confirm] [<CommonParameters>]
    
    
DESCRIPTION
    

PARAMETERS
    -FIMServer <ManagementObject>
        
        Required?                    true
        Position?                    named
        Default value                
        Accept pipeline input?       true (ByValue)
        Accept wildcard characters?  
        
    -DateTime <DateTime>
        All run history before the specified value will be deleted.
        
        Required?                    true
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  
        
    -TimeSpan <TimeSpan>
        All run history before the current date minus the specified time span will be deleted.
        
        Required?                    true
        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
    
    -------------------------- EXAMPLE 1 --------------------------
    
    C:\PS>Get-FIMServer | Clear-FIMRunHistory -Time 30d
    
    
    Deletes all run history prior to 30 days ago.
    
    
    
    
    
    
RELATED LINKS

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

Comments

dalvares May 31, 2012 at 8:16 PM 
What is the exact syntax for this? The example show '-Time 30d' but shouldn't it be '-TimeSpan 30'?