2013-03-07 47 views

回答

2

像这样的东西可以为你工作吗?

[bool](dir cert:\LocalMachine\My\ | ? { $_.subject -like "cn=localho*" }) 
+0

这是一个良好的开端,谢谢你 - 如果我想要的“CN =的locahost”后添加一个通配符?我只对匹配CN的开头感兴趣...... – 2013-03-07 20:14:24

+0

@DominicBrunetti编辑我的答案以适合您的需要,使用 - 就像接受通配符 – 2013-03-07 21:27:19

+0

就是这样!非常感谢你! – 2013-03-08 18:41:31