diff --git a/src/PowerShell/Microsoft.WinGet.DSC/Microsoft.WinGet.DSC.psm1 b/src/PowerShell/Microsoft.WinGet.DSC/Microsoft.WinGet.DSC.psm1 index c912a1d0d9..96938c707a 100644 --- a/src/PowerShell/Microsoft.WinGet.DSC/Microsoft.WinGet.DSC.psm1 +++ b/src/PowerShell/Microsoft.WinGet.DSC/Microsoft.WinGet.DSC.psm1 @@ -474,7 +474,7 @@ class WinGetPackage [WinGetPackage] Get() { - if ([String]::IsNullOrWhiteSpace($this.Name)) + if ([String]::IsNullOrWhiteSpace($this.Id)) { throw "A value must be provided for WinGetPackage::Id" }