< Back

New-LinaUserProfile

Fri Jan 10, 2020 9:23 pm

NAME New-LinaUserProfile



SYNOPSIS

Creates a new user profile





SYNTAX

New-LinaUserProfile [-LinaUserProfiles <PSObject[]>] [[-Name] <String>] [[-Tenant] <String>] [<CommonParameters>]





DESCRIPTION

Creates a new user profile with the provided name or using its original name.

Note : Requires PowerShell 5.0 or greater.





PARAMETERS

-LinaUserProfiles <PSObject[]>



Required? false

Position? named

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Name <String>

Optional : Name of the User Profile to create. DO NOT pass the name if you pipe multiple User Profiles to the

command as only the first one will be created.



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Tenant <String>

Optional : Name of the tenant where the user profile should be created.

If not provided, user profile will be created in the current tenant.

In global view (no tenant selected), user profile will be created in the default tenant.



Required? false

Position? 2

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

Single LinaUserProfile Object or Array of parameters





OUTPUTS

LinaUserProfile Object





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



PS C:\\>Get-LinaUserProfile -Name "TemplateProfile" | New-LinaUserProfile -Name "MyUserProfile"



Creates a new user profile in current tenant with same config as TemplateProfile









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



PS C:\\>Get-LinaUserProfile -Tenant "MyTenant" | Where { $_.BuiltIn -ne $True -AND $_.InternalName -ne "Default" }

| New-LinaUserProfile -Tenant 'MyTenant2'



Clone all custom user profiles from Tenant MyTenant to MyTenant2











RELATED LINKS