Windows Desktop

Installing Windows from bootable USB Flash disk

Partition the USB Flash drive as needed

Use EaseUS partiotion manager: Free EaseUS Home Edition

Using Diskpart

In the command shell window, type diskpart and then press Enter.

  1. Type “list disk” and then press Enter. You should see an entry for each hard disk that is installed on the computer. You should also see an entry for the attached USB drive. Write down the disk number (for example, Disk 2) that represents the USB drive.
  2. Type “select disk <n>” (where <n> is the disk number you wrote down) and then press Enter.
    • WARNING: Be sure you have identified the correct disk number of the USB drive. You are about to delete all files that are stored on the selected disk.
  3. Type “clean” and then press Enter.
  4. Type “create partition primary” and then press Enter.
  5. Type “select partition 1” and then press Enter.
  6. Type active and then press Enter.
  7. Do one of the following:
    • Type “format fs=fat32 quick” and then press Enter.
    • Type “format fs=ntfs quick” and then press Enter.
  8. Type “assign” and then press Enter.
  9. Type “exit” and then press Enter.

Installing Windows XP from USB FLASH drive

Note: The size of the FLASH disk must be ⇐4GB, it must be formatted with FAT16 for XP to install

Instructions:

  • HP drive key boot utility, use it for formatting the USB FLASH drive, you can also make it bootable
  • Use “nLite” to customize the XP installation, you can preconfigure pretty much anything
    • Download the Windows Updates Downloader or WUD and download the SP and latest updates for XP, use the nLite to slipstream the updates and SPs into your installation
  • Use PE to USB to transfer the iso image created by nLite to USB FLASH drive
  • boot from USB FLASH drive and install windows XP.
    • Win XP natively does not support SATA interface. There are two things that you can do:
      • Some BIOSes support IDE emulation mode, install XP using this mode
      • Add the appropriate driver into you windows installation using nLite

Installing Windows 7 from USB FLASH drive

The easiest and reliable tool to use is Windows 7 USB DVD download tool from Microsoft: Windows7-USB-DVD-tool.exe.

You can use USB FLASH drive > 4GB for installing Windows 7 using the Microsoft tool

Running Symantec SRD from USB

  1. Use diskpart to create partition, format as ntfs
  2. When complete, the formatted USB drive is ready to be made bootable.
    • Insert a Windows Vista or Windows 7 Setup disk into the DVD-ROM drive and note the drive letter of the DVD-ROM drive and USB drive.
    • At the command prompt, change to the DVD-ROM drive by typing D:and press Enter. Where D is the drive letter of the DVD-ROM. Then type CD BOOT.
    • Type bootsect /nt60 x: (Where x: is the drive letter of your USB drive).
  3. Copy SRD files to the USB drive

How to change the Remote Desktop port in Windows XP

  1. Start Registry Editor.
  2. Locate and then click the following registry subkey: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp\PortNumber
  3. On the Edit menu, click Modify, and then click Decimal.
  4. Type the new port number, and then click OK.
  5. Quit Registry Editor.
  • Open the newly assigned port in the Windows firewall for incoming traffic

