电源外壳脚本以获取远程服务器证书
我有200多个服务器,我正在使用此脚本在每个服务器上获取SSL证书。但是,我希望从每个服务器中获取信息并导出到CSV。
Get-ChildItem -Path cert:\LocalMachine\My, cert:\LocalMachine\WebHosting `
-SSLServerAuthentication | Where-Object -FilterScript {((Get-Date))} | format-list -Property PSPath,FriendlyName,NotAfter
我想到将其添加到脚本的顶部
$remotecomputers = "Server_Name","Server_Name","Server_Name"
I have over 200 servers and I am using this script to get the SSL certificates on each server. However, I am looking to get the info from each server and export to a csv.
Get-ChildItem -Path cert:\LocalMachine\My, cert:\LocalMachine\WebHosting `
-SSLServerAuthentication | Where-Object -FilterScript {((Get-Date))} | format-list -Property PSPath,FriendlyName,NotAfter
I thought of adding adding this to the top of script
$remotecomputers = "Server_Name","Server_Name","Server_Name"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论