Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Trying to output several properties of get-SPServiceInstance using PowerShell but having problems

$
0
0

So I am trying to run get-spserviceinstance and redirect the output to a file. Thus, I don't want powershell assuming that my lines are limited to 80 columns.

When I try to use format-wide or format-table, powershell keeps dropping properties.

I want one line per entry, containing ALL characters of the property.

I don't care if the end result is 3000 or more characters. I have a text editor and it can scroll.

When I try things like

PS > get-spServiceInstance | select TypeName,Id,Status,Server | format-table -Wrap  -AutoSize -Property TypeName,Id,Status,Server -Groupby Server  > d:\temp\services.txt

I was hoping to get the services grouped by machine, but to get all the info. Instead I get

   Server: SPServer Name=MyServer

WARNING: 2 columns do not fit into the display and were removed.

TypeName                                                      Id                                 
 --------                                                         --   

followed by the data.

What can I do to get at least the status included on these lines as well as the full service name and guid?


Viewing all articles
Browse latest Browse all 11571

Trending Articles



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