< Back
Set-CrmUserSettings
Post
NAME Set-CrmUserSettings
SYNOPSIS
Update CRM user's settings.
SYNTAX
Set-CrmUserSettings [-conn <CrmServiceClient>] [-CrmRecord] <PSObject> [<CommonParameters>]
DESCRIPTION
The Set-CrmUserSettings cmdlet lets you update CRM user's settings.
PARAMETERS
-conn <CrmServiceClient>
A connection to your CRM organization. Use $conn = Get-CrmConnection <Parameters> to generate it.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-CrmRecord <PSObject>
A CRMUserSettings object. Use Get-CrmUserSettings to retrieve the setting.
Required? true
Position? 1
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
OUTPUTS
NOTES
-------------------------- Example 1 --------------------------
PS C:\\>$userSettings = Get-CrmUserSettings -conn $conn -UserId (Get-MyCrmUserId) -Fields *
PS C:\\>$userSettings.timezonecode = 4
PS C:\\>Set-CrmUserSettings -conn $conn -CrmRecord $userSettings
This example retrieves retrieves all fields from login User's UserSettings update TimeZone to Pacific Time.
-------------------------- Example 2 --------------------------
PS C:\\>$userSettings = Get-CrmUserSettings (Get-MyCrmUserId) *
PS C:\\>$userSettings.paginglimit = 100
PS C:\\>Set-CrmUserSettings $userSettings
This example retrieves all fields from login User's UserSettings and update PagingLimit to 100 by omitting
parameter names.
When omitting parameter names, you do not provide $conn, cmdlets automatically finds it.
RELATED LINKS
SYNOPSIS
Update CRM user's settings.
SYNTAX
Set-CrmUserSettings [-conn <CrmServiceClient>] [-CrmRecord] <PSObject> [<CommonParameters>]
DESCRIPTION
The Set-CrmUserSettings cmdlet lets you update CRM user's settings.
PARAMETERS
-conn <CrmServiceClient>
A connection to your CRM organization. Use $conn = Get-CrmConnection <Parameters> to generate it.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-CrmRecord <PSObject>
A CRMUserSettings object. Use Get-CrmUserSettings to retrieve the setting.
Required? true
Position? 1
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
OUTPUTS
NOTES
-------------------------- Example 1 --------------------------
PS C:\\>$userSettings = Get-CrmUserSettings -conn $conn -UserId (Get-MyCrmUserId) -Fields *
PS C:\\>$userSettings.timezonecode = 4
PS C:\\>Set-CrmUserSettings -conn $conn -CrmRecord $userSettings
This example retrieves retrieves all fields from login User's UserSettings update TimeZone to Pacific Time.
-------------------------- Example 2 --------------------------
PS C:\\>$userSettings = Get-CrmUserSettings (Get-MyCrmUserId) *
PS C:\\>$userSettings.paginglimit = 100
PS C:\\>Set-CrmUserSettings $userSettings
This example retrieves all fields from login User's UserSettings and update PagingLimit to 100 by omitting
parameter names.
When omitting parameter names, you do not provide $conn, cmdlets automatically finds it.
RELATED LINKS