Archive for the 'Windows' Category

 

Vista: Disable Data Execution Prevention (DEP)

Jun 08, 2009 in Windows

From http://vistasupport.mvps.org/disable_data_execution_prevention.htm

1. Open command shell with ‘Run as administrator’

2. Run command:

bcdedit.exe /set {current} nx AlwaysOff

3. Response should be:

The operation completed successfully.

Program for scripting Windows Device Manager functions..

Oct 10, 2008 in Microsoft, Windows

To unmount a USB memory stick from a batch (or some other)
script in Windows, use the DevCon utility here:

http://support.microsoft.com/?kbid=311272

Activate Vista administrator account ..

Sep 26, 2008 in Windows

From http://www.computerperformance.co.uk/vista/vista_administrator_activate.htm

  1. Logon to Vista using your usual account.
  2. Launch the cmd prompt - Make sure you select, ‘Run as administrator’
  3. Net user administrator p@ssw0rD
  4. Net user administrator /active:yes
  5. Switch User, or logoff
  6. Logon as Administrator Password p@ssw0rD

Microsoft Installer related problem..

Apr 30, 2007 in Microsoft, Windows

A friend of mine had a problem with a program trying to install continuously. Coupled with this, the .Net 1.1 framework seemed to have a few corrupted DLLs.

When I tried to uninstall .Net, I would get this error:

Another installation is already in progress

Info on the net pointed to the Microsoft Installer Cleanup Utility (msicuu) available here

http://support.microsoft.com/kb/290301

After unzipping the package, I used the MsiZapU.exe program from the command line with the “P” option. This removed all “pending” installations. The command looked like this:

C:\Software\msicuu2>MsiZapU.exe P
MsiZapInfo: Performing operations for user
S-1-5-21-2567120938-317048180-2202218
495-1009
Searching for the Windows Installer InProgress key. . .
Removed
SoftwareMicrosoftWindowsCurrentVersionInstallerInProgress

A very helpful blog pointed me to another utility used to clean up .Net installations. The blog is here

http://blogs.msdn.com/astebner/articles/492809.aspx

The utility is in a zip named dotnetfx_cleanup_tool.zip and it can be found here

http://astebner.sts.winisp.net/Tools/Forms/DispForm.aspx?ID=111

(or search for it.. it seems to appear in a few places..)