PS C:\> vssadmin list shadows | Select-String “/” | measure -line
Lines Words Characters Property
—– —– ———- ——–
5
请问要怎样提取数字5,不能包含空格和空行。老大给的答案我执行没有结果。我的ps版本是2.0
PS C:\> (vssadmin list shadows | where { $_ -like ‘Contents of shadow copy set ID*’ }).count
PS C:\>