jump to navigation

WD External Drive shows as unformatted February 8, 2009

Posted by Cowboy in Uncategorized.
Tags: , , ,
add a comment

If the external HD was working fine but now the drive letter showed up in “my computer”,  and Windoze wants you to format it (Shows up in device manager as healthy/active).  Probably the Boot Sector or Partition information has been damaged.

Download TestDisk and repair the Boot Sector:

http://www.cgsecurity.org/wiki/TestDisk

How to recover from a corrupted registry that prevents Windows XP from starting January 18, 2009

Posted by Cowboy in Uncategorized.
Tags: , ,
add a comment

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

Brief version from above link

copy c:windowssystem32configsystem c:windowstmpsystem.bak

copy c:windowssystem32configsoftware c:windowstmpsoftware.bak

copy c:windowssystem32configsam c:windowstmpsam.bak

copy c:windowssystem32configsecurity c:windowstmpsecurity.bak

copy c:windowssystem32configdefault c:windowstmpdefault.bak

delete c:windowssystem32configsystem

delete c:windowssystem32configsoftware

delete c:windowssystem32configsam

delete c:windowssystem32configsecurity

delete c:windowssystem32configdefault

copy c:windowsrepairsystem c:windowssystem32configsystem

copy c:windowsrepairsoftware c:windowssystem32configsoftware

copy c:windowsrepairsam c:windowssystem32configsam

copy c:windowsrepairsecurity c:windowssystem32configsecurity

copy c:windowsrepairdefault c:windowssystem32configdefault

  1. The following path is an example of a folder path to the Snapshot folder:
    C:System Volume Information_restore{D86480E3-73EF-47BC-A0EB-A81BE6EE3ED8}RP1Snapshot
  2. From the Snapshot folder, copy the following files to the C:WindowsTmp folder:
    • _REGISTRY_USER_.DEFAULT
    • _REGISTRY_MACHINE_SECURITY
    • _REGISTRY_MACHINE_SOFTWARE
    • _REGISTRY_MACHINE_SYSTEM
    • _REGISTRY_MACHINE_SAM
  3. Rename the files in the C:WindowsTmp folder as follows:
    • Rename _REGISTRY_USER_.DEFAULT to DEFAULT
    • Rename _REGISTRY_MACHINE_SECURITY to SECURITY
    • Rename _REGISTRY_MACHINE_SOFTWARE to SOFTWARE
    • Rename _REGISTRY_MACHINE_SYSTEM to SYSTEM
    • Rename _REGISTRY_MACHINE_SAM to SAMdel c:windowssystem32configsam

    • del c:windowssystem32configsecuritydel c:windowssystem32configsoftware

      del c:windowssystem32configdefault

      del c:windowssystem32configsystem

      copy c:windowstmpsoftware c:windowssystem32configsoftware

      copy c:windowstmpsystem c:windowssystem32configsystem

      copy c:windowstmpsam c:windowssystem32configsam

      copy c:windowstmpsecurity c:windowssystem32configsecurity

      copy c:windowstmpdefault c:windowssystem32configdefault

Disable IPv6 in Vista / Windows 7 January 14, 2009

Posted by Cowboy in Uncategorized.
Tags: , , ,
add a comment

Add the following registry value (DWORD type) set to 0xFFFFFFFF:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\DisabledComponents

This method disables IPv6 on all your LAN interfaces, connections, and tunnel interfaces but does not disable the IPv6 loopback interface. You must restart the computer for this registry value to take effect.

Restore the Show Desktop icon (XP) January 7, 2009

Posted by Cowboy in Uncategorized.
Tags: ,
add a comment

The Show Desktop icon is very handy when you have a lot of windows open, but it’s also easy to delete.  The keyboard shortcut is Windows-M, but if you want the icon back:

  1. Click Start, click Run, type notepad in the Open box, and then click OK.
  2. Carefully copy and then paste the following text into the Notepad window:
    [Shell]
    Command=2
    IconFile=explorer.exe,3
    [Taskbar]
    Command=ToggleDesktop
  3. On the File menu, click Save As, and then save the file to your desktop as “Show desktop.scf”. The Show desktop icon is created on your desktop.
  4. Click and then drag the Show desktop icon to your Quick Launch toolbar.

No keyboard — what to do? January 7, 2009

Posted by Cowboy in Uncategorized.
Tags: , , , ,
add a comment

You boot Vista or XP, but the keyboard doesn’t work. Using the mouse and explorer, follow the path, c:\Windows\System32 and double-click on osk.exe.

An on-screen keyboard will be presented.

Determine if all share sessons reached January 6, 2009

Posted by Cowboy in Uncategorized.
Tags: ,
add a comment

Information About Active Sessions on the Computer That Is Running the Server Service

To receive information about active sessions on the computer that is running the server service, type the following command:

net session

Count the number of open sessions to see if the session limit of 10, or 5 in the case of Windows XP Home Edition, is already reached. Typically there is only one session per remote client.

If there is more than one session from a remote client, view the User name context on the remote client that has set up more than one session:

View all the services that are running, and find out if one is running under the user context of the username shown in the session table.
Look for scheduled tasks that are running in a logon script and are using a different user account then the one logging in.
Look for rows where the User name column is empty and examine the idle time.

A session that has an empty user context is a null session.

Temporary null sessions are usually caused by IPC$ connections as the first step in establishing a connection. They stay active for 30 seconds to 90 seconds.

Note To disconnect client computer sessions, use the following command:

net session /delete \\computername

This command disconnects all sessions from that computer and closes all open files. This command may cause data loss if open files that have not been saved are closed.

How to find the IP address of your router (windows or mac) January 5, 2009

