CmdID

CmdID / PowerShell / Cmdlets / Set

Set-UserPhoto

Use the Set-UserPhoto cmdlet to configure the user photos feature that allows users to associate a picture with their account. Exchange PowerShell reference

From the Exchange PowerShell reference 12 parameters Its page in the reference

Opens CmdID with your command, read as PowerShell. It is read in your browser and sent nowhere.

Parameters

12 in the Exchange PowerShell reference
-IdentityThe Identity parameter specifies the identity of the user.
-CancelThe Cancel switch deletes the current preview photo.
-PictureDataThe PictureData parameter specifies the photo file to upload to the user's account.
-PictureStreamThe PictureStream parameter specifies the photo to upload to the user's account.
-PreviewThe Preview switch uploads a preview photo for the user account.
-SaveThe Save switch specifies the uploaded photo is saved as the user's photo.
-Confirm, -cfThe Confirm switch specifies whether to show or hide the confirmation prompt.
-DomainControllerThe DomainController parameter specifies the domain controller that's used by this cmdlet to read data from or write data to Active Directory.
-GroupMailboxThe GroupMailbox switch is required to modify Microsoft 365 Groups.
-IgnoreDefaultScopeThe IgnoreDefaultScope switch tells the command to ignore the default recipient scope setting for the Exchange PowerShell session, and to use the entire forest as the scope.
-PhotoTypeThis parameter is reserved for internal Microsoft use.
-WhatIf, -wiThe WhatIf switch shows what the command does without making any changes.