Ricardo's profileRicardo's space - Your N...PhotosBlogListsMore ![]() | Help |
|
Thanks for your visit, plase add comments and suggestions or share your technical issues for us to discuss.
|
Ricardo's space - Your Number 1Tech PlaceThis is the place I use to share my day-by-day experiences as an It Professional, Please leave your comments to my posts! January 16 Manage Removable Devices with Windows Vista (Virtual Lab)In this task you will configure USB device security. Device security settings can be used to manage the types of storage devices that Windows Vista and Windows.
Longhorn Servers can access, as well as the type of access allowed to these devices. Device security can control USB devices, CD and DVD devices, as well as other types of devices. Using device security, you can, for example, prevent USB devices from being used on domain controllers. This task provides you with an example of allowing a specific type of device. a. In Group Policy Object Editor, navigate to Computer Configuration\Administrative Templates\System\Removable Storage Access. b. In the Contents pane, double-click on Removable Disks:Deny Write Access,select Enabled and then click OK c. In Group Policy Object Editor, navigate to Computer Configuration\Administrative Templates\System\Device Installation\Device Installation Restrictions. d. In the Contents pane, double-click Allow Administrators to override device installation policy, select Enabled and click OK. e. In the Contents pane, double-click Prevent installation of devices not described by other policy settings, select Enabled and click OK. f. In the Contents pane, double-click Allow installation of devices that match any of these Device IDs, select Enabled and click Show. g.Click Add and in the Add Item dialog box, type USBSTOR\DiskSanDisk_Mini____0.2_ , then click OK. NOTE: You are adding the Plug and Play hardware ID for the permitted USB device. You can determine the hardware IDs for a device in two ways: You can plug in the device and use either Device Manager, a graphical tool included with the Operating System, to view the device properties, or you can use DevCon, a command-line tool available for download as part of the Driver Development Kit (DDK).
h. Click OK to close the Show Contents dialog box. i. Click OK to close the Allow installation of devices that match any of these Device IDs policy window. Please take 30 minutes to perform the above steps in the following Virtual Lab: Windows Vista Virtual Lab Express: Management Overview Links
Secure removable storage devices via Group Policy in Vista
Control ALL USB Devices Using Group Policy
January 07 Troubleshooting the System process (CPU Spikes)Before addressing the issue at hand it is best to get familiar with the System process and what makes it so unique in comparison. System Process and Threads The System process (PID 8 in Windows 2000 and process ID 4 in Windows XP; Vista and Windows 2003) houses kernel-mode system threads. System threads have all the attributes and contexts and are similar to regular user-mode threads, however they run only in kernel-mode. System threads don't have a user process address space and thus must allocate any dynamic info from OS system memory heaps, such as a paged or nonpaged pool. The System process is not bound to an executable image like any other process. It's existence serves OS threads for Windows subsystems and device drivers as well. So if you notice CPU Spikes around the corner with the System process it could well be a misbehaving device driver. How can I identify the device driver that's causing the CPU Spikes? To answer the above question we can use process explorer to help us identify the culprit. Process Explorer shows the threads running in a process by consulting the Threads page of the Process Properties dialog. You should configure process explorer to download symbols from MSFT to get thread function names for further information on it's activity. In the bellow screen we can map CPU activity to the file server device driver (Srv.sys) that respond to network I/O requests for file data on disk partitions shared to the network. If you press the Module button you can see details about the driver Srv.sys in this case. Because I have previously configured symbols for OS images in Process Explorer the thread list also showed function names in this case (Worker Thread) functions. One way to look inside a thread execution is to look at the thread stack as bellow with Process Explorer. The stack is a memory region that stores function history invocation. To do it you only need to press the Stack button. IMPORTANT! In Windows Vista we cannot get thread info from Process Explorer as we did above as Vista sees the System process as a protected process. The Windows Vista operating system introduces a new type of process, called a protected process, to enhance support for digital rights management functionality in Windows Vista. Protected processes exist alongside normal processes in Windows Vista. For more info please download this whitepaper from MSFT: http://www.microsoft.com/whdc/system/vista/process_vista.mspx However if the thread running is one of the system worker threads we still don't really know what the thread is doing because any device driver can submit work to a system worker thread. Another way to see what the Worker threads were doing is to turn to Kernrate, a command line Kernel profiling tool that we can download for free from MSFT. Kernrate is a general-purpose profiling tool for tracking CPU utilization by kernel-mode and user-mode processes.
In order to get a deeper understanding of the issue than just module reference, you'll need to zoom in. That is, for a particular module, like for instance Srv, Kernrate will track instruction pointer locations within the module to individual functions. This kind of granularity is often what you'll need to track down performance issues. Because Kernate is tracking down function information you'll need to configure it to download symbol information as well, to do it follow the bellow steps:
The above is the result of the following command: Kernrate_i386_XP.exe -z Srv -j symsrv*symsrv.dll**http://msdl.microsoft.com/download/symbols I've ran into a post on the Sysinternals forum from a moderator on the forum that showed a script to automate the process check it out: http://forum.sysinternals.com/forum_posts.asp?TID=11347
Grab the Debugging Tools for Windows (DTW) and toss a copy of symsrv.dll from [c:\Program Files\Debugging Tools for Windows] into [C:\Program Files\KrView\Kernrates]. @echo off cd /d C:\Program Files\KrView\Kernrates
Monitor File System Activity on behalf of the System Process Another way that can help on pointing what is going on on behalf of the System process, and since we can point Srv.sys in the previous case, is to monitor file system activity. For that purpose we can use process monitor and filter by Process Name System. As you can imagine the troubleshooting targeted servers were DC's, as they were serving logon scripts at the time of the Filesystem capture. HMM OPLOCK NOT GRANTED! Solution The process Monitor above gave us the clue to solve our problem. The issue concerned a bad designed logon script. The logon Script had a reference to a missing Network share. We remarked the entries to the missing share in the script,saved it and the CPU lowered from 60% to 5% in a second This post had the purpose of helping everyone to troubleshoot System process issues and get everyone comfortable with the tools of the trade. I will add some documentation as well as Download pages for the tools to aid and ease everyone's searches: Downloads and Documentation: Process Explorer: http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx Process Monitor: http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx KrView Kernrate Viewer: http://www.microsoft.com/whdc/system/sysperf/krview.mspx Marks Blog The Case of the System Process CPU Spikes http://blogs.technet.com/markrussinovich/archive/2008/04/07/3031251.aspx Ricardo Vicente December 20 Compact your VHD's prior to perform your training sessionHi there,
After a short break, here i am back to share with you all a stress I had recently. Let's start from the beginning.
I was invited by my employers to deliver training to the guys. The training was arround Debugging analysis. I was in the process of sabotaging the VHD machine for the purpose of the labs. I then compacted the machine with the hope that it would shrink in size. I've freed up some space on the VHD for that matter and then I wanted to shrink the VHD to save disk space as well.
I then realized that after almost 30min of the compacting process the VHD machine size was exactly the same.
I ran accross an article on the Internet that helps customers to prepare their VHD's to deliver to PSS for troubleshooting support cases. That reminds me of the good old days.
How to prepare a Virtual Server 2005 virtual hard disk file to send to Microsoft Product Support Services
The process for a Virtual PC 2007 VHD would be similar as described in the above article. I am outlining the following procedure:
In the menu of Virtual PC windows for your machine, capture the Virtual Disk Precompactor .ISO file which is located at: c:\program files\microsoft virtual pc\virtual machine additions\virtual disk precompactor.iso Go to My Computer and double click on the mounted disk. It will begin to run the precompactor software which will essentially zero out all the free space on the disk, making it available for elimination from the file by the Virtual Disk Wizard, which we will use later. This process may take upwards of 15 minutes From the Virtual PC console, click File-Virtual Disk Wizard and "Edit an existing virtual disk". It will ask you to identify the .VHD file to reduce in size - select it. Select the "Compact" option then select "Replacing the original file". This will take a few minutes. Hope this procedure helps most of you as much as it worked a million wonders for me,
October 20 Safely Remove Hardware - Create a Shell ExtensionHi everyone, I wonder how many of you are pissed with the annoyance of having to refer to the systray whenever you have to unplug a Removable device in Windows XP. I found a way to create a shell extension for this that I'm going to share with you. What about creating a shell extension that you could bring up by a right-click of a mouse. Finding out the command line to call Safely Remove Hardware window and registry keys to create our shell extension:
NOTE! From the picture above we found that our Safely Remove Hardware windows spawns from a rundll32.exe process, from the command line "C:\WINDOWS\system32\rundll32.exe" shell32.dll,Control_RunDLL hotplug.dll to be more precise.
NOTE! From the picture above we know what registry keys to touch to create our extension. Creating Safely Remove Hardware shell extension
NOW YOU'RE DONE NJOY
July 25 Computer Chronicles on Internet ArchiveHi there. It has been awhile since I've updated my blog so.... What should I bring up front on my next post? - I asked myself many times on the last couple of days. Besides, the blog is my own identity. I would feel a lesser engineer if I left my posts behind. For the last couple of months I've been reviewing a popular 80's broadcast named Computer Chronicles. COMPUTER CHRONICLES EPISODES http://www.archive.org/details/computerchronicles Gary Kildall was co-host of these series along with Stewart Cheifet in the picture bellow. Gary was one of the most important figures in the history of the personal computer science. I think it would be nice to review an episode as a tribute to this great figure. SOME OF THE MOST DOWNLOADED VIDEOS INCLUDE:
MORE LINKS: Fan SiTes: Gary Kildall's Bio: http://en.wikipedia.org/wiki/Gary_Kildall
|
|||||||||||||||||||||||
|
|