cb-net.co.uk

...WinTel Admin Simplified

  • Increase font size
  • Default font size
  • Decrease font size

Windows 2008 Server Core : Using netsh to configure TCP/IP

E-mail Print PDF

Windows 2008 Server Core : Using netsh to configure TCP/IP

List all ipv4 interfaqces and obtain the interface ID of the NIC you wish to change the configuration for, in this instance we will modify the settings of interface '10' which is shown as 'connected':
  netsh interface ip show interfaces

 

Set DHCP for ipv4 interface '10':
  set address 10 dhcp

Set Static IP Address/subnet mask/gateway on ipv4 interface '10':
  set address 10 static 192.168.1.100 255.255.0.0 192.168.1.1

Set primary and secondary DNS servers for ipv4 interface '10':
  set dnsservers 10 dhcp
  set dnsservers 10 static 192.168.1.10 primary
  add dnsservers 10 192.168.1.11


Set WINS servers for ipv4 interface '10':
  set winsservers 10 dhcp
  set winsservers 10 static 192.168.1.10
  add winsservers 10 192.168.1.11


Reset TCP/IPv4 stack:
  netsh interface ip reset
Last Updated on Monday, 17 May 2010 22:07
 

Windows : Re-installing the WMI Provider

E-mail Print PDF
Windows : Re-installing the WMI Provider

If you receive errors such as ‘SwbemLocator’ Critical Error 8004100A when running VBScripts, or applying GPO’s with WMI filters it may be necessary to re-install WMI.

Use WMIDiag.vbs to perform initial diagnosis (available here: http://www.microsoft.com/downloads/details.aspx?familyid=d7ba3cd6-18d1-4d05-b11e-4c64192ae97d&displaylang=en),
> Insert the slipstreamed Windows CD (including the current client Service Pack version) into the CDROM.
> Re-install WMI using the following command: rundll32.exe setupapi,InstallHinfSection WBEM 132 %windir%\inf\wbemoc.inf

You may be prompted for a file named 'napclientprov.mof' a non-corrupt version of this can be downloaded here.

Last Updated on Friday, 16 April 2010 14:23
 

vSphere: Thin/TBZ disks cannot be opened in multiwriter mode

E-mail Print PDF

vSphere: Thin/TBZ disks cannot be opened in multiwriter mode

When using a 'Virtual' SCSI Bus Sharing controller on a VM Windows 2008 Cluster I was presented with the following error when creating disks via the vSphere Client:

 Thin/TBZ disks cannot be opened in multiwriter mode.

Neither VM  would power on with the new disk attached.

To resolve this, create the new vDisk from the shell using the command: vmkfstools -d eagerzeroedthick -c 20G -a lsilogic DISKNAME.vmdk

The important part of this command is eagerzeroedthick without this, or using thin or zeroedthick will result in the the same error being presented at power-on of the VM.

Last Updated on Thursday, 08 April 2010 08:21
 

Windows Server 2008 R2 : LookupAccountName Issues

E-mail Print PDF

Windows Server 2008 R2 : LookupAccountName Issues

When running Windows Server 2008 R2 x86/x64 that is a member of a Windows 2000 Domain you may encounter errors when installing applications that are similar to:

'The trust relationship between this workstation and the primary domain failed'

I recently came across this error when installing SQL Server 2008 SP1 on a Windows Server 2008 R2 failover cluster, when selecting the service accounts from the domain I was presented with the error:

Error in User Account -   'The trust relationship between this workstation and the primary domain failed'

To resolve this error you must apply the following hotfix: http://support.microsoft.com/?id=976494

This issue affects Windows 7 and Windows Server 2008 R2, only when joined to a Windows 2000 domain. It is caused by a program that calls the LookupAccountName function to retrieve a security identifier (SID) for an account.

Last Updated on Monday, 17 May 2010 22:07
 

VMWare : Device or Resource Busy

E-mail Print PDF

VMWare :  Device or Resource Busy

After removing a VM from an ESX 3.5 update 3 server via the Infrastructure Client, selecting 'Delete from Disk' I found that a disused vmdk file was left over on the VMFS datastore.  When deleting the vmdk file I was presented wih the following error:
   cannot remove `TEMP_Data-G_50GB-flat.vmdk': Device or resource busy

Using the command 'fuser TEMP_Data-G_50GB-flat.vmdk' to identify users/processes which have locked the file showed no active users on the file.

To resolve, run the following command, and wait approx 5 minutes:
   service mgmt-vmware restart

The command will not impact any running VM's, it will disconnect any management client sessions (not console access via SSH) and will stop any running VCB's.

 Now browse the datastore and delete the file.

Last Updated on Monday, 01 March 2010 23:25
 


Page 2 of 6