Remove-ScriptSession

Removes a persistent Script Session from memory.

Syntax

Remove-ScriptSession -Id <String[]>

Remove-ScriptSession -Session <ScriptSession[]>

Detailed Description

Removes a persistent Script Session from memory.

© 2010-2017 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions

Parameters

-Id  <String[]>

Id of the PowerShell session to be removed from memory.

Aliases
Required? true
Position? named
Default Value
Accept Pipeline Input? true (ByValue)
Accept Wildcard Characters? false

-Session  <ScriptSession[]>

Session to be removed.

Aliases
Required? true
Position? named
Default Value
Accept Pipeline Input? true (ByValue)
Accept Wildcard Characters? false

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • Resident Script Session obtained through Get-ScriptSessio Id of a resident Script Sessio Cognifide.PowerShell.Core.Host.ScriptSessio* System.String

Notes

Help Author: Adam Najmanowicz, Michael West

Examples

EXAMPLE


The following removes the script session using the specified Id.

PS master:\> Remove-ScriptSession -Id "Long running script"

results matching ""

    No results matching ""