< Back

Set-LinaUser

Fri Jan 10, 2020 9:28 pm

NAME Set-LinaUser



SYNOPSIS

Changes the configuration of a user.





SYNTAX

Set-LinaUser -LinaObjects <PSObject[]> [-Password <String>] [-UserGroup <String>] [-Disabled <Nullable`1>]

[<CommonParameters>]





DESCRIPTION

Changes the configuration of a user : Enable/Disable, Password, UserGroup





PARAMETERS

-LinaObjects <PSObject[]>



Required? true

Position? named

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Password <String>

Optional : New password for the user(s)



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-UserGroup <String>

Optional : New user group (and user profile) for the user(s)

Note : User group has to be in the same tenant as the user



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Disabled <Nullable`1>

Optional : New status of the user(s). Can be $True (Disabled) or $False (Enabled)



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

Array of LinaUser Objects





OUTPUTS

The modified LinaUser Objects





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



PS C:\\>Get-LinaUser -Name "MyUser" | Set-LinaUser -Disabled $False



Enables the user MyUser









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-LinaUser -Name "MyUser*" | Set-LinaUser -Password "bioubiou" -Disabled $False -UserGroup "Groupe

d'utilisateurs par d????faut"



Changes users "MyUser*" password, user group and enable them











RELATED LINKS