Showing posts with label Windows. Show all posts
Showing posts with label Windows. Show all posts

Friday, May 21, 2010

Windows Auto Logon

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

This article describes how to configure Windows to automate the logon process by storing your password and other pertinent information in the registry database. With this feature, other users can start your computer and use the account that you establish to automatically log on.

IMPORTANT: The autologon feature is convenient; however, this feature may be a security risk. If you set a computer for autologon, anyone who can physically obtain access to the computer can gain access to all of the computer's contents, including any network or networks it is connected to. Additionally, when autologon is turned on, the password is stored in the registry in plain text. The specific registry key that stores this value can be remotely read by the Authenticated Users group. This setting is only recommended for cases it which the computer is physically secured and steps have been taken to make sure that untrusted users cannot remotely access the registry.
Back to the top
Use Registry Editor to turn on automatic logon
Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 (http://support.microsoft.com/kb/322756/ ) How to back up and restore the registry in Windows

To use Registry Editor (Regedt32.exe) to turn on automatic logon, follow these steps:
Click Start, and then click Run.
In the Open box, type Regedt32.exe, and then press ENTER.
Locate the following subkey in the registry:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
Double-click the DefaultUserName entry, type your user name, and then click OK.
Double-click the DefaultPassword entry, type your password, and then click OK.NOTE: If the DefaultPassword value does not exist, it must be added. To add the value, follow these steps:


On the Edit menu, click New, and then point to String Value.
Type DefaultPassword, and then press ENTER.
Double-click DefaultPassword.
In the Edit String dialog, type your password and then click OK.
NOTE: If no DefaultPassword string is specified, Windows automatically changes the value of the AutoAdminLogon key from 1 (true) to 0 (false), disabling the AutoAdminLogon feature.


On the Edit menu, click New, and then point to String Value.
Type AutoAdminLogon, and then press ENTER.
Double-click AutoAdminLogon.
In the Edit String dialog box, type 1 and then click OK.
Quit Registry Editor.
Click Start, click Shutdown, and then type a reason in the Comment text box.
Click OK to turn off your computer.
Restart your computer. You can now log on automatically.
Notes To bypass the AutoAdminLogon process and to log on as a different user, hold down the SHIFT key after you log off or after Windows restarts.

Registry change will not work if the “Logon Banner” is defined on the server either by a Group Policy object (GPO) or by a local policy. When policy is changed to not impact server, the feature works as expected.

An interactive console logon that has a different user on the server changes the DefaultUserName registry entry as the last logged on user indicator. AutoAdminLogon relies on the DefaultUserName entry to match the user and the password. Therefore, AutoAdminLogon may fail. You may configure a shutdown script to set the correct DefaultUserName entry for AutoAdminLogonAs. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
119364 (http://support.microsoft.com/kb/119364/ ) AutoAdminLogon loses DefaultUserName
Back to the top

--------------------------------------------------------------------------------

APPLIES TO
Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
Microsoft Windows Server 2003, Standard Edition (32-bit x86)
Microsoft Windows Server 2003, Web Edition
Microsoft Windows Server 2003, 64-Bit Datacenter Edition
Microsoft Windows Server 2003, Enterprise x64 Edition
Microsoft Windows Small Business Server 2003 Premium Edition
Microsoft Windows Small Business Server 2003 Standard Edition

Thursday, February 4, 2010

Full Version of Windows XP on USB stick or USB external HDD

English
http://www.ngine.de/index.jsp?pageid=4176

Indonesian version
http://forum.dudung.net/index.php?PHPSESSID=9e62bdfe16f6e06f48db2008f654257a&topic=15782.msg224540#msg224540

----------------x

Friday, January 22, 2010

Repair Windows Server Failure on RAID 5 (3HDD)

Experience on a weekend, make me not sleep in the beginning of 2010...

an IBM old machine.
Windows Server 2003 SP1 unable to boot due to ntoskrnl.exe not found.
1 of 3 SCSI internal disk on RAID5 failure/defunct, mark with amber/orange led.
Boot server using ServeRAID Support CD, found that disk0 (first disk) is defunct/failure.
Luckily the other 2 disks in good condition.
Rebuild the disk0 with right click on it and select Rebuild. Takes 2-3 hours.
Rebuild success (Thanks God...), but since disk0 save the table of content of RAID5, we have to chkdsk the partitions.
Boot using Windows Server OS installation CD (in my case RAID controller detected by Windows Installer CD - no need to remastering to add specific driver if in your case this is required, you can use nlite. RAID controller driver can be found at ServeRAID CD).
Select Repair will give you command prompt. On drive c, do "dir" but error with message "bla..bla...drive enumerated bla bla..."
Googling and fould the next step to repair.
ckhdsk /r to all of the partition. Takes 1-2 hours on every partition (base on your disk size).
fixboot
fixmbr
reboot
Horeeeee.... server back online. But i have to restore the Domain Controller and many files which possibility corrupt, GPO blank :(
Database & Application Server which installed on that server back online.

Recommended : move the database & application server to another machine, change from RAID5 to RAID1 with 1 hotspare and reinstall OS.

Create / delete Windows Domain Controller

Create
Start --> Run --> dcpromo

Delete (Demote)
Start --> Run --> dcpromo /u

Rename Windows 2003 Domain Controller

http://www.petri.co.il/windows_2003_domain_controller_rename.htm

Change the static IP address of a domain controller Win2003Svr

From http://technet.microsoft.com/en-us/library/cc758579(WS.10).aspx
Updated: March 2, 2005

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

This procedure includes changing all appropriate TCP/IP values, including preferred and alternate Domain Name System (DNS) servers, as well as Windows Internet Name Service (WINS) servers (if appropriate). Obtain these values from the design team.

Note
If you change the static IP address of a domain controller, you must also change related TCP/IP settings accordingly. This includes changing the TCP/IP settings for all client computers that rely on the domain controller for related services, such as DNS services. If the affected client computers are configured with static IP addresses, the procedures for changing them should be covered in the operating system help. As an example, see Change TCP/IP settings (http://go.microsoft.com/fwlink/?LinkId=130602). If a Dynamic Host Configuration Protocol (DHCP) server is used to distribute DNS server IP addresses, you may have to modify DHCP server options. For a list of options, see DHCP Options Supported by Clients (http://go.microsoft.com/fwlink/?LinkId=130603). For specific instructions about changing DHCP options, see Modify an option (http://go.microsoft.com/fwlink/?LinkId=130604).
Administrative Credentials

To change the static IP address of a domain controller
Log on locally (also known as interactively) to the system console of the domain controller whose IP address you want to change. If you are not able to log on to the domain controller by using the domain, you may have to start the domain controller in Directory Services Restore Mode (DSRM). For more information, see Restart the domain controller in Directory Services Restore Mode locally (http://go.microsoft.com/fwlink/?LinkId=140599).

Change IP address, Subnet Mask, Default Gateway, DNS Server like you ussually do on common Windows OS.
If this domain controller uses WINS servers, click Advanced and then, in the Advanced TCP/IP Settings dialog box, click the WINS tab.
Click OK to close the Internet Protocol (TCP/IP) Properties dialog box.

After you change the IP address of a domain controller, you should run the ipconfig /registerdns command to register the host record and dcdiag /fix command to ensure that service records are appropriately registered with DNS. For more information, see Dcdiag Overview and subordinate topics for additional information about the Dcdiag tool (http://go.microsoft.com/fwlink/?LinkId=130605).

Changing the IP settings of a server does not affect the share resources or shared permissions on that server, if the name resolution structure DNS and WINS settings are correctly configured. However, if network drives or passive connections (connections that are made manually from a command prompt or run line) are mapped using the IP address, an update is required. For example, if a client computer has G: drive mapped using the following command net use g: \\192.168.0.199\data and the IP address of the server that hosts the Data shared folder is changed from 192.168.0.199 to 192.168.1.200, the new G: drive mapping command should be changed to net use g: \\192.168.1.200\data. A better solution would be to ensure that DNS name resolution is working properly and to use the server name, as opposed to the IP address, in the command. For example, if the server name is DC1, the command to map a G: drive to the Data share on the server is net use g: \\dc1\data. It changes only if the server name changes; it is not affected if the IP address of the server changes.
----------------------------------

Monday, January 4, 2010

Windows 2003 Server Network Adapter Teaming (Redundance / failover)

To Enable 2 or more NIC in a Windows 2003 Server Box for Fail Over or Redundancy should use Network Adapter Teaming.
The driver came from the NIC manufacturer.
Max 8 NIC in a team
Different manufacturer NIC ? not sure it can use for one team.

Wednesday, December 9, 2009

Spool or Print Directly

My little experience. This make our application which running on Windows Server 2003 became unstable and we request support from Developer team from regional.It started from Intermec barcode printer which failed to print after 2-3 times printing. We have to turn the printer off then turn it after 2nd or 3rd printing to make sure printing process done smoothly. The application team suspect windows spooling problem, they change the Spool option to Print directly to the printer.
After Intermec printer firmware upgraded to 10.3.1 the printer run normal. But another problem came when users make wrong printing to turned off printer. The application is hang. Event viewer show "Application Hang" without no additional information. After investiges, we have conclusion: Dont use "Print directly to the printer" option if your printer turn off at night. Because Windows will send the command to the printer directly and it will wait until printing process done, if the printer cannot be reach, the application will wait forever. To stop this problem, you can stop the restart spooling service.

One day before... We have prepare to reinstall the whole... starting from the scratch... luckily we found the user which sent the wrong print job.

Wis wae...