Note When you try to connect to this computer by using the Remote Desktop connection, you must type the new port. 304304 (http://support.microsoft.com/kb/304304/ ) How to configure the Remote Desktop client to connect to a specific port when you use Windows XP

  • To connect to port 3391 on a computer with IP address 10.10.10.1, type the following information: 10.10.10.1:3391

Howto enable ICMP ping response in Windows 7

To enable ICMP ping response in Windows 7 you need to add Windows Firewall rule:

  • Manually:
    • Control Panel –> System and security –> Windows Firewall –> Advanced settings –> Inbound rules –> New rule –> custom rule
    • in Protocol and ports: Protocol: ICMPv4 on the same panel go to customize, choose “Specific ICMP types”, check the box “echo request”
  • Using Windows Powershell
    • Start → Search Windows Powershell, right click, run as Administrator
    • run:
netsh advfirewall firewall add rule name="ICMP Allow incoming V4 echo request" protocol=icmpv4 dir=in action=allow

Windows Server

Howto Export and import DHCP reservations from and to Windows DHCP server

Quickly Export and Import DHCP Reservations Windows 2008, Winows 2003 This simple process describes the how to migrate a DHCP reservation list without having to migrate the entire scope.

Export the DHCP reservations, from the Old server which is to be migrated using netsh:

netsh dhcp server [ip address] scope [scope address] dump>c:\temp\reservations.txt
e.g. netsh dhcp server 172.20.2.33 scope 172.16.0.0 dump>c:\temp\reservations.txt

Edit the exported file in notepad 'reservations.txt' , Simply do a Find and Replace for the old DHCP server IP you ran the export on and change to the New DHCP server IP you are importing to and remove out everything else in the text file except for the reservations config section.

On the New DHCP server, make sure you create the new scope first, and ten just simply run the following command:

netsh exec C:\temp\reservations.txt

Done

Setting up the NTP server on a domain controller

For USA use timservers from NTP pool project:

   server 0.north-america.pool.ntp.org
   server 1.north-america.pool.ntp.org
   server 2.north-america.pool.ntp.org
   server 3.north-america.pool.ntp.org

per http://www.pool.ntp.org/zone/north-america

From Technet:

Configure External Time service on DC holding PDC emulator role Here we will have to make use of External Time Source ( Internet). To Accomplish this follow below steps.

  1. Open a Command Prompt.
  2. Type the following command to display the time difference between the local computer and a target computer, and then press ENTER:
w32tm /stripchart /computer: target /samples: n /dataonly
  • target: Specifies the Domain Name System (DNS) name or IP address of the NTP server that you are comparing the local computer's time against, for example, time.windows.com.
  • n: Specifies the number of time samples that will be returned from the target computer to test basic NTP communication.
  • eg: w32tm /stripchart /computer:time.windows.com /samples:5 /dataonly
  1. Open User Datagram Protocol (UDP) port 123 for outgoing traffic if needed.
  2. Open UDP port 123 (or a different port that you have selected) for incoming NTP traffic.
  3. Type the following command to configure the PDC emulator, and then press ENTER:
w32tm /config /manualpeerlist: peers /syncfromflags:manual /reliable:yes /update
  • where peers specifies the list of DNS names or IP addresses of the NTP time source that the PDC emulator synchronizes from. For example, you can specify time.windows.com. When specifying multiple peers, use a coma as the delimiter and enclose them in quotation marks.
  • For example, to configure your PDC emulator to use the following list of time servers:
  • 0.north-america.pool.ntp.org 1.north-america.pool.ntp.org 2.north-america.pool.ntp.org 3.north-america.pool.ntp.org
  • Run the following command:
w32tm /config /manualpeerlist:"0.north-america.pool.ntp.org,1.north-america.pool.ntp.org,2.north-america.pool.ntp.org,3.north-america.pool.ntp.org" /reliable:yes /update

Verify the settings in the Windows registry:

  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\Type should be NTP
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\AnnounceFlags should be 5
    • Note: If an authoritative time server that is configured to use an AnnounceFlag value of 0x5 does not synchronize with an upstream time server, a client server may not correctly synchronize with the authoritative time server when the time synchronization between the authoritative time server and the upstream time server resumes. Therefore, if you have a poor network connection or other concerns that may cause time synchronization failure of the authoritative server to an upstream server, set the AnnounceFlag value to 0xA instead of to 0x5.
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer Enabled = 1
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters NtpServer = 0.north-america.pool.ntp.org 1.north-america.pool.ntp.org 2.north-america.pool.ntp.org 3.north-america.pool.ntp.org
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient\SpecialPollInterval SpecialPollInterval = 900
  • restart service:
    • net stop w32time && net start w32time
  • Verify that UDP Port 123 is open

Notes:

  • Some settings were not saved from the command line
  • The priod was not saved correctly, even if the refistry, the resulting value was 512s.
howto/windowshowto.txt · Last modified: 2018/06/29 11:53 by admin
CC Attribution-Noncommercial-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0