Linux Scroll

Just another WordPress.com site

Category Archives: windows

Device write protected

Edit registry

cmd > Run > regedit
HKLM\System\CurrentControlSet\Control\StorageDevicePolicies

Add:
Reg_dword
WriteProtect = 0

Eject and plug-in device again.

Advertisements

AMD AHCI Registry

Copy in notepad, save as ahci.reg

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\pci#ven_1002&dev_4391] 
"Service"="ahcix86" 
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\pci#ven_1002&dev_4393] 
"Service"="ahcix86" 
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ahcix86] 
"Type"=dword:00000001 
"Start"=dword:00000000 
"Group"="SCSI miniport" 
"ErrorControl"=dword:00000001 
"ImagePath"="system32\\drivers\\ahcix86.sys" 
"tag"=dword:00000019 
"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\ntdetect.com 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:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder
\Hidden\SHOWALL
Checkedvalue=1

Backup windows share folder permission

To backup windows share folder permission:

Start > run > regedit
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\Shares

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


TASKKILL /F /IM OUTLOOK.exe /T

Windows NoFolderOptions

Edit registry:

Start > Run > regedit (ENTER)

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

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)
2. E: (ENTER)(CDROM DRIVE)
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.

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