diff --git a/dsc/getting-started/lnxGettingStarted.md b/dsc/getting-started/lnxGettingStarted.md index e9fb8b714f9c..d779b98506d7 100644 --- a/dsc/getting-started/lnxGettingStarted.md +++ b/dsc/getting-started/lnxGettingStarted.md @@ -109,25 +109,25 @@ The following code shows how to create a CIMSession for DSC for Linux. ```powershell $Node = "ostc-dsc-01" -$Credential = Get-Credential -UserName:"root" -Message:"Enter Password:" +$Credential = Get-Credential -UserName "root" -Message "Enter Password:" #Ignore SSL certificate validation -#$opt = New-CimSessionOption -UseSsl:$true -SkipCACheck:$true -SkipCNCheck:$true -SkipRevocationCheck:$true +#$opt = New-CimSessionOption -UseSsl $true -SkipCACheck $true -SkipCNCheck $true -SkipRevocationCheck $true #Options for a trusted SSL certificate -$opt = New-CimSessionOption -UseSsl:$true -$Sess=New-CimSession -Credential:$credential -ComputerName:$Node -Port:5986 -Authentication:basic -SessionOption:$opt -OperationTimeoutSec:90 +$opt = New-CimSessionOption -UseSsl $true +$Sess=New-CimSession -Credential $credential -ComputerName $Node -Port 5986 -Authentication basic -SessionOption $opt -OperationTimeoutSec 90 ``` > [!NOTE] > For “Push” mode, the user credential must be the root user on the Linux computer. > Only SSL/TLS connections are supported for DSC for Linux, the `New-CimSession` must be used with the –UseSSL parameter set to $true. > The SSL certificate used by OMI (for DSC) is specified in the file: `/opt/omi/etc/omiserver.conf` with the properties: pemfile and keyfile. -> If this certificate is not trusted by the Windows computer that you are running the [New-CimSession](/powershell/module/CimCmdlets/New-CimSession) cmdlet on, you can choose to ignore certificate validation with the CIMSession Options: `-SkipCACheck:$true -SkipCNCheck:$true -SkipRevocationCheck:$true` +> If this certificate is not trusted by the Windows computer that you are running the [New-CimSession](/powershell/module/CimCmdlets/New-CimSession) cmdlet on, you can choose to ignore certificate validation with the CIMSession Options: `-SkipCACheck $true -SkipCNCheck $true -SkipRevocationCheck $true` Run the following command to push the DSC configuration to the Linux node. -`Start-DscConfiguration -Path:"C:\temp" -CimSession:$Sess -Wait -Verbose` +`Start-DscConfiguration -Path:"C:\temp" -CimSession $Sess -Wait -Verbose` ### Distribute the configuration with a pull server