2008年12月9日

MS2275 U3

1. You are running a database application on your computer. Your computer has two processors. You want the database application to run on the second processor. How can you use Task Manager to do this? 

Answer: Right-click the database application in the Applications tab, and then choose Go To Process. Right-click the process, and set the processor affinity from the shortcut menu. 

2. You need to get patch and hotfix information from a number of servers on your network. You would like to do this remotely. How can you use WMI to accomplish the task? 

Answer: Use the OS ASSOC alias with the /node: switch to run the WMIC command on any number of the computers remotely. Output to a CSV or HTML file for later use is possible as well using the /output alias and /format switch. For example, if Server01 and Server02 were the target computers for WMIC, the command would be /NODE:"SERVER01","SERVER02" OS ASSOC.  

3. You want to get a list of all installed applications on 17 computers in the development department. You would like to do this remotely. How can you use WMI to accomplish this? 

Answer: Type the computer names into a text file (computers.txt, for example). Use the WMIC PRODUCT alias with the node /node:@ switch to get the list of installed applications on each of the computers in the list. Output to a CSV or HTML file for later use is possible as well using the /out-put alias and /format switch. For example, /NODE:@c:\computers.txt PRODUCT would produce the desired results.

没有评论: