All posts filed under: Windows 7

Accessing Windows Imaging Application Platform Interface (WIMGAPI) in PowerShell

If you have used the Deployment Imaging Servicing Management (DISM) cmdlets in Windows 8 (Server or Client), you would have quickly realized that the functionality is limited only to certain basic tasks around image servicing and tasks such as capturing a WIM image and applying WIM image are still with dism.exe. So, we still need to use dism.exe when we need to perform some of the advanced tasks as I mentioned here. Now, it may not a very suitable solution when you want to do everything using PowerShell. Of course, you can wrap dism.exe in PowerShell but in my opinion, that is not the best way! I prefer everything PowerShell as long as possible.

Microsoft Virtual Tech Days: Monitoring & Managing remote Windows 7 desktops with PowerShell – Slides & Scripts

Early this month, I did an online webcast session for MS Virtual Tech Days. This session was around how administrators can manage remote Windows 7 desktops with Windows PowerShell. Here are the slides from that session …. ..and the scripts I used for the demos. DemoScripts.zip The session recording will be available soon. I share it here as soon as it becomes available.

Programming Windows 7 taskbar using Windows API code pack and PowerShell

Windows® API Code Pack for Microsoft® .NET Framework provides a source code library that can be used to access some features of Windows 7 and Windows Vista from managed code. These Windows features are not available to developers today in the .NET Framework. Windows 7 Taskbar Jump Lists, Icon Overlay, Progress Bar, Tabbed Thumbnails, and Thumbnail Toolbars Windows Shell Windows 7 Libraries Windows Shell Search API support Explorer Browser Control A hierarchy of Shell Namespace entities Windows Shell property system Drag and Drop for Shell Objects Windows Vista and Windows 7 Common File Dialogs, including custom controls Known Folders and non-file system containers DirectX Direct3D 11.0, Direct3D 10.1/10.0, DXGI 1.0/1.1, Direct2D 1.0, DirectWrite, Windows Imaging Component (WIC) APIs Windows Vista and Windows 7 Task Dialogs Sensor Platform APIs Extended Linguistic Services APIs Power Management APIs Application Restart and Recovery APIs Network List Manager APIs Command Link control and System defined Shell icons That is quite a bit. Being able to access these features from .NET makes it the best candidate for PowerShell too. When I …

Refreshed home PC setup

With the recent release of Windows 7 & Windows server 2008 R2, I wanted to refresh how / what I need to install on my home PC. I received this PC with Windows Vista pre-installed and I was never a big fan of that OS. I have always been using Windows Hyper-V server 2008 and running various other operating systems as virtual machines on top of it. With the native VHD boot support on R2, I got a new usage model. Here is how it looks now  So, as it is shown in the diagram above, I am using Hyper-V Server 2008 R2 as the base OS. On top of it, I have Windows 7 and Windows Server 2008 R2 configured to boot using native VHD support. Note that they are not virtual machines. So, I will be able to see these two OS entries in the boot manager menu when I boot up the system. I will be able to use the complete physical machine capability when I boot these OS VHDs. I also …

Windows 7 CHKDSK memory consumption – Update

I did check this after installing RTM on my home PC. Looks like the magnitude of the issue increases with the size of the volume and number /size of files on it. For example, when I first verified this with RC, I ran CHKDSK against a 500GB volume with lot of personal data, ISO images, WIM files and VHDs. The result can be seen here. However, after installing RTM build, I ran it once again against an empty partition of 500GB and the memory consumption by CHKDSK for ~35MB. To me, this issue certainly looks like a design bug. I have not seen a BSOD anytime. So, this is not as critical as others might claim. Anyway, as more and more people start talking about it, I am sure MS will release a fix soon. Technorati Tags: Windows 7,Windows Server 2008 R2,CHKDSK

Windows 7 CHKDSK memory consumption

Okay..there is already a lot written about this bug on the Internet. To summarize, many people have reported a memory leak behavior with Windows 7 CHKDSK utility when the /R switch is used. /R switch is used to locate bad sectors and recover readable information. Many of the blog posts also report that it is a RTM bug. So, first thing was to verify if it happens on the RC build. I am still running RC (x64) on my Studio 540S system with 4GB of RAM. I ran chkdsk against D: (500GB SATA disk) and started monitoring memory utilization. Here is what happened after a few seconds – as chkdsk entered stage 4 of it’s process. As you can see, my system is still running Windows 7 RC and I am using all inbox drivers on this. So, this is not something got introduced in RTM build. Now, I killed the chkdsk process to see if it releases the memory or not. It does, unlike others reported at various other places. Next thing was to …