Skip to content

Commit 9fe1773

Browse files
Merge pull request #791 from Rick-Anderson/patch-1
Update Set-SPMachineKey.md
2 parents 12fff8b + 6eb6e2a commit 9fe1773

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ The new keys are deployed to all servers in the farm.
3434

3535
### -------------EXAMPLE 2-------------
3636
```powershell
37-
Set-SPMachineKey -WebApplication http://sitename -DecryptionKey '509EEEE0709AE3EA2690017D174648075D3E7659FB7CBC65F08661F737610501' -ValidationKey '988EAEF669CC691E420C3887F54BDD7D0741C84CBA36406FCA5250B780771469' -Local
37+
Set-SPMachineKey -WebApplication http://sitename -DecryptionKey '<Your Key!>' -ValidationKey '<Your Key!>' -Local
3838
```
3939

40-
This example sets the ASP.NET view state decryption and validation keys for web application 'http://sitename' to new keys specified by the DecryptionKey and ValidationKey parameters.
41-
The new keys are only deployed to the local server.
42-
Other servers in the farm will continue to use the previous keys.
40+
The preceding sample sets the ASP.NET view state decryption and validation keys for web application 'http://sitename' to new keys specified by the DecryptionKey and ValidationKey parameters. The new keys are only deployed to the local server. Other servers in the farm will continue to use the previous keys.
41+
42+
See **How to generate a `<machineKey> element`** in the [Resolving view state message authentication code (MAC) errors](https://support.microsoft.com/en-us/topic/resolving-view-state-message-authentication-code-mac-errors-6c0e9fd3-f8a8-c953-8fbe-ce840446a9f3) support article for information on generating keys.
4343

4444
## PARAMETERS
4545

0 commit comments

Comments
 (0)