您好,尝试获取pst文件列表但排除多个目录。到目前为止,这是我的代码。 [英] Hello, Trying to get a list of pst files but exclude several directories. Here is my code so far.

查看:78
本文介绍了您好,尝试获取pst文件列表但排除多个目录。到目前为止,这是我的代码。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Get-ChildItemz:\ - .Filter* .pst - Recurse | ?{$ _。fullname -notmatch\\usera \\?,\\ userb \\,\\ userc \\,\\ userd \\} | Out-file -FilePathC:\Test \PST-List.txt

解决方案

_。fullname -notmatch\\usera \\ ?,\\ userb \\,\\ userc \\,\\ userd \\} | Out-file -FilePathC:\ Test\PST-LIST.TXT

Get-ChildItem "z:\" -Filter "*.pst" -Recurse | ?{ $_.fullname -notmatch "\\usera\\?", "\\userb\\", "\\userc\\", "\\userd\\"} | Out-file -FilePath "C:\Test\PST-List.txt

解决方案

_.fullname -notmatch "\\usera\\?", "\\userb\\", "\\userc\\", "\\userd\\"} | Out-file -FilePath "C:\Test\PST-List.txt


这篇关于您好,尝试获取pst文件列表但排除多个目录。到目前为止,这是我的代码。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