460 likes | 953 Views
Sysinternals Primer: Autoruns, Disk2Vhd, ProcDump, BgInfo and AccessChk. Aaron Margosis Principal Consultant Microsoft Services, Public Sector. Session Objectives and Takeaways. Session Objectives: Focus on features of Sysinternals tools
E N D
Sysinternals Primer:Autoruns, Disk2Vhd, ProcDump, BgInfo and AccessChk Aaron Margosis Principal Consultant Microsoft Services, Public Sector
Session Objectives and Takeaways • Session Objectives: • Focus on features of Sysinternals tools • Complementary to Mark Russinovich’s “Case of the Unexplained” talks • Key Takeaway • Use Sysinternals utilities more effectively
The Sysinternals Administrator’s Reference • The official guide to the Sysinternals tools • Covers every tool, every feature, with tips • Written by Mark Russinovichand Aaron Margosis • Available in June… (or so…) • Full chapters on the major tools: • Process Explorer • Process Monitor • Autoruns • Other chapters by tool group • Security, process, AD, desktop, …
Updates since the last Sysinternals Primer… sysinternals
What’s New • Process Explorer v14 • CPU Cycle Accounting • Tree CPU Usage • System information changes • Network and disk throughput history minigraphs • Interrupt and DPC counts in System Information dialog • Network and disk I/O per-process columns • > 64 CPU support
What’s New • Process Monitor • Quick filter context menus to zoom in on particular time range in a trace. • Ability to disable individual filter entries • API for developers interested in inserting debug output into the Process Monitor event stream
Disk2Vhd sysinternals
Disk2Vhd • Captures an image of a physical disk to the VHD format • GUI and Command Line • Uses Windows Volume Snapshot • Does not copy paging or hibernation files • Can capture a running system • Works on all supported Windows versions • Requires administrator privilege • Capture image to multiple places • UNC • Mapped Drive • USB
XP vs Win7 • Windows XP • Windows Server 2003 • Windows Vista • Windows 7 • Windows Server 2008 • Windows Server 2008 R2
Disk2Vhd demo
Autoruns sysinternals
Autoruns • Replaces System Configuration (msconfig) services and startup tab • Uncovers software that starts automatically by Windows through Auto-Start Extensibility Points (ASEPs) • Software applications • Internet Explorer add-ins • Drivers • Services • Command line version – AutorunsC • Analyze offline system
Autoruns demo
ProcDump sysinternals
ProcDump • User-mode memory dump utility • Easier to use than Adplus • Many configurable triggers • CPU or memory usage • GUI hang • First- or second-chance exceptions • Termination • Perf counter thresholds • Dump file types, including new “Miniplus” dump
ProcDump command line syntax • procdump[-c percent [-u]] [-s n] [-n count][-m commit] [-h] [-e [1] [-b]] [-t] [-p counter threshold] [-ma | -mp] [-r] [-o] [-64] { {processname | PID} [dumpfile] |-x {imagefile} {dumpfile} [arguments] }
ProcDump command line syntax • procdump[-c percent [-u]] [-s n] [-n count][-m commit] [-h] [-e [1] [-b]] [-t] [-p counter threshold] [-ma | -mp] [-r] [-o] [-64] { {processname | PID} [dumpfile] |-x {imagefile} {dumpfile} [arguments] } Which process to monitor and target dump file….
ProcDump command line syntax • procdump[-c percent [-u]] [-s n] [-n count][-m commit] [-h] [-e [1] [-b]] [-t] [-p counter threshold] [-ma | -mp] [-r] [-o] [-64] { {processname | PID} [dumpfile] |-x {imagefile} {dumpfile} [arguments] } Dump criteria…
ProcDump command line syntax • procdump[-c percent [-u]] [-s n] [-n count][-m commit] [-h] [-e [1]] [-t] [-p counter threshold] [-ma | -mp] [-r] [-o] [-64] { {processname | PID} [dumpfile] | • -x {imagefile} {dumpfile} [arguments] } How to dump the process state…
ProcDump demo
BgInfo sysinternals
BgInfo • Displays computer configuration on desktop wallpaper • Flexible formatting options • 24 default fields covering OS, hardware, network, logon and timestamp attributes • Custom fields from registry, envvars, WMI queries, … • Log results
BgInfo demo
AccessChk sysinternals
AccessChk • Reports effective permissions on securable objects • Can perform recursive searches • Supports many object types • Shows summary; can show detailed permissions • Search for access rights for a user or group • Reports account rights
AccessChk demo
Getting Started sysinternals
Sysinternals Website Features • http://www.Sysinternals.com • Redirects to http://technet.microsoft.com/Sysinternals • Sysinternals Suite contains all the tools in one zip file • Site blog announces all updates • http://blogs.technet.com/Sysinternals • Run directly from the web: Sysinternals Live • http://live.sysinternals.com/procmon.exe, or • \\live.sysinternals.com\tools\procmon.exe • UNC syntax requires WebClient service • Videos on troubleshooting with the tools
Additional Resources • Mark Russinovich’s blog: • http://blogs.technet.com/MarkRussinovich • Blog posts and utilities by Aaron Margosis • http://blogs.msdn.com/aaron_margosis • http://blogs.technet.com/fdcc • The “Bonus Tracks” at the end of this deck
Disk2Vhd command line syntax • disk2vhd [-h] drives vhdfile • -h When capturing Windows XP or Server 2003 system volumes, -h fixes up the HAL in the VHD to be compatible with Virtual PC. • drivesis one or more drive letters with colons (e.g., c: d:) indicating which volumes to convert, or use “*” to indicate all volumes. • vhdfile is the full path to the VHD file to be created. • Example: disk2vhd c: e:\vhd\snapshot.vhd
Autoruns command line syntax • autoruns [-e] [[-v] -a file] • -e Run elevated (Vista and newer) • -a file Save results to file.arn and then exit • -v Verify signatures
AutorunsC command line syntax(Descriptions of the options on the next slide) • autorunsc[-x] [[-a] | [-b] [-c] [-d] [-e] [-g] [-h] [-i] [-k] [-l] [-m] [-o] [-p] [-r] [-s] [-v] [-w] [[-z systemrootuserprofile] | [user]]
ProcDump command line syntax(Descriptions of the options on the next slide) • procdump[-c percent [-u]] [-s n] [-n count][-m commit] [-h] [-e [1] [-b]] [-t] [-p counter threshold] [-ma | -mp] [-r] [-o] [-64] { {processname | PID} [dumpfile] |-x {imagefile} {dumpfile} [arguments] }
AccessChk command line optionsaccesschk [options] [user-or-group] objectname
Track Resources Don’t forget to visit the Cloud Power area within the TLC (Blue Section) to see product demos and speak with experts about the Server & Cloud Platform solutions that help drive your business forward. You can also find the latest information about our products at the following links: • Cloud Power - http://www.microsoft.com/cloud/ • Private Cloud - http://www.microsoft.com/privatecloud/ • Windows Server - http://www.microsoft.com/windowsserver/ • Windows Azure - http://www.microsoft.com/windowsazure/ • Microsoft System Center - http://www.microsoft.com/systemcenter/ • Microsoft Forefront - http://www.microsoft.com/forefront/
Resources • Connect. Share. Discuss. http://northamerica.msteched.com Learning • Sessions On-Demand & Community • Microsoft Certification & Training Resources www.microsoft.com/teched www.microsoft.com/learning • Resources for IT Professionals • Resources for Developers http://microsoft.com/technet http://microsoft.com/msdn
© 2011 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.