Quantcast
Channel: SharePoint 2010 - Setup, Upgrade, Administration and Operations forum
Viewing all articles
Browse latest Browse all 13778

How to exclude property from result returned by powershell command ?

$
0
0

Hello,

I have ran following command that works well ,however it returns   PSComputerName,RunspaceId, PSShowComputerNameproperties even if I dont select specifically.

Invoke-Command -ComputerName $serversinFarm -ScriptBlock ${function:Get-RemoteRebootStatus}

Would you please let me know how can I exclude RunspaceId, PSShowComputerName properties  in result ?

Thanks and Regards,


Dipti Chhatrapati


Viewing all articles
Browse latest Browse all 13778

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>