Archive for the 'Windows' Category

 

Windows command to turn off and on wifi

Oct 01, 2013 in Microsoft, Windows

From http://superuser.com/questions/104400/enable-disable-wireless-interface-in-a-bat-file

netsh interface set interface “Wireless Network Connection” Disable

netsh interface set interface “Wireless Network Connection” Enable

Translate Windows Registry binary export to text ..

Mar 17, 2012 in Microsoft, Windows

>> Need to translate this :

W i n d o w s R e g i s t r y E d i t o r V e r s i o n 5 . 0 0

[ H K E Y _ L O C A L _ M A C H I N E ]

[ H K E Y _ L O C A L _ M A C H I N E \ B C D 0 0 0 0 0 0 0 0 ]

[ H K E Y _ L O C A L _ M A C H I N E \ B C D 0 0 0 0 0 0 0 0 \ D e s c r i p t i o n ]
” K e y N a m e ” = ” B C D 0 0 0 0 0 0 0 0 ”
” S y s t e m ” = d w o r d : 0 0 0 0 0 0 0 1
” T r e a t A s S y s t e m ” = d w o r d : 0 0 0 0 0 0 0 1
……

>> To this:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE]

[HKEY_LOCAL_MACHINE\BCD00000000]

[HKEY_LOCAL_MACHINE\BCD00000000\Description]
“KeyName”=”BCD00000000”
“System”=dword:00000001
“TreatAsSystem”=dword:00000001

…..

>> To translate use this :

cat RegHLM1.reg | sed ‘s/\o0//g’ > RegHLM1.txt

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..)