I want to Show directly command help in a text file , but i cant do it . for example for servermanagercmd command ::
c:\>servermanagercmd -query > c:\Srv-Mgr-Query.txt
insted of this command i want when i type c:\>servermanagercmd -query and press enter directly open a notepad with Query of servermanager Role installed
Not somewhere I can test it right now, but your script would be something like:
Servermanagercmd -query | Out-File c:\Srv-Mgr-Query.txtStart c:\Srv-Mgr-Query.txt
Servermanagercmd -query | Out-File c:\Srv-Mgr-Query.txt
Microsoft is conducting an online survey to understand your opinion of the Technet Web site. If you choose to participate, the online survey will be presented to you when you leave the Technet Web site.
Would you like to participate?