2016-07-27 71 views
0

我執行下面的代碼,但在PowerShell 2.0中,而代碼在最新版本的罰款,請幫助面臨誤差3個ADN以上面對錯誤是沒有任何管理單元來解決這個或任何除了更新PowerShell之外的其他解決方案。提前致謝。而在PowerShell 2.0中執行命令,同時做工精細PowerShell中

Code: 
    Write-Output $a |Tee-Object -FilePath $fileName 
    Write-Output("Please wait components deletion is in progress")|Tee-Object -FilePath $fileName -Append 

Error: 
    Tee-Object : A parameter cannot be found that matches parameter name 'Append'. 
    At line:1 char:102 
    + Write-Output("Please wait components deletion is in progress")|Tee- Object -FilePath $fileName -Append 
+ CategoryInfo   : InvalidArgument: (:) [Tee-Object], ParameterBindingException 
+ FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.TeeObjectCommand 

回答