I'm working with the systeminfo command in a batch file. The only problem is it outputs way to much stuff.
I was thinking of using
systeminfo /s server | find “Host Name:”
the only problem with this is I’d have to run systeminfo more than once to show all the things I need. So I tried outputting systeminfo to a txt file.
systeminfo /s server >server.txt
then I used find commands
find "Host Name:" <server.txt
find "OS Name:" <server.txt
find "OS Version:" <server.txt
This works ok… but I want to display everything except the huge list of hotfixs.
Is there any way to tell the script to just delete the hotfixs? Like delete after “hotfix(s):” and before “Network Card(s):” or just display all except for what’s in-between those sections.
Hope this make since.
Thanks,
P.
I was thinking of using
systeminfo /s server | find “Host Name:”
the only problem with this is I’d have to run systeminfo more than once to show all the things I need. So I tried outputting systeminfo to a txt file.
systeminfo /s server >server.txt
then I used find commands
find "Host Name:" <server.txt
find "OS Name:" <server.txt
find "OS Version:" <server.txt
This works ok… but I want to display everything except the huge list of hotfixs.
Is there any way to tell the script to just delete the hotfixs? Like delete after “hotfix(s):” and before “Network Card(s):” or just display all except for what’s in-between those sections.
Hope this make since.
Thanks,
P.