Skip to content

Commit 8d2a16a

Browse files
authored
more cats fixes (#4860)
* more cats fixes * fix schema exception
1 parent 2cb0552 commit 8d2a16a

File tree

36 files changed

+832
-592
lines changed

36 files changed

+832
-592
lines changed

reference/3.0/Microsoft.PowerShell.Core/New-PSSession.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ The format of this string is as follows:
357357

358358
The default value is as follows:
359359

360-
http://localhost:5985/WSMAN
360+
`http://localhost:5985/WSMAN`
361361

362362
If you do not specify a **ConnectionURI**, you can use the **UseSSL**, **ComputerName**, **Port**, and **ApplicationName** parameters to specify the **ConnectionURI** values.
363363

reference/3.0/Microsoft.PowerShell.Utility/Invoke-RestMethod.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
---
2-
ms.date: 12/13/2018
3-
schema: 2.0.0
4-
locale: en-us
5-
keywords: powershell,cmdlet
2+
ms.date: 12/13/2018
3+
schema: 2.0.0
4+
locale: en-us
5+
keywords: powershell,cmdlet
66
online version: https://go.microsoft.com/fwlink/?linkid=217034
7-
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
8-
title: Invoke-RestMethod
7+
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
8+
title: Invoke-RestMethod
99
---
1010
# Invoke-RestMethod
1111

1212
## Synopsis
13-
1413
Sends an HTTP or HTTPS request to a RESTful web service.
1514

1615
## Syntax
@@ -45,10 +44,10 @@ This cmdlet is introduced in Windows PowerShell 3.0.
4544

4645
```powershell
4746
Invoke-RestMethod -Uri https://blogs.msdn.microsoft.com/powershell/feed/ |
48-
Format-Table -Property Title, pubDate
47+
Format-Table -Property Title, pubDate
4948
```
5049

51-
```
50+
```Output
5251
Title pubDate
5352
----- -------
5453
Join the PowerShell 10th Anniversary Celebration! Tue, 08 Nov 2016 23:00:04 +0000
@@ -63,7 +62,7 @@ PowerShell DSC and implicit remoting broken in KB3176934 Tue, 23 Aug
6362
PowerShell on Linux and Open Source! Thu, 18 Aug 2016 15:32:02 +0000
6463
```
6564

66-
This command uses the `Invoke-RestMethod` cmdlet to get information from the Windows PowerShell Blog RSS feed.
65+
This command uses the `Invoke-RestMethod` cmdlet to get information from the PowerShell Blog RSS feed.
6766
The command uses the `Format-Table` cmdlet to display the values of the **Title** and **pubDate** properties of each blog in a table.
6867

6968
### Example 2
@@ -139,10 +138,10 @@ When the body is a form, or it is the output of another `Invoke-WebRequest` call
139138
For example:
140139

141140
```powershell
142-
$R = Invoke-WebRequest http://website.com/login.aspx
141+
$R = Invoke-WebRequest https://website.com/login.aspx
143142
$R.Forms[0].Name = "MyName"
144143
$R.Forms[0].Password = "MyPassword"
145-
Invoke-RestMethod http://website.com/service.aspx -Body $R.Forms[0]
144+
Invoke-RestMethod https://website.com/service.aspx -Body $R.Forms[0]
146145
```
147146

148147
```yaml
@@ -558,7 +557,7 @@ To test a website with the standard user agent string that is used by most Inter
558557
For example, the following command uses the user agent string for Internet
559558

560559
```powershell
561-
Invoke-WebRequest -Uri http://website.com/ -UserAgent (\[Microsoft.PowerShell.Commands.PSUserAgent\]::InternetExplorer)
560+
Invoke-WebRequest -Uri https://website.com/ -UserAgent ([Microsoft.PowerShell.Commands.PSUserAgent]::InternetExplorer)
562561
```
563562

564563
```yaml
@@ -605,7 +604,7 @@ Accept wildcard characters: False
605604

606605
### CommonParameters
607606

608-
This cmdlet supports the common parameters: `-Debug`, `-ErrorAction`, `-ErrorVariable`, `-InformationAction`, `-InformationVariable`, `-OutVariable`, `-OutBuffer`, `-PipelineVariable`, `-Verbose`, `-WarningAction`, and `-WarningVariable`. For more information, see [about_CommonParameters](..\Microsoft.PowerShell.Core\About\about_CommonParameters.md).
607+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
609608

610609
## Inputs
611610

@@ -632,3 +631,4 @@ If the request returns JSON strings, `Invoke-RestMethod` returns a PSObject that
632631
[ConvertFrom-Json](ConvertFrom-Json.md)
633632

634633
[Invoke-WebRequest](Invoke-WebRequest.md)
634+

reference/3.0/Microsoft.WsMan.Management/Invoke-WSManAction.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,11 @@ title: Invoke-WSManAction
1010
# Invoke-WSManAction
1111

1212
## SYNOPSIS
13-
1413
Invokes an action on the object that is specified by the Resource URI and by the selectors.
1514

1615
## SYNTAX
1716

1817
### URI (Default)
19-
2018
```
2119
Invoke-WSManAction [-Action] <String> [-ConnectionURI <Uri>] [-FilePath <String>] [-OptionSet <Hashtable>]
2220
[[-SelectorSet] <Hashtable>] [-SessionOption <SessionOption>] [-ValueSet <Hashtable>] [-ResourceURI] <Uri>
@@ -25,7 +23,6 @@ Invoke-WSManAction [-Action] <String> [-ConnectionURI <Uri>] [-FilePath <String>
2523
```
2624

2725
### ComputerName
28-
2926
```
3027
Invoke-WSManAction [-Action] <String> [-ApplicationName <String>] [-ComputerName <String>] [-FilePath <String>]
3128
[-OptionSet <Hashtable>] [-Port <Int32>] [[-SelectorSet] <Hashtable>] [-SessionOption <SessionOption>]
@@ -34,7 +31,6 @@ Invoke-WSManAction [-Action] <String> [-ApplicationName <String>] [-ComputerName
3431
```
3532

3633
## DESCRIPTION
37-
3834
The Invoke-WSManAction runs an action on the object that is specified by RESOURCE_URI, where parameters are specified by key value pairs.
3935

4036
This cmdlet uses the WSMan connection/transport layer to run the action.
@@ -47,7 +43,7 @@ This cmdlet uses the WSMan connection/transport layer to run the action.
4743
Invoke-WSManAction -Action startservice -ResourceURI wmicimv2/win32_service -SelectorSet @{name="spooler"} -Authentication default
4844
```
4945

50-
```output
46+
```Output
5147
xsi : http://www.w3.org/2001/XMLSchema-instance
5248
p : http://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/Win32_Service
5349
cim : http://schemas.dmtf.org/wbem/wscim/1/common
@@ -67,7 +63,7 @@ A return value of 5 indicates that the service is already started.
6763
Invoke-WSManAction -Action stopservice -ResourceURI wmicimv2/Win32_Service -SelectorSet @{Name="spooler"} -FilePath:input.xml -Authentication default
6864
```
6965

70-
```output
66+
```Output
7167
xsi : http://www.w3.org/2001/XMLSchema-instance
7268
p : http://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/Win32_Service
7369
cim : http://schemas.dmtf.org/wbem/wscim/1/common
@@ -90,7 +86,7 @@ A return value of 5 indicates that the service is already started.
9086
Invoke-WSManAction -Action create -ResourceURI wmicimv2/win32_process -ValueSet @{commandline="notepad.exe";currentdirectory="C:\"}
9187
```
9288

93-
```output
89+
```Output
9490
xsi : http://www.w3.org/2001/XMLSchema-instance
9591
p : http://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/Win32_Process
9692
cim : http://schemas.dmtf.org/wbem/wscim/1/common
@@ -109,7 +105,7 @@ As a result, a new process is created to run Notepad, and the current directory
109105
Invoke-WSManAction -Action startservice -ResourceURI wmicimv2/win32_service -SelectorSet @{name="spooler"} -ComputerName server01 -Authentication default
110106
```
111107

112-
```output
108+
```Output
113109
xsi : http://www.w3.org/2001/XMLSchema-instance
114110
p : http://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/Win32_Service
115111
cim : http://schemas.dmtf.org/wbem/wscim/1/common
@@ -504,4 +500,3 @@ This cmdlet does not generate any output.
504500

505501
[Test-WSMan](Test-WSMan.md)
506502

507-

reference/3.0/Microsoft.WsMan.Management/New-WSManInstance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ title: New-WSManInstance
1010
# New-WSManInstance
1111

1212
## SYNOPSIS
13-
1413
Creates a new instance of a management resource.
1514

1615
## SYNTAX
@@ -387,6 +386,7 @@ This cmdlet does not generate any output.
387386
## NOTES
388387

389388
- The Set-WmiInstance cmdlet, a Windows Management Instrumentation (WMI) cmdlet, is similar. Set-WmiInstance uses the DCOM connection/transport layer to create or update WMI instances.
389+
390390
## RELATED LINKS
391391

392392
[Connect-WSMan](Connect-WSMan.md)

reference/3.0/Microsoft.WsMan.Management/Remove-WSManInstance.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ This cmdlet does not generate any output.
342342
## NOTES
343343

344344
- The Remove-WmiObject cmdlet, a Windows Management Instrumentation (WMI) cmdlet, is similar. Remove-WmiObject uses the DCOM connection/transport layer to create or update WMI instances.
345+
345346
## RELATED LINKS
346347

347348
[Remove-WmiObject](../Microsoft.PowerShell.Management/Remove-WmiObject.md)

reference/4.0/Microsoft.PowerShell.Core/New-PSSession.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ The format of this string is as follows:
358358

359359
The default value is as follows:
360360

361-
http://localhost:5985/WSMAN
361+
`http://localhost:5985/WSMAN`
362362

363363
If you do not specify a **ConnectionURI**, you can use the **UseSSL**, **ComputerName**, **Port**, and **ApplicationName** parameters to specify the **ConnectionURI** values.
364364

0 commit comments

Comments
 (0)