运行此Microsoft提供的脚本Link to MS Blog Post以将SSL证书导出到PFX文件会在此行上产生此错误。
行:$ certificateProperties = Get-Member -InputObject $ ascResource.Properties.certificates [0] -MemberType NoteProperty
错误:Get-Member:您必须为Get-Member cmdlet指定一个对象。在C:\ Users \ User \ Desktop \ certget.ps1:14 char:24 + ... eProperties = Get-Member -InputObject $ ascResource.Properties.certifica ... + ~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo:CloseError :(:) [Get-Member],InvalidOperationException + FullyQualifiedErrorId:NoObjectInGetMember,Microsoft.PowerShell.Commands.GetMemberCommand
其他人遇到此错误并找到解决方法吗?谢谢!