Skip to content

Commit 90c43aa

Browse files
authored
fix https links (#4828)
1 parent 359017e commit 90c43aa

File tree

186 files changed

+715
-744
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

186 files changed

+715
-744
lines changed

reference/3.0/CimCmdlets/New-CimInstance.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ Accept wildcard characters: False
157157
```
158158
159159
### -ClassName
160-
Specifies the name of the CIM class of which the operation creates an instance.
160+
Specifies the name of the CIM class of which the operation creates an instance.
161161
NOTE: You can use tab completion to browse the list of classes, because Windows PowerShell gets a list of classes from the local WMI server to provide a list of class names.
162162
163163
```yaml
@@ -229,7 +229,7 @@ Accept wildcard characters: False
229229
### -Namespace
230230
Specifies the namespace of the class for the new instance.
231231
232-
The default namespace is root/cimv2.
232+
The default namespace is root/cimv2.
233233
NOTE: You can use tab completion to browse the list of namespaces, because PowerShell gets a list of namespaces from the local WMI server to provide the list of namespaces.
234234
235235
```yaml
@@ -286,14 +286,15 @@ Specifies the resource uniform resource identifier (URI) of the resource class o
286286
The URI is used to identify a specific type of resource, such as disks or processes, on a computer.
287287
288288
A URI consists of a prefix and a path to a resource.
289-
For example:
289+
For example:
290290
291-
http://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/Win32_LogicalDisk
292-
http://intel.com/wbem/wscim/1/amt-schema/1/AMT_GeneralSettings
291+
`http://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/Win32_LogicalDisk`
293292

293+
`http://intel.com/wbem/wscim/1/amt-schema/1/AMT_GeneralSettings`
294294

295-
296-
By default, if you do not specify this parameter, the DMTF standard resource URI http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/ is used and the class name is appended to it.
295+
296+
297+
By default, if you do not specify this parameter, the DMTF standard resource URI `http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/` is used and the class name is appended to it.
297298

298299
ResourceURI can only be used with CIM sessions created using the WSMan protocol, or when specifying the ComputerName parameter, which creates a CIM session using WSMan.
299300
If you specify this parameter without specifying the ComputerName parameter, or if you specify a CIM session created using DCOM protocol, you will get an error, because the DCOM protocol does not support the ResourceURI parameter.

reference/3.0/CimCmdlets/Remove-CimInstance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ For example:
249249
- `http://intel.com/wbem/wscim/1/amt-schema/1/AMT_GeneralSettings`
250250

251251
By default, if you do not specify this parameter, the DMTF standard resource URI
252-
http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/ is used and the class name is appended to it.
252+
`http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/` is used and the class name is appended to it.
253253

254254
ResourceURI can only be used with CIM sessions created using the WSMan protocol, or when specifying
255255
the ComputerName parameter, which creates a CIM session using WSMan.

reference/3.0/CimCmdlets/Set-CimInstance.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -331,11 +331,8 @@ is used to identify a specific type of resource, such as disks or processes, on
331331
A URI consists of a prefix and a path to a resource.
332332
For example:
333333
334-
```
335-
http://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/Win32_LogicalDisk
336-
http://intel.com/wbem/wscim/1/amt-schema/1/AMT_GeneralSettings
337-
```
338-
334+
- `http://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/Win32_LogicalDisk`
335+
- `http://intel.com/wbem/wscim/1/amt-schema/1/AMT_GeneralSettings`
339336

340337
By default, if you do not specify this parameter, the DMTF standard resource URI
341338
`http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/` is used and the class name is appended to it.

reference/3.0/ISE/Get-IseSnippet.md

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -32,46 +32,44 @@ This cmdlet is introduced in Windows PowerShell 3.0.
3232

3333
## EXAMPLES
3434

35-
### Example 1
35+
### Example 1: Get all snippets
3636

37-
```
38-
PS> Get-ISESnippet
37+
```powershell
38+
Get-ISESnippet
3939
```
4040

4141
This command gets all user-define snippets in the Snippets directory.
4242

43-
### Example 2
43+
### Example 2: Copy all snippets to a remote directory
4444

45-
```
46-
PS> Invoke-Command -Computer (Get-Content Servers.txt) {Get-ISESnippet | Copy-Item -Destination \\Server01\Share01\Snippets}
45+
```powershell
46+
Invoke-Command -ComputerName (Get-Content Servers.txt) {Get-IseSnippet | Copy-Item -Destination \\Server01\Share01\Snippets}
4747
```
4848

4949
This command copies all of the user-created snippets from a group of remote computers to a shared Snippets directory.
5050

5151
The command uses the Invoke-Command cmdlet to run a **Get-ISESnippet** command on the computers in the Servers.txt file.
5252
A pipeline operator (|) sends the snippet files to the Copy-Item cmdlet, which copies them to the directory that is specified by the **Destination** parameter.
5353

54-
### Example 3
55-
56-
```
57-
PS> #Parse-Snippet Function
54+
### Example 3. Display Title and Text of each snippet
5855

56+
```powershell
5957
function Parse-Snippet
6058
{
6159
$a = Get-ISESnippet
6260
$snippetNamespace = @{x="http://schemas.microsoft.com/PowerShell/Snippets"}
6361
foreach ($snippetFile in $a)
6462
{
6563
Write-Host ""
66-
$Title = Select-Xml -Path $snippetFile.FullName -Namespace $snippetNamespace -XPath "//x:Title" | foreach {$_.Node.InnerXML}
67-
$Text = Select-Xml -Path $snippetFile.FullName -Namespace $snippetNamespace -XPath "//x:Script" | foreach {$_.Node.InnerText}
64+
$Title = Select-Xml -Path $snippetFile.FullName -Namespace $snippetNamespace -XPath "//x:Title" | ForEach-Object {$_.Node.InnerXML}
65+
$Text = Select-Xml -Path $snippetFile.FullName -Namespace $snippetNamespace -XPath "//x:Script" | ForEach-Object {$_.Node.InnerText}
6866
Write-Host "Title: $Title"
6967
Write-Host "Text: $Text"
7068
}
7169
}
70+
```
7271

73-
# Sample Output
74-
72+
```output
7573
Title: Mandatory
7674
Text:
7775
Param
@@ -87,10 +85,10 @@ Text: (c) Fabrikam, Inc. 2012
8785

8886
This function uses the **Get-ISESnippet** and Select-Xml cmdlets to display the Title and Text of each snippet on the local computer.
8987

90-
### Example 4
88+
### Example 4: Retrieve Snippet information from the ISE object model
9189

92-
```
93-
PS> $psISE.CurrentPowerShellTab.Snippets | Format-Table DisplayTitle, Description
90+
```powershell
91+
$psISE.CurrentPowerShellTab.Snippets | Format-Table DisplayTitle, Description
9492
```
9593

9694
This command displays the title and description of all snippets in the session, including built-in snippets, user-defined snippets, and imported snippets.

reference/3.0/Microsoft.PowerShell.Core/About/About.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ schema: 2.0.0
44
locale: en-us
55
keywords: powershell,cmdlet
66
Help Version: 6.0
7-
Download Help Link: http://Please-enter-FwLink-manually
7+
Download Help Link: https://Please-enter-FwLink-manually
88
Module Guid: 00000000-0000-0000-0000-000000000000
99
Module Name: About
1010
title: About topics

reference/3.0/Microsoft.PowerShell.Core/About/about_Aliases.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,4 +267,4 @@ Get-Help Alias
267267
- [about_providers](about_providers.md)
268268

269269
<!-- External links -->
270-
[aliasinfo]: http://go.microsoft.com/fwlink/?LinkId=143644
270+
[aliasinfo]: /dotnet/api/system.management.automation.aliasinfo

reference/3.0/Microsoft.PowerShell.Core/About/about_Functions_CmdletBindingAttribute.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@ $ConfirmPreference preference variable. (The default value of the
6363
argument is Medium.) Specify this argument only when the
6464
SupportsShouldProcess argument is also specified.
6565

66-
For more information about confirmation requests, see "Requesting
67-
Confirmation" in the MSDN (Microsoft Developer Network) library at
68-
http://go.microsoft.com/fwlink/?LinkId=136658.
66+
For more information about confirmation requests, see [Requesting Confirmation](/powershell/developer/cmdlet/requesting-confirmation).
6967

7068
## DefaultParameterSetName
7169

reference/3.0/Microsoft.PowerShell.Core/About/about_Group_Policy_Settings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ The policies are as follows:
4343

4444
To download spreadsheets that list all of the Group Policy settings for
4545
each version of Windows, see
46-
[Group Policy Settings Reference for Windows and Windows Server](http://go.microsoft.com/fwlink/?LinkId=261775)
46+
[Group Policy Settings Reference for Windows and Windows Server](https://www.microsoft.com/download/details.aspx?id=25250)
4747
in the Microsoft Download Center.
4848

4949
## TURN ON SCRIPT EXECUTION

reference/3.0/Microsoft.PowerShell.Core/About/about_Hash_Tables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,4 +498,4 @@ For more information about here-strings, see [about_Quoting_Rules](about_Quoting
498498

499499
[Import-LocalizedData](../../Microsoft.PowerShell.Utility/Import-LocalizedData.md)
500500

501-
[System.Collections.Hashtable](http://msdn.microsoft.com/en-us/library/system.collections.hashtable\(v=vs.110\).aspx) on MSDN
501+
[System.Collections.Hashtable](/dotnet/api/system.collections.hashtable)

reference/3.0/Microsoft.PowerShell.Core/About/about_Methods.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,7 @@ supported.
9595

9696
To find definitions of the methods of an object, go to help topic for the
9797
object type in MSDN and look for its methods page. For example, the following
98-
page describes the methods of process objects
99-
[System.Diagnostics.Process](http://msdn.microsoft.com/library/system.diagnostics.process_methods).
98+
page describes the methods of process objects [System.Diagnostics.Process](/dotnet/api/system.diagnostics.process#methods).
10099

101100
To determine the arguments of a method, review the method definition, which is
102101
like the syntax diagram of a PowerShell cmdlet.

0 commit comments

Comments
 (0)