Hi
I'm creating a script that I can run against a remote host that may have been comprimised so I can compare it against a baseline.
The types of commands i'll be issuing will be:
gwmi win32_Service | Select Name,ProcessID,State,StartMode,PathName | ft >C:\outputfile.txt
What I really need to know is, is there a way that I can get the output to not truncate? I have used the -auto and -wrap options but what I would prefer is to have the entire output on one line as these are not that readable for pathnames especially.
I have been trying to get the out-file -width option to work but it uses the extended width setting for all columns. Any help or ideas would be appreciated.
Regards
Lee