Skip to content

Commit efe8e71

Browse files
authored
Merge branch 'master' into patch-5
2 parents c5b00b8 + 1dcd0c9 commit efe8e71

File tree

14 files changed

+127
-59
lines changed

14 files changed

+127
-59
lines changed

docset/windows/addsadministration/new-adserviceaccount.md

Lines changed: 38 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Creates a new Active Directory managed service account or group managed service
2626
## SYNTAX
2727

2828
### Group (Default)
29-
```
29+
```yaml
3030
New-ADServiceAccount [-WhatIf] [-Confirm] [-AccountExpirationDate <DateTime>] [-AccountNotDelegated <Boolean>]
3131
[-AuthenticationPolicy <ADAuthenticationPolicy>] [-AuthenticationPolicySilo <ADAuthenticationPolicySilo>]
3232
[-AuthType <ADAuthType>] [-Certificates <String[]>] [-CompoundIdentitySupported <Boolean>]
@@ -40,7 +40,7 @@ New-ADServiceAccount [-WhatIf] [-Confirm] [-AccountExpirationDate <DateTime>] [-
4040
```
4141

4242
### RestrictedToSingleComputer
43-
```
43+
```yaml
4444
New-ADServiceAccount [-WhatIf] [-Confirm] [-AccountExpirationDate <DateTime>] [-AccountNotDelegated <Boolean>]
4545
[-AccountPassword <SecureString>] [-AuthenticationPolicy <ADAuthenticationPolicy>]
4646
[-AuthenticationPolicySilo <ADAuthenticationPolicySilo>] [-AuthType <ADAuthType>] [-Certificates <String[]>]
@@ -52,7 +52,7 @@ New-ADServiceAccount [-WhatIf] [-Confirm] [-AccountExpirationDate <DateTime>] [-
5252
```
5353

5454
### RestrictedToOutboundAuthenticationOnly
55-
```
55+
```yaml
5656
New-ADServiceAccount [-WhatIf] [-Confirm] [-AccountExpirationDate <DateTime>] [-AccountNotDelegated <Boolean>]
5757
[-AuthenticationPolicy <ADAuthenticationPolicy>] [-AuthenticationPolicySilo <ADAuthenticationPolicySilo>]
5858
[-AuthType <ADAuthType>] [-Certificates <String[]>] [-Credential <PSCredential>] [-Description <String>]
@@ -92,28 +92,28 @@ Then pass these objects through the pipeline to the **New-ADServiceAccount** cmd
9292
## EXAMPLES
9393

9494
### Example 1: Create an enabled managed service account
95-
```
95+
```Powershell
9696
PS C:\> New-ADServiceAccount -Name "Service01" -DNSHostName "Service01.contoso.com" -Enabled $True
9797
```
9898

9999
This command creates an enabled managed service account in Active Directory Domain Services (AD DS).
100100

101101
### Example 2: Create a managed service account and register its service principal name
102-
```
102+
```Powershell
103103
PS C:\> New-ADServiceAccount -Name "Service01" -ServicePrincipalNames "MSSQLSVC/Machine3.corp.contoso.com" -DNSHostName "Service01.contoso.com"
104104
```
105105

106106
This command creates a managed service account and registers its service principal name.
107107

108108
### Example 3: Create a managed service account for a single computer
109-
```
109+
```Powershell
110110
PS C:\> New-ADServiceAccount -Name "Service01" -RestrictToSingleComputer
111111
```
112112

113113
This command creates a managed service account and restricts its use to a single computer.
114114

115115
### Example 4: Create a managed service account for outbound authentication only
116-
```
116+
```Powershell
117117
PS C:\> New-ADServiceAccount -Name "Service01" -RestrictToOutboundAuthenticationOnly
118118
```
119119

@@ -756,6 +756,37 @@ Specifies the service principal names for the account.
756756
This parameter sets the **ServicePrincipalNames** property of the account.
757757
The LDAP display name (**ldapDisplayName**) for this property is servicePrincipalName.
758758

759+
To add values:
760+
761+
```Powershell
762+
-ServicePrincipalNames @{Add=value1,value2,...}
763+
```
764+
765+
To remove values:
766+
```Powershell
767+
-ServicePrincipalNames @{Remove=value1,value2,...}
768+
```
769+
770+
To replace values:
771+
```Powershell
772+
-ServicePrincipalNames @{Replace=value1,value2,...}
773+
```
774+
775+
To clear all values:
776+
```Powershell
777+
-ServicePrincipalNames $null
778+
```
779+
780+
You can specify more than one change by using a list separated by semicolons.
781+
For example, use the following syntax to add and remove service principal names.
782+
783+
`@{Add=value1,value2,...};@{Remove=value3,value4,...}`
784+
785+
The operators are applied in the following sequence:
786+
787+
- Remove
788+
- Add
789+
- Replace
759790

760791
```yaml
761792
Type: String[]

docset/windows/addsdeployment/uninstall-addsdomaincontroller.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,8 @@ Accept wildcard characters: False
256256
```
257257
258258
### -RemoveDnsDelegation
259-
Specifies whether to preserve DNS delegations that point to this DNS server from the parent DNS zone.
260259
261-
By default, this parameter is set to False, which means DNS delegations that point to this server from the parent DNS zone will not be retained after uninstallation of the domain controller.
260+
Specifies whether to preserve DNS delegation that point to this DNS server from the parent DNS Zone. If you use this parameter, DNS delegations that point to this server from the parent DNS zone will not be retained after uninstallation of the domain controller.
262261
This setting corresponds to the earlier Dcpromo.exe parameter default of /RemoveDNSDelegation:Yes.
263262
264263
```yaml

docset/windows/appx/remove-appxpackage.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,18 @@ Accept wildcard characters: False
106106
```
107107
108108
### -User
109-
If you specify this parameter, the cmdlet removes the app package for only the user that this cmdlet specifies. To remove a package for a user profile other than the profile of the current user, you must run this command by using administrator permissions. The user name can be in one of these formats:
110-
- domain\user_name
111-
- user_name@fqn.domain.tld
112-
- user_name
109+
If you specify this parameter, the cmdlet removes the app package for only the user that this cmdlet specifies. To remove a package for a user profile other than the profile of the current user, you must run this command by using administrator permissions.
113110
- SID-string
114111
112+
> [!NOTE]
113+
- User "parameter of the "Remove-AppxPackage" command only accepts SID
114+
- Use **whoami** command to display the current SID of a user, see [whoami syntax](https://docs.microsoft.com/windows-server/administration/windows-commands/whoami)
115+
116+
```
117+
whoami /user
118+
whoami /groups
119+
```
120+
115121
```yaml
116122
Type: String
117123
Parameter Sets: UserSet

docset/windows/dhcpserver/set-dhcpserverauditlog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ Accept wildcard characters: False
147147
```
148148
149149
### -MaxMBFileSize
150-
Specifies the maximum size of the audit log, in megabytes (MB).
150+
Specifies the maximum disk space available for all DHCP service audit log files, in megabytes (MB).
151151
152152
```yaml
153153
Type: UInt32

docset/windows/dism/new-windowsimage.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,11 @@ Accept wildcard characters: False
8585
### -CompressionType
8686
Specifies the type of compression used for the initial capture operation:
8787
88-
- The maximum option provides the best compression, but takes more time to capture the image.
89-
- The fast option provides faster image compression, but the resulting files are larger than those compressed by using the maximum option.
90-
This is also the default compression type that is used if you do not specify the argument.
91-
- The none option does not compress the captured image at all.
88+
- **Max** = This option provides the best compression but takes more time to capture the image.
89+
- **Fast** = This option provides faster image compression but the resulting files are larger than those compressed using the maximum (max) option.
90+
- **None** = This option does not compress the captured image at all.
9291
93-
the *CompressionType* parameter does not apply when you export an image to an existing .wim file, you can only use this CompressionType when you export an image to a new .wim file.
92+
The *CompressionType* parameter does not apply when you export an image to an existing .wim file, you can only use this CompressionType when you export an image to a new .wim file.
9493
9594
```yaml
9695
Type: String
@@ -99,7 +98,7 @@ Aliases:
9998

10099
Required: False
101100
Position: Named
102-
Default value: None
101+
Default value: Fast
103102
Accept pipeline input: True (ByPropertyName)
104103
Accept wildcard characters: False
105104
```

docset/windows/failoverclusters/set-clusterlog.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,15 @@ Accept wildcard characters: False
9393
Specifies the log level to set for the cluster.
9494
The acceptable values for this parameter are:`0` to `5`.
9595

96+
| Level | Error | Warning | Info | Verbose | Debug |
97+
|:-----|:-----|:-----|:-----|:-----|:-----|
98+
|0 (Disabled) <br/> ||||||
99+
|1 <br/> |&#x2714;||||
100+
|2 <br/> |&#x2714;|&#x2714;|||
101+
|3 (Default) <br/> |&#x2714;|&#x2714;|&#x2714;||
102+
|4 <br/> |&#x2714;|&#x2714;|&#x2714;|&#x2714;|
103+
|5 <br/> |&#x2714;|&#x2714;|&#x2714;|&#x2714;|&#x2714;|
104+
96105
```yaml
97106
Type: Int32
98107
Parameter Sets: (All)
@@ -105,6 +114,7 @@ Accept pipeline input: False
105114
Accept wildcard characters: False
106115
```
107116

117+
108118
### -Size
109119
Specifies the log size to set for the cluster.
110120
The acceptable values for this parameter are:`8` MB to `1024` MB.

docset/windows/fileserverresourcemanager/new-fsrmstoragereport.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ PS C:\> $d = Get-Date "12:00am"
5151
5252
# This second command returns a **FsrmScheduledTask** object that describes a schedule that runs the task at midnight on the first day
5353
# of the month. The command stores results in the $task variable.
54-
PS C:\> $task = New-FsrmScheduledTask -Time $d.ToFileTimeUtc() -Monthly 1
54+
PS C:\> $task = New-FsrmScheduledTask -Time $d -Monthly 1
5555
5656
# The third command creates a LargeFiles storage report named "Find large files" on C:\Shares.
5757
# The command sets the schedule for the report stored in the $task variable, and limits the
@@ -69,7 +69,7 @@ PS C:\> $d = get-date "12:00am"
6969
# This second command returns an **FsrmScheduledTask** object that describes a schedule
7070
# that runs the task at midnight on the first day of the month. The command stores results in
7171
# the $task variable.
72-
PS C:\> $task = new-FsrmScheduledTask -Time $d.ToFileTimeUtc() -Monthly 1
72+
PS C:\> $task = new-FsrmScheduledTask -Time $d -Monthly 1
7373
7474
# The third command creates a LargeFiles storage report named "Find large files" that generates a
7575
# Large Files report on any folders whose Folder Usage property includes the User Data value.
@@ -88,7 +88,7 @@ PS C:\> $d = get-date "12:00am"
8888
# This second command returns a **FsrmScheduledTask** object that describes a schedule that
8989
# runs the task at midnight on the first day of the month. The command stores results in
9090
# the $task variable.
91-
PS C:\> $task = new-FsrmScheduledTask -Time $d.ToFileTimeUtc() -Monthly 1
91+
PS C:\> $task = new-FsrmScheduledTask -Time $d -Monthly 1
9292
9393
# The third command creates a storage report named "Find large files" and file groups on th
9494
# folder C:\Shares. The command sets the schedule for the report stored in the $task variable,

docset/windows/netnat/new-netnat.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ PS C:\> New-NetNat -Name "AllTenants" -ExternalIPInterfaceAddressPrefix "a.b.c.0
5656
This command creates a NAT object named AllTenants for all the computers in the specified subnet.
5757
This example uses the placeholder a.b.c.0/24 to represent a public Internet address prefix.
5858

59+
From the above, 10.0.0.0/24 will be used as an example.
60+
For this example, run the following to set up the NAT network:
61+
62+
```
63+
PS C:\> New-NetNat -Name "AllTenants" -ExternalIPInterfaceAddressPrefix "10.0.0.0/24"
64+
```
5965
## PARAMETERS
6066

6167
### -AsJob

docset/windows/remotedesktop/get-rdsessioncollection.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ Get-RDSessionCollection [[-CollectionName] <String>] [-ConnectionBroker <String>
3333
The **Get-RDSessionCollection** cmdlet gets session collections in a Remote Desktop deployment.
3434
A session collection consists of one or more Remote Desktop Session Host (RD Session Host) servers.
3535
Users can connect to RD Session Host servers in a session collection to run programs, save files, and use resources on those servers.
36+
The user needs to be a member of the local computer Administrator group to run this command.
3637

3738
## EXAMPLES
3839

docset/windows/storage/get-physicaldisk.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ Accept wildcard characters: False
193193
```
194194
195195
### -HealthStatus
196-
Specifies the health status of physical disks to get.
196+
Specifies the **health status** of physical disks.
197197
The acceptable values for this parameter are:
198198
199199
- Healthy

0 commit comments

Comments
 (0)