From 74637fcf3c21909b1d7958972979e5552771646c Mon Sep 17 00:00:00 2001 From: Arie Heinrich Date: Sun, 19 Jan 2025 19:13:41 +0100 Subject: [PATCH 1/2] Markdown and PS Styles --- reference/5.1/CimCmdlets/CimCmdlets.md | 14 +++++++ .../5.1/CimCmdlets/Export-BinaryMiLog.md | 6 +-- .../CimCmdlets/Get-CimAssociatedInstance.md | 4 +- reference/5.1/CimCmdlets/Get-CimInstance.md | 28 +++++++------- reference/5.1/CimCmdlets/Get-CimSession.md | 15 +++++--- .../5.1/CimCmdlets/Import-BinaryMiLog.md | 1 + reference/5.1/CimCmdlets/Invoke-CimMethod.md | 6 +-- reference/5.1/CimCmdlets/New-CimInstance.md | 14 +++---- reference/5.1/CimCmdlets/New-CimSession.md | 38 +++++++++++-------- .../5.1/CimCmdlets/New-CimSessionOption.md | 11 +++--- .../CimCmdlets/Register-CimIndicationEvent.md | 15 ++++---- .../5.1/CimCmdlets/Remove-CimInstance.md | 2 +- reference/5.1/CimCmdlets/Remove-CimSession.md | 6 ++- reference/5.1/CimCmdlets/Set-CimInstance.md | 4 +- 14 files changed, 97 insertions(+), 67 deletions(-) diff --git a/reference/5.1/CimCmdlets/CimCmdlets.md b/reference/5.1/CimCmdlets/CimCmdlets.md index d11c37a35cc6..0859d5bc37b0 100644 --- a/reference/5.1/CimCmdlets/CimCmdlets.md +++ b/reference/5.1/CimCmdlets/CimCmdlets.md @@ -18,43 +18,57 @@ Management Instrumentation (WMI) service. ## CimCmdlets Cmdlets ### [Export-BinaryMiLog](Export-BinaryMiLog.md) + Creates a binary encoded representation of an object or objects and stores it in a file. ### [Get-CimAssociatedInstance](Get-CimAssociatedInstance.md) + Retrieves the CIM instances that are connected to a specific CIM instance by an association. ### [Get-CimClass](Get-CimClass.md) + Gets a list of CIM classes in a specific namespace. ### [Get-CimInstance](Get-CimInstance.md) + Gets the CIM instances of a class from a CIM server. ### [Get-CimSession](Get-CimSession.md) + Gets the CIM session objects from the current session. ### [Import-BinaryMiLog](Import-BinaryMiLog.md) + Used to re-create the saved objects based on the contents of an export file. ### [Invoke-CimMethod](Invoke-CimMethod.md) + Invokes a method of a CIM class. ### [New-CimInstance](New-CimInstance.md) + Creates a CIM instance. ### [New-CimSession](New-CimSession.md) + Creates a CIM session. ### [New-CimSessionOption](New-CimSessionOption.md) + Specifies advanced options for the `New-CimSession` cmdlet. ### [Register-CimIndicationEvent](Register-CimIndicationEvent.md) + Subscribes to indications using a filter expression or a query expression. ### [Remove-CimInstance](Remove-CimInstance.md) + Removes a CIM instance from a computer. ### [Remove-CimSession](Remove-CimSession.md) + Removes one or more CIM sessions. ### [Set-CimInstance](Set-CimInstance.md) + Modifies a CIM instance on a CIM server by calling the **ModifyInstance** method of the CIM class. diff --git a/reference/5.1/CimCmdlets/Export-BinaryMiLog.md b/reference/5.1/CimCmdlets/Export-BinaryMiLog.md index ab86183b20af..16544dc795ba 100644 --- a/reference/5.1/CimCmdlets/Export-BinaryMiLog.md +++ b/reference/5.1/CimCmdlets/Export-BinaryMiLog.md @@ -96,8 +96,8 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## RELATED LINKS -[Get-CimInstance](get-ciminstance.md) +[Get-CimInstance](Get-CimInstance.md) -[Import-BinaryMiLog](import-binarymilog.md) +[Import-BinaryMiLog](Import-BinaryMiLog.md) -[Import-Clixml](../microsoft.powershell.utility/import-clixml.md) +[Import-Clixml](../Microsoft.Powershell.Utility/Import-Clixml.md) diff --git a/reference/5.1/CimCmdlets/Get-CimAssociatedInstance.md b/reference/5.1/CimCmdlets/Get-CimAssociatedInstance.md index eafde29501d6..c48998f2ecc2 100644 --- a/reference/5.1/CimCmdlets/Get-CimAssociatedInstance.md +++ b/reference/5.1/CimCmdlets/Get-CimAssociatedInstance.md @@ -327,6 +327,6 @@ Windows PowerShell includes the following aliases for `Get-CimAssociatedInstance ## RELATED LINKS -[Get-CimClass](get-cimclass.md) +[Get-CimClass](Get-CimClass.md) -[Get-CimInstance](get-ciminstance.md) +[Get-CimInstance](Get-CimInstance.md) diff --git a/reference/5.1/CimCmdlets/Get-CimInstance.md b/reference/5.1/CimCmdlets/Get-CimInstance.md index e6b3efc707e4..c778f6606009 100644 --- a/reference/5.1/CimCmdlets/Get-CimInstance.md +++ b/reference/5.1/CimCmdlets/Get-CimInstance.md @@ -142,7 +142,7 @@ the key property `@{ "Handle"=0 }` and stores it in a variable named `$x`. The v a CIM instance to the `Get-CimInstance` cmdlet to get a particular instance. ```powershell -$x = New-CimInstance -ClassName Win32_Process -Namespace root\cimv2 -Property @{ "Handle"=0 } -Key Handle -ClientOnly +$x = New-CimInstance -ClassName Win32_Process -Namespace root\cimv2 -Property @{"Handle"=0} -Key Handle -ClientOnly Get-CimInstance -CimInstance $x ``` @@ -154,7 +154,7 @@ the variables `$x` and `$y`. The variable `$x` is then formatted in a table cont ```powershell $x,$y = Get-CimInstance -ClassName Win32_Process -$x | Format-Table -Property Name,KernelModeTime -AutoSize +$x | Format-Table -Property Name, KernelModeTime -AutoSize ``` ```Output @@ -169,7 +169,7 @@ This example retrieves the CIM instances of a class named **Win32_ComputerSystem computers named **Server01** and **Server02**. ```powershell -Get-CimInstance -ClassName Win32_ComputerSystem -ComputerName Server01,Server02 +Get-CimInstance -ClassName Win32_ComputerSystem -ComputerName Server01, Server02 ``` ### Example 8: Getting only the key properties, instead of all properties @@ -188,8 +188,8 @@ This example retrieves only a subset of properties, which reduces the size of th traffic. ```powershell -Get-CimInstance -Class Win32_Process -Property Name,KernelModeTime -$x = Get-CimInstance -Class Win32_Process -Property Name,KernelModeTime +Get-CimInstance -Class Win32_Process -Property Name, KernelModeTime +$x = Get-CimInstance -Class Win32_Process -Property Name, KernelModeTime $x | Invoke-CimMethod -MethodName GetOwner ``` @@ -204,7 +204,7 @@ the variable are then passed to `Get-CimInstance` by using the **CimSession** pa CIM instances of the class named **Win32_ComputerSystem**. ```powershell -$s = New-CimSession -ComputerName Server01,Server02 +$s = New-CimSession -ComputerName Server01, Server02 Get-CimInstance -ClassName Win32_ComputerSystem -CimSession $s ``` @@ -214,7 +214,8 @@ Get-CimInstance -ClassName Win32_ComputerSystem -CimSession $s Specifies the CIM session to use for this cmdlet. Enter a variable that contains the CIM session or a command that creates or gets the CIM session, such as the `New-CimSession` or `Get-CimSession` -cmdlets. For more information, see [about_CimSession](../Microsoft.PowerShell.Core/About/about_CimSession.md). +cmdlets. For more information, see +[about_CimSession](../Microsoft.PowerShell.Core/About/about_CimSession.md). ```yaml Type: Microsoft.Management.Infrastructure.CimSession[] @@ -320,8 +321,8 @@ Accept wildcard characters: False Indicates that only objects with key properties populated are returned. Specifying the **KeyOnly** parameter reduces the amount of data transferred over the network. -Use the **KeyOnly** parameter to return only a small portion of the object, which can be used for other -operations, such as the `Set-CimInstance` or `Get-CimAssociatedInstance` cmdlets. +Use the **KeyOnly** parameter to return only a small portion of the object, which can be used for +other operations, such as the `Set-CimInstance` or `Get-CimAssociatedInstance` cmdlets. ```yaml Type: System.Management.Automation.SwitchParameter @@ -495,7 +496,8 @@ Accept wildcard characters: False 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). +-WarningAction, and -WarningVariable. For more information, see +[about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216). ## INPUTS @@ -514,18 +516,18 @@ the CIM server. ## RELATED LINKS -[Format-Table](../microsoft.powershell.utility/format-table.md) +[Format-Table](../Microsoft.Powershell.Utility/Format-Table.md) [Get-CimAssociatedInstance](Get-CimAssociatedInstance.md) [Get-CimClass](Get-CimClass.md) -[Invoke-CimMethod](invoke-cimmethod.md) +[Invoke-CimMethod](Invoke-CimMethod.md) [New-CimInstance](New-CimInstance.md) [Register-CimIndicationEvent](Register-CimIndicationEvent.md) -[Remove-CimInstance](remove-ciminstance.md) +[Remove-CimInstance](Remove-CimInstance.md) [Set-CimInstance](Set-CimInstance.md) diff --git a/reference/5.1/CimCmdlets/Get-CimSession.md b/reference/5.1/CimCmdlets/Get-CimSession.md index 6e35e7edcbb3..b1a7ea06c221 100644 --- a/reference/5.1/CimCmdlets/Get-CimSession.md +++ b/reference/5.1/CimCmdlets/Get-CimSession.md @@ -46,7 +46,8 @@ can use the parameters of `Get-CimSession` to get the sessions that are for part you can identify sessions by their names or other identifiers. `Get-CimSession` does not get CIM sessions that were created in other PowerShell sessions or that were created on other computers. -For more information about CIM sessions, see [about_CimSession](../Microsoft.PowerShell.Core/About/about_CimSession.md). +For more information about CIM sessions, see +[about_CimSession](../Microsoft.PowerShell.Core/About/about_CimSession.md). ## EXAMPLES @@ -56,7 +57,7 @@ This example creates CIM sessions using [New-CimSession](New-CimSession.md), and sessions using `Get-CimSession`. ```powershell -New-CimSession -ComputerName Server01,Server02 +New-CimSession -ComputerName Server01, Server02 Get-CimSession ``` @@ -96,7 +97,7 @@ This example gets all CIM sessions in the current PowerShell session and display only the **ComputerName** and **InstanceID** properties. ```powershell -Get-CimSession | Format-Table -Property ComputerName,InstanceId +Get-CimSession | Format-Table -Property ComputerName, InstanceId ``` ```Output @@ -169,7 +170,8 @@ Specifies the identifier of the CIM session to get. For multiple IDs, use commas or use the range operator (`..`) to specify a range of IDs. An **Id** is an integer that uniquely identifies the CIM session within the current PowerShell session. -For more information about the range operator, see [about_Operators](../Microsoft.PowerShell.Core/About/about_Operators.md). +For more information about the range operator, see +[about_Operators](../Microsoft.PowerShell.Core/About/about_Operators.md). ```yaml Type: System.UInt32[] @@ -223,6 +225,7 @@ Accept wildcard characters: True ``` ### CommonParameters + This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see @@ -244,10 +247,10 @@ This cmdlet returns a CIM session object. ## RELATED LINKS -[Format-Table](../microsoft.powershell.utility/format-table.md) +[Format-Table](../Microsoft.Powershell.Utility/Format-Table.md) [New-CimSession](New-CimSession.md) -[Remove-CimSession](remove-cimsession.md) +[Remove-CimSession](Remove-CimSession.md) [about_CimSession](../Microsoft.PowerShell.Core/About/about_CimSession.md) diff --git a/reference/5.1/CimCmdlets/Import-BinaryMiLog.md b/reference/5.1/CimCmdlets/Import-BinaryMiLog.md index 5afa38258b00..8a82dd33e35e 100644 --- a/reference/5.1/CimCmdlets/Import-BinaryMiLog.md +++ b/reference/5.1/CimCmdlets/Import-BinaryMiLog.md @@ -54,6 +54,7 @@ Accept wildcard characters: True ``` ### CommonParameters + This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see diff --git a/reference/5.1/CimCmdlets/Invoke-CimMethod.md b/reference/5.1/CimCmdlets/Invoke-CimMethod.md index f50ce39034f9..da17bffd9036 100644 --- a/reference/5.1/CimCmdlets/Invoke-CimMethod.md +++ b/reference/5.1/CimCmdlets/Invoke-CimMethod.md @@ -153,7 +153,7 @@ to `Invoke-CimMethod`. ```powershell $c = Get-CimClass -ClassName Win32_Process -Invoke-CimMethod -CimClass $c -MethodName "xyz" -Arguments @{ CommandLine = 'notepad.exe' } +Invoke-CimMethod -CimClass $c -MethodName "xyz" -Arguments @{CommandLine='notepad.exe'} ``` ## PARAMETERS @@ -467,9 +467,9 @@ This cmdlet returns an object. ## RELATED LINKS -[Get-CimClass](get-cimclass.md) +[Get-CimClass](Get-CimClass.md) -[Get-CimInstance](get-ciminstance.md) +[Get-CimInstance](Get-CimInstance.md) [Get-CimSession](Get-CimSession.md) diff --git a/reference/5.1/CimCmdlets/New-CimInstance.md b/reference/5.1/CimCmdlets/New-CimInstance.md index caed3198ac53..6602b51d5dd4 100644 --- a/reference/5.1/CimCmdlets/New-CimInstance.md +++ b/reference/5.1/CimCmdlets/New-CimInstance.md @@ -275,10 +275,10 @@ Accept wildcard characters: False Specifies the amount of time that the cmdlet waits for a response from the CIM server. By default, the value of this parameter is 0, which means that the cmdlet uses the default timeout value for the -server. If the **OperationTimeoutSec** parameter is set to a value less than the robust connection retry -timeout of 3 minutes, network failures that last more than the value of the **OperationTimeoutSec** -parameter are not recoverable, because the operation on the server times out before the client can -reconnect. +server. If the **OperationTimeoutSec** parameter is set to a value less than the robust connection +retry timeout of 3 minutes, network failures that last more than the value of the +**OperationTimeoutSec** parameter are not recoverable, because the operation on the server times +out before the client can reconnect. ```yaml Type: System.UInt32 @@ -403,10 +403,10 @@ This cmdlet returns an object that contains the CIM instance information. ## RELATED LINKS -[Get-CimClass](get-cimclass.md) +[Get-CimClass](Get-CimClass.md) -[Get-CimInstance](get-ciminstance.md) +[Get-CimInstance](Get-CimInstance.md) -[Remove-CimInstance](remove-ciminstance.md) +[Remove-CimInstance](Remove-CimInstance.md) [Set-CimInstance](Set-CimInstance.md) diff --git a/reference/5.1/CimCmdlets/New-CimSession.md b/reference/5.1/CimCmdlets/New-CimSession.md index 99374e26e9bf..f5a69cd816fe 100644 --- a/reference/5.1/CimCmdlets/New-CimSession.md +++ b/reference/5.1/CimCmdlets/New-CimSession.md @@ -10,7 +10,6 @@ title: New-CimSession # New-CimSession ## SYNOPSIS - Creates a CIM session. ## SYNTAX @@ -23,7 +22,7 @@ New-CimSession [-Authentication ] [[-Credential [-Port ] [-SessionOption ] [] ``` -### CertificatePrameterSet +### CertificateParameterSet ``` New-CimSession [-CertificateThumbprint ] [[-ComputerName] ] [-Name ] @@ -128,9 +127,9 @@ parameter are: - NtlmDomain - CredSsp -You cannot use the **NtlmDomain** authentication type for connection to the local computer. **CredSSP** -authentication is available only in Windows Vista, Windows Server 2008, and later versions of -Windows. +You cannot use the **NtlmDomain** authentication type for connection to the local computer. +**CredSSP** authentication is available only in Windows Vista, Windows Server 2008, and later +versions of Windows. > [!CAUTION] > Credential Security Service Provider (CredSSP) authentication is designed for commands that @@ -164,11 +163,12 @@ To get a certificate thumbprint, use the [`Get-ChildItem`](../Microsoft.Powershell.Management/Get-ChildItem.md) cmdlets in the PowerShell Certificate Provider. -For more information, see [about_Certificate_Provider](../Microsoft.PowerShell.Security/About/about_Certificate_Provider.md). +For more information, see +[about_Certificate_Provider](../Microsoft.PowerShell.Security/About/about_Certificate_Provider.md). ```yaml Type: System.String -Parameter Sets: CertificatePrameterSet +Parameter Sets: CertificateParameterSet Aliases: Required: False @@ -215,7 +215,8 @@ Specify the value for **Credential** using one of the following formats: - A user name: "User01" - A domain name and a user name: "Domain01\User01" - A user principal name: "User@Domain.com" -- A PSCredential object, such as one returned by the [`Get-Credential`](../Microsoft.PowerShell.Security/Get-Credential.md) cmdlet. +- A PSCredential object, such as one returned by the + [`Get-Credential`](../Microsoft.PowerShell.Security/Get-Credential.md) cmdlet. When you type a user name, you are prompted for a password. @@ -235,7 +236,8 @@ Accept wildcard characters: False Specifies a friendly name for the CIM session. -You can use the name to refer to the CIM session when using other cmdlets, such as the [`Get-CimSession`](Get-CimSession.md) cmdlet. +You can use the name to refer to the CIM session when using other cmdlets, such as the +[`Get-CimSession`](Get-CimSession.md) cmdlet. The name is not required to be unique to the computer or the current session. ```yaml @@ -254,9 +256,13 @@ Accept wildcard characters: False Duration for which the cmdlet waits for a response from the server. -By default, the value of this parameter is 0, which means that the cmdlet uses the default timeout value for the server. +By default, the value of this parameter is 0, which means that the cmdlet uses the default timeout +value for the server. -If the **OperationTimeoutSec** parameter is set to a value less than the robust connection retry timeout of 3 minutes, network failures that last more than the value of the **OperationTimeoutSec** parameter are not recoverable, because the operation on the server times out before the client can reconnect. +If the **OperationTimeoutSec** parameter is set to a value less than the robust connection retry +timeout of 3 minutes, network failures that last more than the value of the **OperationTimeoutSec** +parameter are not recoverable, because the operation on the server times out before the client can +reconnect. ```yaml Type: System.UInt32 @@ -272,12 +278,12 @@ Accept wildcard characters: False ### -Port -Specifies the network port on the remote computer that is used for this connection. -To connect to a remote computer, the remote computer must be listening on the port that the connection uses. -The default ports are 5985 (the WinRM port for HTTP) and 5986 (the WinRM port for HTTPS). +Specifies the network port on the remote computer that is used for this connection. To connect to a +remote computer, the remote computer must be listening on the port that the connection uses. The +default ports are 5985 (the WinRM port for HTTP) and 5986 (the WinRM port for HTTPS). -Before using an alternate port, you must configure the WinRM listener on the remote computer to listen at that port. -Use the following commands to configure the listener: +Before using an alternate port, you must configure the WinRM listener on the remote computer to +listen at that port. Use the following commands to configure the listener: `winrm delete winrm/config/listener?Address=*+Transport=HTTP` diff --git a/reference/5.1/CimCmdlets/New-CimSessionOption.md b/reference/5.1/CimCmdlets/New-CimSessionOption.md index 96325eda7bf4..bba0cadfd195 100644 --- a/reference/5.1/CimCmdlets/New-CimSessionOption.md +++ b/reference/5.1/CimCmdlets/New-CimSessionOption.md @@ -93,7 +93,8 @@ parameter using one of the following formats: - A culture name in `-` format such as "EN-US". - A variable that contains a **CultureInfo** object. -- A command that gets a **CultureInfo** object, such as [Get-Culture](../Microsoft.PowerShell.Utility/Get-Culture.md) +- A command that gets a **CultureInfo** object, such as + [Get-Culture](../Microsoft.PowerShell.Utility/Get-Culture.md) ```yaml Type: System.Globalization.CultureInfo @@ -479,12 +480,12 @@ This cmdlet returns an object that contains CIM session options information. ## RELATED LINKS -[Get-ChildItem](../microsoft.powershell.management/get-childitem.md) +[Get-ChildItem](../Microsoft.Powershell.Management/Get-ChildItem.md) -[Get-Credential](../microsoft.powershell.security/get-credential.md) +[Get-Credential](../Microsoft.Powershell.Security/Get-Credential.md) -[Get-Culture](../microsoft.powershell.utility/get-culture.md) +[Get-Culture](../Microsoft.Powershell.Utility/Get-Culture.md) -[Get-Item](../microsoft.powershell.management/get-item.md) +[Get-Item](../Microsoft.Powershell.Management/Get-Item.md) [New-CimSession](New-CimSession.md) diff --git a/reference/5.1/CimCmdlets/Register-CimIndicationEvent.md b/reference/5.1/CimCmdlets/Register-CimIndicationEvent.md index 39e26c5a0f1f..2d0c6403f1a4 100644 --- a/reference/5.1/CimCmdlets/Register-CimIndicationEvent.md +++ b/reference/5.1/CimCmdlets/Register-CimIndicationEvent.md @@ -96,13 +96,13 @@ script block for **Action**, which uses the `$event` variable to access the even $action = { $name = $event.SourceEventArgs.NewEvent.ProcessName $id = $event.SourceEventArgs.NewEvent.ProcessId - Write-Host -Object "New Process Started : Name = $name - ID = $id" + Write-Host -Object "New Process Started : Name = $name ID = $id" } Register-CimIndicationEvent -ClassName 'Win32_ProcessStartTrace' -SourceIdentifier "ProcessStarted" -Action $action ``` -For more information, see [Win32_ProcessStartTrace](/previous-versions/windows/desktop/krnlprov/win32-processstarttrace). +For more information, see +[Win32_ProcessStartTrace](/previous-versions/windows/desktop/krnlprov/win32-processstarttrace). ### Example 4: Register the events on a remote computer @@ -390,14 +390,15 @@ This cmdlet returns an **EventSubscription** object. ## RELATED LINKS -[Get-Event](../microsoft.powershell.utility/get-event.md) +[Get-Event](../Microsoft.Powershell.Utility/Get-Event.md) -[Remove-Event](../microsoft.powershell.utility/remove-event.md) +[Remove-Event](../Microsoft.Powershell.Utility/Remove-Event.md) -[Unregister-Event](../microsoft.powershell.utility/unregister-event.md) +[Unregister-Event](../Microsoft.Powershell.Utility/Unregister-Event.md) -[Write-Host](../microsoft.powershell.utility/write-host.md) +[Write-Host](../Microsoft.Powershell.Utility/Write-Host.md) [Get-CimSession](Get-CimSession.md) [New-CimSession](New-CimSession.md) + diff --git a/reference/5.1/CimCmdlets/Remove-CimInstance.md b/reference/5.1/CimCmdlets/Remove-CimInstance.md index 237ee4fd4658..c1a6b74f4a4c 100644 --- a/reference/5.1/CimCmdlets/Remove-CimInstance.md +++ b/reference/5.1/CimCmdlets/Remove-CimInstance.md @@ -320,6 +320,6 @@ This cmdlet returns no output. [New-CimInstance](New-CimInstance.md) -[Get-CimInstance](get-ciminstance.md) +[Get-CimInstance](Get-CimInstance.md) [Set-CimInstance](Set-CimInstance.md) diff --git a/reference/5.1/CimCmdlets/Remove-CimSession.md b/reference/5.1/CimCmdlets/Remove-CimSession.md index 4a0c8cde989e..f27cef7031d0 100644 --- a/reference/5.1/CimCmdlets/Remove-CimSession.md +++ b/reference/5.1/CimCmdlets/Remove-CimSession.md @@ -124,7 +124,8 @@ Specifies the ID of the CIM session to remove. Specify one or more IDs separated the range operator (`..`) to specify a range of IDs. An **Id** is an integer that uniquely identifies the CIM session in the current PowerShell session. -For more information about the range operator, see [about_Operators](../Microsoft.PowerShell.Core/About/about_Operators.md). +For more information about the range operator, see +[about_Operators](../Microsoft.PowerShell.Core/About/about_Operators.md). ```yaml Type: System.UInt32[] @@ -144,7 +145,8 @@ Specifies the instance ID of the CIM session to remove. **InstanceId** is a Glob Identifier (GUID) that uniquely identifies a CIM session. The **InstanceId** is unique, even when you have multiple sessions running in PowerShell. -The **InstanceId** is stored in the **InstanceId** property of the object that represents a CIM session. +The **InstanceId** is stored in the **InstanceId** property of the object that represents a CIM +session. ```yaml Type: System.Guid[] diff --git a/reference/5.1/CimCmdlets/Set-CimInstance.md b/reference/5.1/CimCmdlets/Set-CimInstance.md index 9da90b0b89ac..9ada17a3f88d 100644 --- a/reference/5.1/CimCmdlets/Set-CimInstance.md +++ b/reference/5.1/CimCmdlets/Set-CimInstance.md @@ -415,8 +415,8 @@ When you use the **PassThru** parameter, this cmdlet returns the modified CIM in ## RELATED LINKS -[Get-CimInstance](get-ciminstance.md) +[Get-CimInstance](Get-CimInstance.md) [New-CimInstance](New-CimInstance.md) -[Remove-CimInstance](remove-ciminstance.md) +[Remove-CimInstance](Remove-CimInstance.md) From f0b0df2bb9a4ce24715b1ba0f0e0d7cef5fa835e Mon Sep 17 00:00:00 2001 From: Arie Heinrich Date: Sun, 19 Jan 2025 19:53:41 +0100 Subject: [PATCH 2/2] PS style --- reference/5.1/CimCmdlets/Set-CimInstance.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/5.1/CimCmdlets/Set-CimInstance.md b/reference/5.1/CimCmdlets/Set-CimInstance.md index 9ada17a3f88d..53dffb7dd817 100644 --- a/reference/5.1/CimCmdlets/Set-CimInstance.md +++ b/reference/5.1/CimCmdlets/Set-CimInstance.md @@ -141,7 +141,7 @@ cmdlet, and retrieves its contents in to a variable `$x`. The variable is then p Because the **PassThru** parameter is used, This example returns a modified CIM instance object. ```powershell -$x = New-CimInstance -ClassName Win32_Environment -Property @{Name="testvar";UserName="domain\user"} -Key Name,UserName -ClientOnly +$x = New-CimInstance -ClassName Win32_Environment -Property @{Name="testvar";UserName="domain\user"} -Key Name, UserName -ClientOnly Set-CimInstance -CimInstance $x -Property @{VariableValue="somevalue"} -PassThru ```