< Back
Set-GlpiToolsChangeActiveEntities
Post
NAME Set-GlpiToolsChangeActiveEntities
SYNOPSIS
Function change active entity of GLPI.
SYNTAX
Set-GlpiToolsChangeActiveEntities [-EntitiesId] <Int32> [-IsRecursive] [<CommonParameters>]
DESCRIPTION
Change active entity to the entities id one. See Get-GlpiToolsEntities function /w -All parameter for possible
entities.
PARAMETERS
-EntitiesId <Int32>
This parameter provide to function entity id, on which you want to change.
Required? true
Position? 1
Default value 0
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-IsRecursive [<SwitchParameter>]
This parameter will enable display sub entities of the active entity. Parameter is optional
Required? false
Position? named
Default value False
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
Entities Id which you can find in GLPI, or using Get-GlpiToolsEntities parameter.
OUTPUTS
Output (if any)
NOTES
PSP 03/2019
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-GlpiToolsEntities -EntityName "put entity name here" | Select-Object -ExpandProperty Id |
Set-GlpiToolsChangeActiveEntities
Example changes active entity to entity which you provided to the pipeline
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-GlpiToolsEntities -EntityName "put entity name here" | Select-Object -ExpandProperty Id |
Set-GlpiToolsChangeActiveEntities -IsRecursive
Example changes active entity to entity which you provided to the pipeline, and enable display sub entities of
active entity.
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Set-GlpiToolsChangeActiveEntities -EntitiesId "id"
Example changes active entity to entity which you provided to the -EntitiesId parameter.
-------------------------- EXAMPLE 4 --------------------------
PS C:\\>Set-GlpiToolsChangeActiveEntities -EntitiesId "id" -IsRecursive
Example changes active entity to entity which you provided to the -EntitiesId parameter, and enable display sub
entities of active entity.
RELATED LINKS
SYNOPSIS
Function change active entity of GLPI.
SYNTAX
Set-GlpiToolsChangeActiveEntities [-EntitiesId] <Int32> [-IsRecursive] [<CommonParameters>]
DESCRIPTION
Change active entity to the entities id one. See Get-GlpiToolsEntities function /w -All parameter for possible
entities.
PARAMETERS
-EntitiesId <Int32>
This parameter provide to function entity id, on which you want to change.
Required? true
Position? 1
Default value 0
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-IsRecursive [<SwitchParameter>]
This parameter will enable display sub entities of the active entity. Parameter is optional
Required? false
Position? named
Default value False
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
Entities Id which you can find in GLPI, or using Get-GlpiToolsEntities parameter.
OUTPUTS
Output (if any)
NOTES
PSP 03/2019
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-GlpiToolsEntities -EntityName "put entity name here" | Select-Object -ExpandProperty Id |
Set-GlpiToolsChangeActiveEntities
Example changes active entity to entity which you provided to the pipeline
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-GlpiToolsEntities -EntityName "put entity name here" | Select-Object -ExpandProperty Id |
Set-GlpiToolsChangeActiveEntities -IsRecursive
Example changes active entity to entity which you provided to the pipeline, and enable display sub entities of
active entity.
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Set-GlpiToolsChangeActiveEntities -EntitiesId "id"
Example changes active entity to entity which you provided to the -EntitiesId parameter.
-------------------------- EXAMPLE 4 --------------------------
PS C:\\>Set-GlpiToolsChangeActiveEntities -EntitiesId "id" -IsRecursive
Example changes active entity to entity which you provided to the -EntitiesId parameter, and enable display sub
entities of active entity.
RELATED LINKS