Skip to content

Commit b803502

Browse files
authored
Merge branch 'master' into fix-2740-examples-format
2 parents eb92a69 + 5cbfd13 commit b803502

File tree

10 files changed

+35
-35
lines changed

10 files changed

+35
-35
lines changed

docset/winserver2012-ps/activedirectory/Get-ADUser.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Get-ADUser [-AuthType <ADAuthType>] [-Credential <PSCredential>] -LDAPFilter <St
3636
The **Get-ADUser** cmdlet gets a specified user object or performs a search to get multiple user objects.
3737

3838
The *Identity* parameter specifies the Active Directory user to get.
39-
You can identify a user by its distinguished name (DN), GUID, security identifier (SID), Security Account Manager (SAM) account name, or name.
39+
You can identify a user by its distinguished name (DN), GUID, security identifier (SID), or Security Account Manager (SAM) account name.
4040
You can also set the parameter to a user object variable such as `$<localUserObject>` or pass a user object through the pipeline to the *Identity* parameter.
4141

4242
To search for and retrieve more than one user, use the *Filter* or *LDAPFilter* parameters.

docset/winserver2012-ps/scheduledtasks/New-ScheduledTask.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,18 @@ PS C:\> Register-ScheduledTask T1 -InputObject $task
3838

3939
In this example, the set of commands uses several cmdlets and variables to define and then register a scheduled task.
4040

41-
The first command uses the **New-ScheduledTaskAction** cmdlet to assign the executable file tskmgr.exe to the variable $A.
41+
The first command uses the **New-ScheduledTaskAction** cmdlet to assign the executable file `tskmgr.exe` to the variable `$action`.
4242

43-
The second command uses the **New-ScheduledTaskTrigger** cmdlet to assign the value AtLogon to the variable $T.
43+
The second command uses the **New-ScheduledTaskTrigger** cmdlet to assign the value `AtLogon` to the variable `$trigger`.
4444

45-
The third command assigns the principal of the scheduled task `Contoso\Administrator` to the variable $P.
45+
The third command assigns the principal of the scheduled task `Contoso\Administrator` to the variable `$principal`.
4646

47-
The fourth command uses the **New-ScheduledTaskSettingsSet** cmdlet to assign a task settings object to the variable $S.
47+
The fourth command uses the **New-ScheduledTaskSettingsSet** cmdlet to assign a task settings object to the variable `$settings`.
4848

49-
The fifth command creates a new task and assigns the task definition to the variable $D.
49+
The fifth command creates a new task and assigns the task definition to the variable `$task`.
5050

5151
The sixth command (hypothetically) runs at a later time.
52-
It registers the new scheduled task and defines it by using the $D variable.
52+
It registers the new scheduled task and defines it by using the `$task` variable.
5353

5454
### Example 2: Define a scheduled task with multiple actions
5555
```powershell

docset/winserver2012r2-ps/activedirectory/Get-ADUser.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Get-ADUser [-AuthType <ADAuthType>] [-Credential <PSCredential>] -LDAPFilter <St
3838
The **Get-ADUser** cmdlet gets a specified user object or performs a search to get multiple user objects.
3939

4040
The *Identity* parameter specifies the Active Directory user to get.
41-
You can identify a user by its distinguished name (DN), GUID, security identifier (SID), Security Account Manager (SAM) account name, or name.
41+
You can identify a user by its distinguished name (DN), GUID, security identifier (SID), or Security Account Manager (SAM) account name.
4242
You can also set the parameter to a user object variable such as `$<localUserObject>` or pass a user object through the pipeline to the *Identity* parameter.
4343

4444
To search for and retrieve more than one user, use the *Filter* or *LDAPFilter* parameters.

docset/winserver2012r2-ps/scheduledtasks/New-ScheduledTask.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,18 @@ PS C:\> Register-ScheduledTask T1 -InputObject $task
4040

4141
In this example, the set of commands uses several cmdlets and variables to define and then register a scheduled task.
4242

43-
The first command uses the **New-ScheduledTaskAction** cmdlet to assign the executable file tskmgr.exe to the variable $A.
43+
The first command uses the **New-ScheduledTaskAction** cmdlet to assign the executable file `tskmgr.exe` to the variable `$action`.
4444

45-
The second command uses the **New-ScheduledTaskTrigger** cmdlet to assign the value AtLogon to the variable $T.
45+
The second command uses the **New-ScheduledTaskTrigger** cmdlet to assign the value `AtLogon` to the variable `$trigger`.
4646

47-
The third command assigns the principal of the scheduled task `Contoso\Administrator` to the variable $P.
47+
The third command assigns the principal of the scheduled task `Contoso\Administrator` to the variable `$principal`.
4848

49-
The fourth command uses the **New-ScheduledTaskSettingsSet** cmdlet to assign a task settings object to the variable $S.
49+
The fourth command uses the **New-ScheduledTaskSettingsSet** cmdlet to assign a task settings object to the variable `$settings`.
5050

51-
The fifth command creates a new task and assigns the task definition to the variable $D.
51+
The fifth command creates a new task and assigns the task definition to the variable `$task`.
5252

5353
The sixth command (hypothetically) runs at a later time.
54-
It registers the new scheduled task and defines it by using the $D variable.
54+
It registers the new scheduled task and defines it by using the `$task` variable.
5555

5656
### Example 2: Define a scheduled task with multiple actions
5757
```powershell

docset/winserver2016-ps/activedirectory/Get-ADUser.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Get-ADUser [-AuthType <ADAuthType>] [-Credential <PSCredential>] -LDAPFilter <St
3939
The **Get-ADUser** cmdlet gets a specified user object or performs a search to get multiple user objects.
4040

4141
The *Identity* parameter specifies the Active Directory user to get.
42-
You can identify a user by its distinguished name (DN), GUID, security identifier (SID), Security Account Manager (SAM) account name, or name.
42+
You can identify a user by its distinguished name (DN), GUID, security identifier (SID), or Security Account Manager (SAM) account name.
4343
You can also set the parameter to a user object variable such as `$<localUserObject>` or pass a user object through the pipeline to the *Identity* parameter.
4444

4545
To search for and retrieve more than one user, use the *Filter* or *LDAPFilter* parameters.

docset/winserver2016-ps/scheduledtasks/New-ScheduledTask.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,18 @@ PS C:\> Register-ScheduledTask T1 -InputObject $task
4141

4242
In this example, the set of commands uses several cmdlets and variables to define and then register a scheduled task.
4343

44-
The first command uses the **New-ScheduledTaskAction** cmdlet to assign the executable file tskmgr.exe to the variable $A.
44+
The first command uses the **New-ScheduledTaskAction** cmdlet to assign the executable file `tskmgr.exe` to the variable `$action`.
4545

46-
The second command uses the **New-ScheduledTaskTrigger** cmdlet to assign the value AtLogon to the variable $T.
46+
The second command uses the **New-ScheduledTaskTrigger** cmdlet to assign the value `AtLogon` to the variable `$trigger`.
4747

48-
The third command assigns the principal of the scheduled task `Contoso\Administrator` to the variable $P.
48+
The third command assigns the principal of the scheduled task `Contoso\Administrator` to the variable `$principal`.
4949

50-
The fourth command uses the **New-ScheduledTaskSettingsSet** cmdlet to assign a task settings object to the variable $S.
50+
The fourth command uses the **New-ScheduledTaskSettingsSet** cmdlet to assign a task settings object to the variable `$settings`.
5151

52-
The fifth command creates a new task and assigns the task definition to the variable $D.
52+
The fifth command creates a new task and assigns the task definition to the variable `$task`.
5353

5454
The sixth command (hypothetically) runs at a later time.
55-
It registers the new scheduled task and defines it by using the $D variable.
55+
It registers the new scheduled task and defines it by using the `$task` variable.
5656

5757
### Example 2: Define a scheduled task with multiple actions
5858
```powershell

docset/winserver2019-ps/activedirectory/Get-ADUser.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Get-ADUser [-AuthType <ADAuthType>] [-Credential <PSCredential>] -LDAPFilter <St
3939
The **Get-ADUser** cmdlet gets a specified user object or performs a search to get multiple user objects.
4040

4141
The *Identity* parameter specifies the Active Directory user to get.
42-
You can identify a user by its distinguished name (DN), GUID, security identifier (SID), Security Account Manager (SAM) account name, or name.
42+
You can identify a user by its distinguished name (DN), GUID, security identifier (SID), or Security Account Manager (SAM) account name.
4343
You can also set the parameter to a user object variable such as `$<localUserObject>` or pass a user object through the pipeline to the *Identity* parameter.
4444

4545
To search for and retrieve more than one user, use the *Filter* or *LDAPFilter* parameters.

docset/winserver2019-ps/scheduledtasks/New-ScheduledTask.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,18 @@ PS C:\> Register-ScheduledTask T1 -InputObject $task
4141

4242
In this example, the set of commands uses several cmdlets and variables to define and then register a scheduled task.
4343

44-
The first command uses the **New-ScheduledTaskAction** cmdlet to assign the executable file tskmgr.exe to the variable $A.
44+
The first command uses the **New-ScheduledTaskAction** cmdlet to assign the executable file `tskmgr.exe` to the variable `$action`.
4545

46-
The second command uses the **New-ScheduledTaskTrigger** cmdlet to assign the value AtLogon to the variable $T.
46+
The second command uses the **New-ScheduledTaskTrigger** cmdlet to assign the value `AtLogon` to the variable `$trigger`.
4747

48-
The third command assigns the principal of the scheduled task `Contoso\Administrator` to the variable $P.
48+
The third command assigns the principal of the scheduled task `Contoso\Administrator` to the variable `$principal`.
4949

50-
The fourth command uses the **New-ScheduledTaskSettingsSet** cmdlet to assign a task settings object to the variable $S.
50+
The fourth command uses the **New-ScheduledTaskSettingsSet** cmdlet to assign a task settings object to the variable `$settings`.
5151

52-
The fifth command creates a new task and assigns the task definition to the variable $D.
52+
The fifth command creates a new task and assigns the task definition to the variable `$task`.
5353

5454
The sixth command (hypothetically) runs at a later time.
55-
It registers the new scheduled task and defines it by using the $D variable.
55+
It registers the new scheduled task and defines it by using the `$task` variable.
5656

5757
### Example 2: Define a scheduled task with multiple actions
5858
```powershell

docset/winserver2022-ps/activedirectory/Get-ADUser.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Get-ADUser [-AuthType <ADAuthType>] [-Credential <PSCredential>] -LDAPFilter <St
3939
The **Get-ADUser** cmdlet gets a specified user object or performs a search to get multiple user objects.
4040

4141
The *Identity* parameter specifies the Active Directory user to get.
42-
You can identify a user by its distinguished name (DN), GUID, security identifier (SID), Security Account Manager (SAM) account name, or name.
42+
You can identify a user by its distinguished name (DN), GUID, security identifier (SID), or Security Account Manager (SAM) account name.
4343
You can also set the parameter to a user object variable such as `$<localUserObject>` or pass a user object through the pipeline to the *Identity* parameter.
4444

4545
To search for and retrieve more than one user, use the *Filter* or *LDAPFilter* parameters.

docset/winserver2022-ps/scheduledtasks/New-ScheduledTask.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,18 @@ PS C:\> Register-ScheduledTask T1 -InputObject $task
4141

4242
In this example, the set of commands uses several cmdlets and variables to define and then register a scheduled task.
4343

44-
The first command uses the **New-ScheduledTaskAction** cmdlet to assign the executable file tskmgr.exe to the variable $A.
44+
The first command uses the **New-ScheduledTaskAction** cmdlet to assign the executable file `tskmgr.exe` to the variable `$action`.
4545

46-
The second command uses the **New-ScheduledTaskTrigger** cmdlet to assign the value AtLogon to the variable $T.
46+
The second command uses the **New-ScheduledTaskTrigger** cmdlet to assign the value `AtLogon` to the variable `$trigger`.
4747

48-
The third command assigns the principal of the scheduled task `Contoso\Administrator` to the variable $P.
48+
The third command assigns the principal of the scheduled task `Contoso\Administrator` to the variable `$principal`.
4949

50-
The fourth command uses the **New-ScheduledTaskSettingsSet** cmdlet to assign a task settings object to the variable $S.
50+
The fourth command uses the **New-ScheduledTaskSettingsSet** cmdlet to assign a task settings object to the variable `$settings`.
5151

52-
The fifth command creates a new task and assigns the task definition to the variable $D.
52+
The fifth command creates a new task and assigns the task definition to the variable `$task`.
5353

5454
The sixth command (hypothetically) runs at a later time.
55-
It registers the new scheduled task and defines it by using the $D variable.
55+
It registers the new scheduled task and defines it by using the `$task` variable.
5656

5757
### Example 2: Define a scheduled task with multiple actions
5858
```powershell

0 commit comments

Comments
 (0)