Tuesday, 26 May 2009

FUSION NETWORK BRIDGE DEVICE ERROR

When running a vm you may get an error message like this:

The network bridge device on /dev/vmnet0 is not running

You can fix it using this command in terminal:

sudo /Library/Application\ Support/VMWare\ Fusion/boot.sh -restart

Now start your vm and the error should be gone.

Tuesday, 12 May 2009

ENABLE ADMINISTRATIVE SHARES IN VISTA/WIN7

Administrative shares are disabled in Vista/Win7 by default. To enable them you need to jump in to the registry:

HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System

Add a new DWORD called “LocalAccountTokenFilterPolicy” and give it a value of 1.

Reboot for the changes to take place.

Wednesday, 6 May 2009

ADD ROUTES IN WINDOWS

route [-p] add <destination> mask <subnetmask> <gateway> [metric <costmetric>] [if <interface>]

[ ] = optional
[-p] Makes a static route persistent.

Routes added by using the -p option are stored in the Windows registry under the following key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip \Parameters\PersistentRoutes

Note: Routes added by using the registry won't take effect until reboot.

<destination>
Specifies either an IP address or host name for the network or host.

<subnetmask>
Specifies a subnet mask to be associated with this route entry. If subnetmask is not specified, 255.255.255.255 is used.

<gateway>
Specifies either an IP address or host name for the gateway or router to use when forwarding.

<cost metric>
Assigns an integer cost metric (ranging from 1 through 9,999) to be used in calculating the fastest, most reliable, and/or least expensive routes. If costmetric is not specified, 1 is used.

<interface>
Specifies the interface to be used for the route that uses the interface number. If an interface is not specified, the interface to be used for the route is determined from the gateway IP address.

For example, to add a static route to the 10.0.0.0 network that uses a subnet mask of 255.0.0.0, a gateway of 192.168.0.1, and a cost metric of 2, you type the following at a command prompt:

route add 10.0.0.0 mask 255.0.0.0 192.168.0.1 metric 2

FIND WINDOWS INSTALLATION DATE (XP/2003)

systeminfo | find /i "install date"

CUSTOMISE START MENU ITEMS

Start Menu Properties - Customize Set number of programs to 0

Any shortcut you want on start menu, right click and select Pin to Start Menu

AUTO LOGIN WINDOWS

HKLM\Software\Microsoft\WindowsNT\CurrentVersion\Winlogon

DefaultUserName = <username>
DefaultPassword = <password>
AutoAdminLogon = 1

Hold shift when starting up, or logging out to bypass auto login

Or to make these changes without using the registry use:

Start - Run

control userpasswords2

DISABLE RESTART AFTER UPDATES PROMPT

Start - Run gpedit.msc

/ Computer Configuration / Administrative Templates / Windows Components / Windows Update / Re-prompt for restart with scheduled installations

Set to Disabled

DISABLE WINDOWS DATA EXECUTION PREVENTION

System Properties - Advanced - Startup and Recovery - Settings - System Startup

Click Edit

In Notepad change /NoExecute=OptIn to /NoExecute=AlwaysOff

Save and restart.

DISABLE WINDOWS SHUTDOWN EVENT TRACKER

Start - Run gpedit.msc

/ Computer Configuration / Administrative Templates / System / Display Shutdown Event Tracker

Set to Disabled

UNINSTALL PHANTOM DEVICES

If your NIC has been replaced and the IP is still assigned to the old NIC use the following steps:

System Properties - Advanced - Environment Variables - System Variables - New

Name: DEVMGR_SHOW_NONPRESENT_DEVICES
Value: 1

Reboot computer then view hidden devices in Device Manager

System Properties - Hardware - Device Manager - View - Show Hidden Devices

Select the rougue NIC and uninstall it.

DISABLE WINDOWS LOGON SCREENSAVER

HKEY_USERS\.DEFAULT\Control Panel\Desktop

ScreenSaveActive = 0 (disable, 1 to enable)

ENABLE ADMINISTRATIVE SHARES IN WINXP

You can usually access a networked computer's drives by typing

\\<computer name>\<drive>$

into your explorer address bar. Sometimes this has been disabled, you can enable it with the following steps:

HKLM\System\CurrentControlSet\Services\LanmanServer\Parameters

AutoShareWks = 1 (enable, 0 to disable)

If it doesn't automatically work after a restart you need to manually add the shares.

- Open Computer Management
- Expand Shared Folders, right-click Shares, and then click New File Share
- Type the path of the folder you want to share
- Type the share name you want, followed by the dollar sign ($)
- Click Next
- To make the share accessable to administrators only, select the Administrators have full control; other users have no access check box.
- click Finish

GET ADDRESS BAR BACK IN WINXP SP3

Having the address bar in your TaskBar can be incredibly useful. You can quickly enter commands, jump to folders, and of course web addresses.
Service Pack 3 gets rid of the option to add the Address toolbar to the taskbar. To get it back you need to replace the browseui.dll file with a pre-SP3 version.

Windows\system32\browseui.dll

NOTE: You may need to replace this file after booting into Safe Mode.

Hint: You can also hide the "Address" title by unlocking the taskbar, then right click the address text and uncheck "Show Title". Whenever I lock the taskbar I sing in my head "Lock the TaskBar" to the tune of The Clash - Rock the Casbah (yes, i'm that sad).

DISABLE LOW DISK SPACE NOTIFICATIONS

HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

DWORD: NoLowDiskSpaceChecks = 1 (0 to enable notifications)

Log off and then Log back in to be free from the dreaded "Low Disk Space" balloon warning.