Skip to content

Commit 05c5dd5

Browse files
authored
Merge pull request MicrosoftDocs#639 from tseward/patch-326
Update Set-SPProfileServiceApplication.md
2 parents 59bc371 + 6c7bd9b commit 05c5dd5

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

sharepoint/sharepoint-ps/sharepoint-server/Set-SPProfileServiceApplication.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,11 @@ For permissions and the most current information about Windows PowerShell for Sh
5151

5252
### ---------------EXAMPLE---------------------
5353
```
54-
C:\PS>$ap = Get-SPServiceApplication -Name PartitionedUserProfileApplication
55-
56-
C:\PS>#Change the name of the application
57-
Set-SPProfileServiceApplication -Identity $ap -Name PartitionedUserProfileApplication2
54+
PS C:\>$sa = Get-SPServiceApplication | ?{$_.TypeName -eq 'User Profile Service Application'}
55+
PS C:\>Set-SPProfileServiceApplication -Identity $sa -PurgeNonImportedObjects:$true
5856
```
5957

60-
This example sets profile information by using the specified identity.
58+
This example purges objects from the Profile database which are not in scope of the User Profile import.
6159

6260

6361
## PARAMETERS
@@ -393,7 +391,7 @@ Accept wildcard characters: False
393391
```
394392

395393
### -ProfileDBFailoverServer
396-
{{Fill ProfileDBFailoverServer Description}}
394+
Specifies the name of the failover SQL server for Profile database. It is used to build the connection string for the Profile database.
397395

398396
```yaml
399397
Type: String

0 commit comments

Comments
 (0)