Linux Scroll

Just another site

Category Archives: windows

Device write protected

Edit registry

cmd > Run > regedit

WriteProtect = 0

Eject and plug-in device again.


AMD AHCI Registry

Copy in notepad, save as ahci.reg

Windows Registry Editor Version 5.00



"Group"="SCSI miniport" 
"DisplayName"="ATI AMD AHCI Controller"

Ntldr Missing

Windows XP:

1. Insert the Windows XP bootable CD into the computer.

2. When prompted to press any key to boot from the CD, press any key.
3. Once in the Windows XP setup menu press the "R" key to repair Windows.
4. Log into your Windows installation by pressing the "1" key and pressing enter.
5. You will then be prompted for your administrator password, enter that password.
6. Copy the below two files to the root directory of the primary hard disk.

copy e:\i386\ntldr c:\
copy e:\i386\ c:\

7. Reboot

Repair protected Windows system files

Logged in as administrator to run:

$ sfc /scannow

Reset mssql sa pasword

For MSSQL on the local server:

osql -E -Q "exec sp_password NULL,'new_password','sa'" 

For remote server:

osql -S servername_IP -E -Q "exec sp_password NULL,'new_password','sa'" 

Win XP show hidden folder

Enable hidden folder:


Backup windows share folder permission

To backup windows share folder permission:

Start > run > regedit

Export Registry

To stop share folder service:

$ net server stop

To stop start folder service:

net server start

Batch script to kill outlook process

Copy and save as outlook.bat:

@echo off


Windows NoFolderOptions

Edit registry:

Start > Run > regedit (ENTER)

HKEY_CURRENT_USER\Software\Microsoft\Windows\Current Version\Policies\Explorer\
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Current Version\Policies\Explorer\

Repair DNS root hints in Windows server 2003

The Cache.dns file that stores root hints on your Windows Server 2003-based computer may be missing or damaged.

To copy and backup Cache.dns file
To rename and replace the Cache.dns file in the %SystemRoot%\System32\Dns folder with the backup Cache.dns file:

1. Start > Run > cmd (ENTER)
2. net stop dns (ENTER) (Stop DNS service)
3. cd %systemroot%\Sytem32\Dns
ren cache.dns cache.old
copy backup\cache.dns

To copy Cache.dns from the Windows Server 2003 CD

1. Start > Run > cmd (ENTER)
3. cd i386
expand cache.dn_ %systemroot%\System32\Dns\Cache.dns
4. net start dns

On a domain controller
To update root hints on a Windows Server 2003-based DNS server that is configured as a domain controller:

1. Start > Administrative Tools > DNS
2. Right pane > right-click ServerName > Properties
3. Click the Root Hints tab
4. Copy the root hints from another DNS server.
click Copy from Server > specify the IP address of the DNS server where you
want to copy the root hints from > OK
5. Click OK.