< Back

Set-PSFTeppResult

Sun Jan 19, 2020 6:45 pm

NAME Set-PSFTeppResult



SYNOPSIS

Refreshes the tab completion value cache.





SYNTAX

Set-PSFTeppResult [-TabCompletion] <String> [-Value] <String[]> [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

Refreshes the tab completion value cache for the specified completion scriptblock.



Tab Completion scriptblocks can be configured to retrieve values from a dedicated cache.

This allows seamless background refreshes of completion data and eliminates all waits for the user.





PARAMETERS

-TabCompletion <String>

The name of the completion script to set the last results for.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Value <String[]>

The values to set.



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

If this switch is enabled, no actions are performed but informational messages will be displayed that explain

what would happen if the command were to run.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

If this switch is enabled, you will be prompted for confirmation before executing any operations that change

state.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Set-PSFTeppResult -TabCompletion 'MyModule.Computer' -Value (Get-ADComputer -Filter *).Name



Stores the names of all computers in AD into the tab completion cache of the completion scriptblock

'MyModule.Computer'











RELATED LINKS