< Back
Remove-LinaUserProfile
Post
NAME Remove-LinaUserProfile
SYNOPSIS
Deletes a User Profile from a Lina Server.
SYNTAX
Remove-LinaUserProfile -Name <String> [-WhatIf] [-Bulk] [<CommonParameters>]
Remove-LinaUserProfile -LinaObjects <PSObject[]> [-WhatIf] [-Bulk] [<CommonParameters>]
DESCRIPTION
Deletes a User Profile.
PARAMETERS
-LinaObjects <PSObject[]>
Required? true
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Name <String>
Name of the User Profile(s) to delete. Wildcards are accepted (don't forget to enable Bulk mode for actions on
multiple profiles).
Note : Be careful, multiple User Profiles can have the same name in different tenants.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
No actual deletion will happen if set. It will only display what User Profile(s) would be deleted.
Sometimes also called "Dry Run mode"
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-Bulk [<SwitchParameter>]
Security parameter to enable deletion of multiple User Profiles. If not set only one User Profile will be
deleted.
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
Accept pipelining of LinaUserProfile objects (from Get-LinaUserProfile for example)
OUTPUTS
None
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Remove-LinaUserProfile -Name "MyUserProfile"
Real deletion of a single User Profile by name
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-LinaUserProfile -Name "MyUserProfile" | Remove-LinaUserProfile
Same example as #1 but using piped commands
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Get-LinaUserProfile -Name "MyUserProfile*" | Remove-LinaUserProfile -Bulk -WhatIf
Simulates deletion of a multiple User Profiles by name (WhatIf mode)
-------------------------- EXAMPLE 4 --------------------------
PS C:\\>Get-LinaUserProfile -Name "MyUserProfile" | Remove-LinaUserProfile -Bulk
Real deletion of a multiple User Profiles by name.
RELATED LINKS
SYNOPSIS
Deletes a User Profile from a Lina Server.
SYNTAX
Remove-LinaUserProfile -Name <String> [-WhatIf] [-Bulk] [<CommonParameters>]
Remove-LinaUserProfile -LinaObjects <PSObject[]> [-WhatIf] [-Bulk] [<CommonParameters>]
DESCRIPTION
Deletes a User Profile.
PARAMETERS
-LinaObjects <PSObject[]>
Required? true
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Name <String>
Name of the User Profile(s) to delete. Wildcards are accepted (don't forget to enable Bulk mode for actions on
multiple profiles).
Note : Be careful, multiple User Profiles can have the same name in different tenants.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
No actual deletion will happen if set. It will only display what User Profile(s) would be deleted.
Sometimes also called "Dry Run mode"
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-Bulk [<SwitchParameter>]
Security parameter to enable deletion of multiple User Profiles. If not set only one User Profile will be
deleted.
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
Accept pipelining of LinaUserProfile objects (from Get-LinaUserProfile for example)
OUTPUTS
None
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Remove-LinaUserProfile -Name "MyUserProfile"
Real deletion of a single User Profile by name
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-LinaUserProfile -Name "MyUserProfile" | Remove-LinaUserProfile
Same example as #1 but using piped commands
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Get-LinaUserProfile -Name "MyUserProfile*" | Remove-LinaUserProfile -Bulk -WhatIf
Simulates deletion of a multiple User Profiles by name (WhatIf mode)
-------------------------- EXAMPLE 4 --------------------------
PS C:\\>Get-LinaUserProfile -Name "MyUserProfile" | Remove-LinaUserProfile -Bulk
Real deletion of a multiple User Profiles by name.
RELATED LINKS