我查找大于x的文件的脚本对我和我的powershell 3.0都很好。但是在我们的服务器上,我们只有powershell 2.0,我无法使它正常工作。
错误如下:
Bad Argument to Operator '-gt' Could not compare "3841" to "10MB". Error cannot convert "10MB" to type "System.Int64" Error: "Input string was not in a correct format."