![]() ![]() Press Ctrl-F (or click the binoculars icon), then search for RegSetValue. The Process Monitor window now shows all registry keys that the application interacted with when it applied its configuration setting. Review the capture logs for registry modification Switch again to the Process Monitor window, then press Ctrl-E (or click the magnifying glass icon.) Process Monitor now no longer captures the application’s activity. Tell Process Monitor to stop capturing information For the PowerShell example, this means pressing Enter. Press OK, Apply, or whatever action it takes to actually complete the program’s configuration. Switch to the Process Monitor window, then press Ctrl-E (or click the magnifying glass icon.) Process Monitor now captures all registry access for the program in question. Preparing to apply the configuration option Tell Process Monitor to begin capturing information For this PowerShell example, type the Set-ExecutionPolicy command line, but do not press Enter.įigure 18-3. Usually, this means typing and clicking all of the property settings, but just not pressing OK or Apply. Next, prepare to manually set the program’s configuration option. Process Monitor ready to capture Prepare to manually set the configuration option You can press Ctrl-L (or click the funnel icon) to see the filter that Process Monitor now applies to its output.įigure 18-2. Finally, drag the target icon and drop it on top of the application in question. Next, press Ctrl-X (or click the white sheet with an eraser icon) to clear the extra information that it captured automatically. By default, Process Monitor logs almost all registry and file activity on the system.įirst, launch Process Monitor, then press Ctrl-E (or click the magnifying glass icon) to temporarily prevent it from capturing any data. Once you’ve downloaded Process Monitor, the first step is to filter its output to include only the program you are interested in. Although PowerShell documents these keys and makes its automated configuration a breeze, it illustrates the general technique. To illustrate this, we will use the Sysinternals' Process Monitor to discover PowerShell’s execution policy configuration keys. While many programs document their registry configuration settings, many still do not.Īlthough these programs may not document their registry settings, you can usually observe their registry access activity to determine the registry paths they use. Many programs do not, however, so the solution is to look through their documentation in the hope that they list the registry keys and properties that control their settings. In an ideal world, all programs would fully support command-line administration and configuration through PowerShell cmdlets. Use Sysinternals' Process Monitor to observe registry access by that program. ![]() You want to automate the configuration of a program, but that program does not document its registry configuration settings. Discover Registry Settings for Programs Problem To give a glimpse into the writing process behind my upcoming “Windows PowerShell - The Definitive Guide” (O’Reilly,) I’ll occasionally post entries “as the author sees it.” This entry illustrates how to discover registry settings for programs that do not otherwise support scripted automation. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |