Skip to content

Commit 0c68d3c

Browse files
authored
Merge branch 'master' into patch-2
2 parents 514f187 + 01cdb4f commit 0c68d3c

File tree

10 files changed

+78
-25
lines changed

10 files changed

+78
-25
lines changed

docset/windows/dfsn/remove-dfsnroottarget.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ Accept wildcard characters: False
106106
```
107107
108108
### -Confirm
109-
Prompts you for confirmation before running the cmdlet.
109+
Prompts you for confirmation before running the cmdlet. The default value is **True** and asks for confirmation. If you do not want to confirm the operation, you must use the switch with the **False** value, as shown in this example:
110+
111+
**-Confirm:$False**
110112
111113
```yaml
112114
Type: SwitchParameter
@@ -115,7 +117,7 @@ Aliases: cf
115117

116118
Required: False
117119
Position: Named
118-
Default value: False
120+
Default value: True
119121
Accept pipeline input: False
120122
Accept wildcard characters: False
121123
```

docset/windows/hyper-v/measure-vmreplication.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ Accept wildcard characters: False
170170
171171
### -ReplicationMode
172172
Specifies the replication mode of the virtual machines whose replication statistics you want to get.
173-
Valid values are "None", "Primary", "Replica" and "TestReplica".
173+
Valid values are "None", "Primary", "Replica", "TestReplica" and "ExtendedReplica"
174174
175175
```yaml
176176
Type: VMReplicationMode

docset/windows/pkiclient/get-certificate.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,3 +298,5 @@ The EnrollmentResult object contains the results of enrollment.
298298
299299
[Set-Location](http://go.microsoft.com/fwlink/p/?LinkId=293912)
300300
301+
[System Store Locations](https://docs.microsoft.com/windows/desktop/seccrypto/system-store-locations)
302+

docset/windows/pkiclient/import-certificate.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ The **Import-Certificate** cmdlet imports one or more certificates into a certif
3838
```
3939
PS C:\>$file = ( Get-ChildItem -Path C:\files\root.cer )
4040
41-
42-
4341
PS C:\>$file | Import-Certificate -CertStoreLocation cert:\CurrentUser\Root
4442
```
4543

@@ -49,8 +47,6 @@ This example imports the certificate from the file into the root store of the cu
4947
```
5048
PS C:\>Set-Location -Path cert:\CurrentUser\My
5149
52-
53-
5450
PS C:\>Import-Certificate -Filepath "C:\files\intermediate.cert"
5551
```
5652

@@ -61,6 +57,7 @@ This example imports the certificate from the file into the current store.
6157
### -CertStoreLocation
6258
Specifies the path to the certificate store where the certificates will be imported.
6359
If the path to the certificate store is not specified, then the current store is used.
60+
In order to get a list of valid CertStoreLocation values, open Powershell and run "cd cert:". Afterwards type "dir".
6461

6562
```yaml
6663
Type: String
@@ -145,3 +142,4 @@ The output is an array of **X509Certificate2\[\]** objects.
145142
146143
[Export-Certificate](./Export-Certificate.md)
147144
145+
[System Store Locations](https://docs.microsoft.com/windows/desktop/seccrypto/system-store-locations)

docset/windows/pkiclient/import-pfxcertificate.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,3 +190,4 @@ The imported **X509Certificate2** object contained in the PFX file that is assoc
190190
191191
[Export-PfxCertificate](./Export-PfxCertificate.md)
192192
193+
[System Store Locations](https://docs.microsoft.com/windows/desktop/seccrypto/system-store-locations)

docset/windows/pkiclient/new-selfsignedcertificate.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,3 +1012,4 @@ An **X509Certificate2** object for the certificate that has been created.
10121012

10131013
## RELATED LINKS
10141014

1015+
[System Store Locations](https://docs.microsoft.com/windows/desktop/seccrypto/system-store-locations)

docset/windows/scheduledtasks/get-scheduledtask.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ This command gets the definition object of the SystemScan scheduled task in the
4747

4848
### Example 2: Get an array of scheduled task definition objects
4949
```
50-
PS C:\> Get-ScheduledTask -TaskPath "\UpdateTasks\"
50+
PS C:\> Get-ScheduledTask -TaskPath "\UpdateTasks\*"
5151
TaskPath TaskName State
5252
-------- -------- --------
5353
\UpdateTasks UpdateApps Ready
@@ -94,7 +94,7 @@ Accept wildcard characters: False
9494
```
9595
9696
### -TaskName
97-
Specifies an array of one or more names of a scheduled task.
97+
Specifies an array of one or more names of a scheduled task. You can use **"*"** for a wildcard character query.
9898
9999
```yaml
100100
Type: String[]
@@ -105,12 +105,12 @@ Required: False
105105
Position: 0
106106
Default value: None
107107
Accept pipeline input: True (ByPropertyName)
108-
Accept wildcard characters: False
108+
Accept wildcard characters: True
109109
```
110110
111111
### -TaskPath
112-
Specifies an array of one or more paths for scheduled tasks in Task Scheduler namespace.
113-
You can use **\** for the root folder.
112+
Specifies an array of one or more paths for scheduled tasks in Task Scheduler namespace. You can use **"*"** for a wildcard character query.
113+
You can use ***\\\*** for the root folder.
114114
If you do not specify a path, the cmdlet uses the root folder.
115115
116116
```yaml
@@ -122,12 +122,12 @@ Required: False
122122
Position: 1
123123
Default value: None
124124
Accept pipeline input: True (ByPropertyName)
125-
Accept wildcard characters: False
125+
Accept wildcard characters: True
126126
```
127127
128128
### -ThrottleLimit
129129
Specifies the maximum number of concurrent operations that can be established to run the cmdlet.
130-
If this parameter is omitted or a value of `0` is entered, then Windows PowerShell® calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer.
130+
If this parameter is omitted or a value of `0` is entered, then Windows PowerShell® calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer.
131131
The throttle limit applies only to the current cmdlet, not to the session or to the computer.
132132

133133
```yaml

docset/windows/scheduledtasks/new-scheduledtasksettingsset.md

Lines changed: 47 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,16 @@ You can use the scheduled task settings to register a new scheduled task or upda
5050
```
5151
PS C:\>$Sta = New-ScheduledTaskAction -Execute "Cmd"
5252
53-
The second command creates scheduled task settings that use the default settings and assigns the **ScheduledTaskSettings** object to the $Stset variable.
5453
PS C:\>$STSet = New-ScheduledTaskSettingsSet
5554
56-
The third command registers the scheduled task Task01 to run the task action named Cmd and to use the default task settings.
5755
PS C:\>Register-ScheduledTask Task01 -Action $Sta -Settings $STSet
56+
5857
```
58+
The first command creates a scheduled task action named Cmd and assigns the ScheduledTaskAction object to the $Sta variable.
59+
60+
The second command creates scheduled task settings that use the default settings and assigns the **ScheduledTaskSettings** object to the $Stset variable.
61+
62+
The third command registers the scheduled task Task01 to run the task action named Cmd and to use the default task settings.
5963

6064
This example registers a scheduled task that uses default task settings.
6165

@@ -65,12 +69,16 @@ The first command creates a scheduled task action named Cmd and assigns the **Sc
6569
```
6670
PS C:\>$Sta = New-ScheduledTaskAction -Execute "Cmd"
6771
68-
The second command creates scheduled task settings that sets a higher priority for the scheduled task, and assigns the **ScheduledTaskSettings** object to the $Stset variable.
6972
PS C:\>$STSet = New-ScheduledTaskSettingsSet -Priority 5
7073
71-
The third command registers the scheduled task Task01 to run the task action named Cmd and to use the task settings that have a priority setting of 9.
7274
PS C:\>Register-ScheduledTask Task01 -Action $Sta -Settings $Stset
75+
7376
```
77+
The first command creates a scheduled task action named Cmd and assigns the ScheduledTaskAction object to the $Sta variable.
78+
79+
The second command creates scheduled task settings that sets a higher priority for the scheduled task, and assigns the **ScheduledTaskSettings** object to the $Stset variable.
80+
81+
The third command registers the scheduled task Task01 to run the task action named Cmd and to use the task settings that have a priority setting of 9.
7482

7583
This example sets the priority of a scheduled task.
7684

@@ -80,12 +88,16 @@ The first command creates a scheduled task action named Cmd and assigns the **Sc
8088
```
8189
PS C:\>$Sta = New-ScheduledTaskAction -Execute "Cmd"
8290
83-
The second command creates scheduled task settings that specify that Task Scheduler attempts three restarts of the task at sixty minute intervals. This command assigns the **ScheduledTaskSettings** object to the $Stset variable.
8491
PS C:\>$Stset = New-ScheduledTaskSettingsSet -RestartCount 3 -RestartInterval 60
8592
86-
The third command registers the scheduled task Task01 to run the task action named Cmd and to use the task settings that the **ScheduledTaskSettings** object defines.
8793
PS C:\>Register-ScheduledTask Task01 -Action $Sta -Settings $Stset
94+
8895
```
96+
The first command creates a scheduled task action named Cmd and assigns the ScheduledTaskAction object to the $Sta variable.
97+
98+
The second command creates scheduled task settings that specify that Task Scheduler attempts three restarts of the task at sixty minute intervals. This command assigns the **ScheduledTaskSettings** object to the $Stset variable.
99+
100+
The third command registers the scheduled task Task01 to run the task action named Cmd and to use the task settings that the **ScheduledTaskSettings** object defines.
89101

90102
This example sets restart settings for a scheduled task.
91103

@@ -95,12 +107,16 @@ The first command creates a scheduled task action named Cmd and assigns the **Sc
95107
```
96108
PS C:\>$Sta = New-ScheduledTaskAction -Execute "Cmd"
97109
98-
The second command creates scheduled task settings that specify that Task Scheduler runs the task only when the computer is idle for 2 minutes and waits for 2 hours and 30 minutes for an idle condition. This command assigns the **ScheduledTaskSettings** object to the $Stset variable.
99110
PS C:\>$Stset = New-ScheduledTaskSettingsSet -RunOnlyIfIdle -IdleDuration 00:02:00 -IdleWaitTimeout 02:30:00
100111
101-
The third command registers the scheduled task Task01 to run the task action named Cmd and to use the task settings that the **ScheduledTaskSettings** object defines.
102112
PS C:\>Register-ScheduledTask Task01 -Action $Sta -Settings $Stset
113+
103114
```
115+
The first command creates a scheduled task action named Cmd and assigns the ScheduledTaskAction object to the $Sta variable.
116+
117+
The second command creates scheduled task settings that specify that Task Scheduler runs the task only when the computer is idle for 2 minutes and waits for 2 hours and 30 minutes for an idle condition. This command assigns the **ScheduledTaskSettings** object to the $Stset variable.
118+
119+
The third command registers the scheduled task Task01 to run the task action named Cmd and to use the task settings that the **ScheduledTaskSettings** object defines.
104120

105121
This example sets idle settings for a scheduled task.
106122

@@ -110,16 +126,36 @@ The first command creates a scheduled task action named Cmd and assigns the **Sc
110126
```
111127
PS C:\>$Sta = New-ScheduledTaskAction -Execute "Cmd"
112128
113-
The second command creates scheduled task settings that specify that Task Scheduler runs the task only when a network is available. This command assigns the **ScheduledTaskSettings** object to the $Stset variable.
114129
PS C:\>$Stset = New-ScheduledTaskSettingsSet -RunOnlyIfNetworkAvailable
115130
116-
The third command registers the scheduled task Task01 to run the task action named Cmd only when a network is available.
117131
PS C:\>Register-ScheduledTask Task01 -Action $Sta -Settings $Stset
132+
118133
```
134+
The first command creates a scheduled task action named Cmd and assigns the ScheduledTaskAction object to the $Sta variable.
135+
136+
The second command creates scheduled task settings that specify that Task Scheduler runs the task only when a network is available. This command assigns the **ScheduledTaskSettings** object to the $Stset variable.
137+
138+
The third command registers the scheduled task Task01 to run the task action named Cmd only when a network is available.
119139

120140
This example registers a scheduled task that runs only when a network is available.
121141

122-
The first command creates a scheduled task action named Cmd and assigns the **ScheduledTaskAction** object to the $Sta variable.
142+
### Example 6: Register a scheduled task that has a time limit to complete the task
143+
```
144+
PS C:\>$Sta = New-ScheduledTaskAction -Execute "Cmd"
145+
146+
$Stset = New-ScheduledTaskSettingsSet -ExecutionTimeLimit (New-TimeSpan -Hours 1)
147+
148+
PS C:\>Register-ScheduledTask Task01 -Action $Sta -Settings $Stset
149+
150+
```
151+
The first command creates a scheduled task action named Cmd and assigns the ScheduledTaskAction object to the $Sta variable.
152+
153+
The second command creates scheduled task settings that specify if the task is not finished after one hour, it is considered as failed. This command assigns the **ScheduledTaskSettings** object to the $Stset variable.
154+
155+
The third command registers the scheduled task Task01 to run the task action named Cmd, only then finish the task after one hour.
156+
157+
Without the ExecutionTimeLimit setting defined, the time limit set to it's default of three days for the Task Scheduler is allowed to complete the task. To configure the time limit, see [New-TimeSpan](https://docs.microsoft.com/powershell/module/microsoft.powershell.utility/new-timespan).
158+
123159

124160
## PARAMETERS
125161

docset/windows/vamt/find-vamtmanagedmachine.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,14 @@ PS C:\>Find-VamtManagedMachine -QueryType ldap -QueryValue "ldap://domainname/??
6969
This command searches for computers by using an LDAP query.
7070
The search results are restricted to the computers that have LabComp in their name.
7171

72+
### Example 5: Search in a domain and store results in specified database
73+
```
74+
PS C:\>Find-VamtManagedMachine -QueryType ActiveDirectory -QueryValue "DomainName" -MachineFilter "labcomp*" -DbConnectionString "Data Source=localhost\SQLEXPRESS;Initial Catalog=VAMT;Integrated Security=True;MultipleActiveResultSets=True"
75+
```
76+
77+
This command searches the specified Active Directory domain.
78+
The search results are restricted to the computers that have LabComp in their name, and the results are stored in the local SQLEXPRESS instance.
79+
7280
## PARAMETERS
7381

7482
### -DbCommandTimeout

docset/windows/wsus/add-wsusdynamiccategory.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ The **Add-WsusDynamicCategory** cmdlet adds a dynamic category to a Windows Serv
4242

4343
In order to transfer dynamic categories from one update server to another, pass the results of the Get-WsusDynamicCategory cmdlet to the current cmdlet by using the pipeline operator.
4444

45+
This cmdlet is used to add Dynamic Categories to WSUS, based on the type of requirement (computer model, device or application). The definition of Dynamic Categories in a WSUS implementation helps to categorize the applying of updates to the different categories available.
46+
47+
In some cases, you need advanced automation when using Dynamic Categories. If you want to download a specific device driver for a specific group of computers in the physical network, for example, advanced automation is required to use Dynamic Categories. In this case, the use of [System Center Configurations Manager](https://www.microsoft.com/en-us/cloud-platform/system-center-configuration-manager) is needed to configure the [Software Update Point](https://docs.microsoft.com/en-us/sccm/sum/get-started/install-a-software-update-point) feature.
48+
49+
4550
## EXAMPLES
4651

4752
### Example 1: Add a dynamic category to the local WSUS server

0 commit comments

Comments
 (0)