Posted by Cowboy in Uncategorized.
Tags: , , , , , ,
1 comment so far

Windows XP or Vista:
Click Start->run
Type ‘cmd’ and press enter
Type ‘ipconfig’ and press enter
Look for the default gateway — that the ip address of the router

Mac OS X:
From the Apple menu, select System Preferences… .
In System Preferences, from the View menu, select Network.
Next to “Show:”, select the appropriate port. For example, choose Built-in Ethernet for broadband connections, AirPort for wireless, or Internal Modem for dial-up.
Click the TCP/IP tab. The number next to “Router:” is your default gateway.

Mac OS 9:
From the Apple menu, select Control Panels, and then TCP/IP.
In the TCP/IP window, the number next to “Router address:” is your default gateway.

Edit Registry using BartPE December 29, 2008

Posted by Cowboy in Uncategorized.
Tags: ,
add a comment
  1. Insert the BartPE CD into the drive, and boot the system from the CD. Once the file loading phase is over, the Bart PE desktop will be visible
  2. Type Regedit.exe in the prompt, and press Enter. Select the HKEY_USERS hive
  3. From the File menu, choose the Load Hive option. Browse to your Windows installation drive, for example the following location:

C:\Windows\System32\Config\

  1. Select the file named SOFTWARE (the file without any extensions), and click Open
  2. Type a name for the hive that you’ve loaded now. (Example: MyXPHive)
  3. Now the SOFTWARE hive is loaded, and present under the HKEY_USERS base hive.
  1. After editing, you MUST unload the Hive. To do so, select MyXPHive branch, and then in the File menu, choose Unload Hive. It’s important to note that you’ll need to select the MyXPHive branch first, before unloading it.

Repair Windows Update December 17, 2008

Posted by Cowboy in Uncategorized.
Tags: , , ,
1 comment so far

Download the file from the following location
http://djlizard.net.nyud.net:8080/software/Dial-a-fix-v0.60.0.24.zip

1.       In the Zip file you would find the file Dial-a-fix.exe file, please run the file.
2.       Check the box Empty temp folders, Fix windows installer, Fix windows update.
3.       Click on Go.
4.       Sit back and relax until the program finishes all the task.
5.       Now close the program and try to Update

WordPress on Server 2003 x64 November 28, 2008

Posted by Cowboy in Uncategorized.
Tags: , , ,
1 comment so far

First we copy this article (in case it disappears in the future)

http://www.jeremyweisser.com/index.php/2008/01/07/wordpress-on-windows-server-2003-r2-x64-edition/

WordPress on Windows Server 2003 R2 x64 Edition

07Jan08

WordPress has removed any official instructions from their website regarding installation procedures on Windows based hardware. Though one can easily find documentation on the web detailing a typical 32 bit Windows server installation, finding installation instructions for x64 version of Windows server is pretty tough.

As it turns out, the largest obstacle to completing a successful WordPress installation on a 64 bit Windows server is the fact that PHP does not distribute a 64 bit version of the PHP Windows Binaries. As a result, installation of PHP must be done manually using a third party package provided by Fusion-X LAN.

“This is the only known-of distribution for 64-bit PHP, or the “PHPx64 Project” (Windows x64)! With these binaries you’ll finally be able to use your 64-bit server hardware with powerful 64-bit software.”

I will detail the installation and configuration of PHP 5 on x64 Edition below:

Step-by-Step Installation Instructions:

PHP

  1. Download the latest version of the 64 bit PHP binaries from the website link provided above (in my case this was php-5.2.5-x64-2007-11-12.zip), extract the contents of the folder to “C:\PHP”.
  2. The IIS user (usually IUSR_MACHINENAME) needs permission to read files within the PHP directory, such as “php.ini”. Give the account READ permissions on the newly created directory.
  3. Within the “C:\PHP” directory, look for and rename the file named “php.ini-recommended” to “php.ini”
  4. Open “php.in” and set the extension_dir value to “C:\PHP\ext”
  5. Add the PHP directory to the PATH on Windows Server
    • Go to Control Panel and open the System icon
    • Go to the Advanced tab
    • Click on the ‘Environment Variables’ button
    • Look into the ‘System Variables’ pane
    • Find the Path entry (you may need to scroll to find it)
    • Double click on the Path entry
    • Enter your PHP directory at the end, including ‘;’ before (e.g. ;C:\PHP)
    • Press OK and restart your server
  6. Make the “php.ini” file available to PHP on Windows Server by setting the PHPRC environment variable:
    • Go to Control Panel and open the System icon
    • Go to the Advanced tab
    • Click on the ‘Environment Variables’ button
    • Look into the ‘System Variables’ pane
    • Click on ‘New’ and enter ‘PHPRC’ as the variable name and the directory where php.ini is located as the variable value (e.g. C:\PHP)
    • Press OK and restart your server

IIS

  1. Set IIS to run in 64 bit mode. From MS KB article 894435:
    • Click Start, click Run, type cmd, and then click OK.
    • Type the following command to disable the 32-bit mode:
      cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 0
    • Type the following command to install the version of ASP.NET 2.0 and to install the script maps at the IIS root and under:
      %SYSTEMROOT%\Microsoft.NET\Framework64\v2.0.50727\aspnet_regiis.exe -i
    • Make sure that the status of ASP.NET version 2.0.50727 is set to Allowed in the Web service extension list in Internet Information Services Manager.
  2. Open up the IIS 6 Manager, go to Web Service Extensions, choose “Add a new Web service extension”, enter in a name such as PHP, choose the Add button and for the value browse to the ISAPI file “C:\PHP\php5isapi.dll” then check “Set extension status to Allowed” and click OK.
  3. Restart your server