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

Windows Server DHCP 'Enable IP Address Conflict Detection'

So this is just a tiny nugget of information for Windows DHCP administrators. You can help mitigate address conflict detection in your dhcp server by setting the following line.


First you can check if it is enabled or not by running
netsh dhcp server show detectconflictretry

Then, if it is not enabled you can run
netsh dhcp server set detectconflictretry 1

Obviously run with 0 to disable.
netsh dhcp server set detectconflictretry 0

Resources:
http://technet.microsoft.com/en-us/library/dd183587(v=ws.10).aspx

Server 2008 WINS with two NIC's

If you are still running WINS (I do for simplicity) and have two NICs in your WINS box, you will need to change the order of the NICs so WINS knows where to look. This was driving me nuts.

Things I did to resolve the issue.

DNS Server, on the Interfaces tab disable the NIC your non "main" NICs.
NIC, Under "Manage Network Connections" select your non "main' NIC, uncheck all boxes except for IPv4/6. Then select your IPv4 box, uncheck register DNS, and disable NetBIOS.
Still in the Manage Network Connections, select Advanced (File Menu) -> Advanced Settings. Move your "main" connection to the top of the list. Press ok.

You are done, go back and WINS should know be able to resolve/connect.

References:
http://www.pcreview.co.uk/forums/wins-server-defualting-wrong-nic-t1732276.html

Disable/Enable Windows IPv6 Tunnels

I just found this link, and wanted to preserve it. Very nice for disabling IPv6 tunnels on Windows machines. I am running dual-stack, and the tunnels felt like they were in the way.


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

Windows Disable IPv6 RA solicitations


This works for both Windows 7 and Server 2008, I use this if I have set a static IPv6 address and want to stop the Windows box from having more than one IPv6 address.

First we want to find the index value of your nic.

c:\netsh int ipv6 sh int
Idx     Met         MTU          State                Name
---  ----------  ----------  ------------  ---------------------------
  1          50  4294967295  connected     Loopback Pseudo-Interface 1
 11          10        1500  connected     Local Area Connection

Now apply the value to disable the RA solicitation

c:\netsh int ipv6 set int 11 routerdiscovery=disabled

Now after a reboot you should only have one IPv6 IP address.

Terminal Server 2003 msiexec high cpu usage, hp upd

Ok, so this has been killing me for a while. I have a terminal server that was unable to add/remove applications in a timely manor; when I say timely, I mean TIMELY! It could take days to install Office, or HOURS to install a security patch.

I still haven't fully isolated what causes the problem to start (possibly bad printer driver). But this solution worked for me this time.

I removed these Registry Keys; which were full of HP garbage.
[HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Terminal Server\Install\RefHive\Hewlett-Packard]
[HKEY_USERS\.DEFAULT\Software\Hewlett-Packard]
[HKEY_CURRENT_USER\Software\Hewlett-Packard]

I then made sure that there were no Universal Print monitors.
[HLKM\SYSTEM\CONTROLSET001\CONTROL\Print\Monitors]
[HLKM\SYSTEM\CURRENTONTROLSET\CONTROL\Print\Monitors]


References:
http://forums11.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=1247687
http://forums11.itrc.hp.com/service/forums/bizsupport/questionanswer.do?admit=109447626+1264044137399+28353475&threadId=968215

Managing Printers: Kernel Mode Drivers (version 2) are blocked on the target machine

When trying to restore printers using Printer Migrator on a windows 2003 server, you may receive this message: “WARNING: Kernel Mode Drivers (version 2) are blocked on the target machine. Disable Kernel Mode driver blocking and re-run Printer Migrator…”

1. Run Local Group Policy. Open Run and type gpedit.msc
2. Explorer Computer Configuration,
3. Select Administrative Templates,
4. click Printer.
5. On the Right pane, right-click on "Disallow installation of printers using kernel mode drivers"
6. Select Properties and check Disabled.
7. Click OK to close the Local Group Policy.

Mythbuntu: Mounting Media

I was going to write up a long nice detailed thing here, but then I found this, https://help.ubuntu.com/community/MountWindowsSharesPermanently and now I don't need to as it explains it way better.

Change the default location of the user profiles in Windows 2003 Server

Goal is to define an alternate location for user profiles; move them from the C: drive to a different drive due to space allocation. I want to store the terminal server profiles on a different drive.


In the registry find:
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList


ProfilesDirectory:C:\Documents and Settings


Change to:
ProfilesDirectory:X:\Documents and Settings


**Note** Existing Profiles will remain under C:\Documents And Settings; you'll need to move these profiles manually.


New users will have there profile created in the location you specified.


There is also an administrative template which enables you to set the default place teminal server profiles. You can find this template at following location in the group policy editor:
Computer Configuration\Administraive Templates\Windows Components\Terminal Services\Set Path for TS Roaming Prifiles.

Take Ownership in Registry

This is a neat little trick, if you have a registry key you can't take ownership of or delete.


Downoload 'PsTools'
Unpack file *psexec.exe* and place it in *C:\Windows\System32*


next run *cmd.exe* with administrative previlliges (right click on it
as admin if you use UAC) and in *cmd.exe* type:


PSEXEC -S -I -D REGEDIT.EXE
-this command allow you run *regedit.exe* from a SYSTEM account (not
from your account) so remember if you want remove any key the owner of
this key should be SYSTEM now and full control for him for this key
also.
(see PsTools describe)

Printers on Server 2003

OK, so I've been using Server 2003 for quite some time now, and kinda surprised I've never seen this before.


When in the printers and faxes window, you can right click in the empty space to change ports, remove old drivers, change Forms and change Advanced printer settings.


This is useful when you need to add a printer to a Terminal Server for users. Also, it seems that Xerox printers do not install drivers by default in Terminal Services, so installing/adding the universal printer drivers ahead of time seems to help.