To list VM, cluster, hosts, files, path of the vmdk file

Hi all

Someone at - it a working script for the above?

I'm in 4.1

Thanks in advance

Hello

You can try this:

$AuditVM = @)

ForEach ($vm in (Get-Cluster |)) Get - VM)) {}

foreach ($vmguest in @($vm |) (Get - VMguest)) {}

foreach ($cluster in @($vm |) Get - Cluster)) {}

foreach ($datastore in @(Get-VM $vm |) Get - Datastore)) {}

foreach ($Network in @(Get-VM $vm |) Get - NetworkAdapter)) {}

$objGuest = "" | Select the State, name, CPU, memory, IPAddress, OSFullName, Cluster, file, UsedspaceGB, store data, Description, MacAddress, path, NetworkName, NIC

$objGuest.State = $vmguest.state

$objGuest.CPU = $vm. NumCPU

$objGuest.Memory = $vm. MemoryMB

$objGuest.Description = $vm. Notes

$objGuest.Folder = $vm. Folder

$objGuest.Name = $vm. Name

$objGuest.IPAddress = [string]: join (',', $vmguest.) IPAddress)

$objGuest.OSFullName = $vmguest. OSFullName

$objGuest.UsedSpaceGb = $vm. UsedSpaceGB

$objGuest.Cluster = $cluster. Name

$objGuest.Datastore = $datastore. Name

$objGuest.MacAddress = $Network.MacAddress

$objGuest.Path = $vm. Extensiondata.Config.Files.VmPathName

$objGuest.NetworkName = $Network.NetworkName

$objGuest.NetworkAdapter = $Network.Name

$AuditVM += $objGuest

}

}

}

}

}

$AuditVM

Kind regards

Julien

Tags: VMware

Similar Questions

  • How to get the path of the vmdk to a VM stop file?

    Hi guys,.

    How to get the path of the vmdk to a VM stop file in ESX Server via the VIX API?

    I try to get it via the VixVM_ReadVariable() function. but it seems that this function requires that the virtual machine is power on.

    I don't want to go the virtual machine started, I just want to know if I can get the path of the vmdk file when a virtual machine is power off.

    Thanks in advance.

    Sorry, I don't have any samples.

    However, if you look at the layoutEx of the managed object VirtualMachine field, you will see that the VirtualMachineFileLayoutEx data object has a field "files" which should contain the paths of affected files.

    I hope that it should be able to help get started.

  • Clone host (error caused by the vmdk file)

    Hello

    We try to clone the server to a scsi with resources as:

    ex_photo.pngiscisi07.png


    During the operation of clone, a 'problem' error caused by the vmdk file is thrown and clone to work stoppages. Server uses thin provisioned (40 GB) and thick (250 GB) / place.

    My question is: in target store, is 579 GB free space and space end implemented is 503 GB. While cloning thick storage (250 GB), do we need at least 250 GB of capacity between space free and put into service? If this is not the case, how can I solve my problem of clone?

    Thank you for your attention...

    Yes, you need this amount of free space (at least 250 GB freespace) available between the space free and put into service.

    TM

  • Storage shared between cluster hosts

    Hello

    I have a number of hosts managed under a VC server clusters. I want to downgrade the ESX 3.5 cluster and spend all my virtual machines to my vSphere cluster. I intend to move the storage currently used by ESX 3.5 clusters as well.

    Is this OK (or supported) or even possible for me to do the following?

    1. attach the storage used by the cluster cluster vSphere ESX 3.5 (so it is folded in TWO clusters).

    2. the servers from ESX3.5 to vSphere vMotion cluster cluster.

    3. turn off the cluster of ESX 3.5.

    I guess it boils down to two questions.

    1. can you be shared between host cluster storage two?

    2. If you can, is it possible to vMotion between cluster hosts, assuming that all the vMotion compatibility checks are successful?

    If the above is not possible, I'm guessing that a V2V of VMS ESX 3.5 would be the way to go, and I have to find new storage for the cluster of vSphere.

    Thank you

    G

    Hello

    If you have a SAN vSphere-taking in charge, so there is no problem.

    According to the CRA on your 3.5/vSphere ESX CPU hosts, you might have problems with storage vmotion/vmotion. One way would be to enable CVS, however requiring all virtual machines to be powered off.

    But present the LUN 3.5 4.x guests and make a svmotion is not a problem if you have taken care of storage. (www.vmware.com/go/hcl).

    Then you can just vmotion (if you do not have CPU incompatibility) virtual machines to new hosts, or stop and move.

    VCP3/VCP4/VSP/VTSP/MCTS: Virtualization

  • Get the list of virtual machines, storage of data and VMDK / path by cluster

    Hi people,

    as I m new to such things, I m wondering if someone already has a few scripts work to gather a list of all virtual machines, its corresponding data store (s) and the path to the files VMDK (or at least the name of it) - I know that this part has already been resolved - found a couple of them ;-)

    But my problem is, I need this script drilled down by Cluster Edition or Datacenter Edition. As I said I m completely new for this CLI stuff and Don t have any idea how to solve this problem...

    See you soon

    Markus

    Luke, you are right. I should have tested.

    There is a downside to the ForEach command that I almost never use. Normally I use the Foreach-Object cmdlet and that works very well with pipeing the output to Export-CSV.

    Markus, you must use option 2 in this case.

  • I'm doing a script that takes a list of e-mail from a text file and then allow me to select a save as a string. I found some ways to get the path of the file, but I'm in check by pulling the list

    I found some ways to get the path of the file, but I am defeated by pulling the list from that. the function of the path get gives me the path as "Macintosh Users:: Documents: extractedb.txt (myUsername).

    What I can't understand is how to get a dialog box to display a list that represents the content in the text file, I need to change the contents of the text file, I need the box to show me what I chose and I want to save my selection as a single string.
    e '.

    example of extractedb.txt information:

    [email protected]

    [email protected]

    [email protected]

    * has a random number of emails as well *.

    I want this is to pull those emails from the text file and turn them into a list so I can get to be a selection in my dialog box.

    Any help would be great = D

    Assuming you have a text file with your example e-mail addresses, the following AppleScript will read this file in a list (mf_List) and then use this list as input to choose among the list. Because multiple selection is allowed (control button), the output is sent to a list (sel_addr). We check if the Cancel button was pressed by testing for false and if this condition is met, we the script error.  Based on a single or multiple list item content of the list, display accordingly.

    game of mf to ((path to the folder as text) & "mail_list.txt")

    the value mf_List to {}

    the value sel_addr to {}

    the value mf_List to paragraphs of (read file mf)

    the value sel_addr to (choose from the list mf_List with title ¬

    ('Mail list' with multiple selections allowed without empty selection allowed)

    If sel_addr is equal to false then

    Error number-128

    return

    end if

    If length of sel_addr is equal to 1 then

    sel_addr display dialog box as text

    on the other

    the value Point to the text of TID to AppleScript delimiters

    the value Point text in AppleScript return delimiters

    display the dialog box elements of sel_addr in the text

    the value Text of point AppleScript delimiters to TID

    end if

    return

  • How to find the list of folders of files owned by a specific user in a shared and its drive path

    Hello people,

    I'm stuck in a situation where I need a list of files & folders belonging to specific user (user is shane and shared path is------Qpmzeul\lis\IM( ) in a shared drive as well as its path.

    I created a file with the command "dir/s/Q \\Qpmzeul\lis\IM>fileslist.csv" .bat and he ran, I got the result but I got the result that includes the same information about other users also that I need, and it is very difficult to filter.

    and then I created the .bat file and used the command DIR/s/Q \\Qpmzeul\lis\IM/S/Q| FIND/i 'shane' > C:\test.csv

    Here, I got the list files and folders owned by user Shane but without path

    Please help me so that I get the path and the results for shane

    Thank you

    Hi Purudharth,

    The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the TechNet Forums:

    http://social.technet.Microsoft.com/forums/en-us/category/w7itpro

  • Find VM folders through / Cluster host or full path of VMfolder

    Hello

    I have an interesting question here.  Building my new VM deployment workflow, I ran into a snag.  You must declare a VM folder for new virtual machines being created.  I want to get a VMfolder based on ESXi host or cluster or the full path to the VM folder (/ vm/site1/servers/criticism).

    I know VMfolders are actually part of the VC/VM and host cluster but no, is there a way to work backward.

    The Don'ts:

    • Do not use (too clumsy to maintain) configuration items
    • Do not want to flush all VC records in a table, then need to browse each of them looking for the one that has the specific path
      • Too much time in larger deployments
    • Cannot use a virtual machine and are looking for a folder since the prospect that the folder may be empty of VMs and since this is a virtual computer deployment, you cannot use the existing one, you need to deploy (the egg)

    I think I already know what the answer is going to be, but maybe someone has a bright idea on this one.

    Thank you

    B

    Hello

    Try the following:

    // Search index object for the first registered vCenter
    var index = VcPlugin.allSdkConnections[0].searchIndex;
    
    // Inventory path of the folder to search for (note: starts with datacenter name; replace datacenter123 with your datacenter name)
    var invPath = "/datacenter123/vm/site1/servers/critical/";
    
    var folder = index.findByInventoryPath(invPath);
    System.log("folder: " + folder);
    
  • Trying to acquire "tail" result on all of the Cluster Log Files of the ESX host

    Hello everyone!

    I'm trying to design a script that I can use to point to ESX host groups and generate the last 10 lines of the log files specific on these systems by using Get-journal. First of all, I would like to point out that the following code works for a single individual host:

    $esx = get-VMHost - VMhost ""hostname"" " "

    $esxlog = Get-Log -key 'vmkernel' -VMHost $esx

    $esxlog. Entries & lt;


    I had to leave out the expression that specifies the last ten lines of $esxlog. Entries b/c this editor kept interpret this section as html and present it as such

    This will show the expected results, i.e. the last 10 lines of the newspaper on this host.

    Now, when I try to expand this concept and try to create a loop on this basis by using the code below:

    $esx = Get-Cluster "NOMCLUSTER" | Get-VMHost

    foreach ($_ in $esx) {$esxlog = Get-Log -key 'vmkernel' -VMHost $_ }

    $esxlog. Entries} & lt;


    once more the code specifying the last ten lines has been omitted here in order to avoid confusion

    I only get the following error: a parameter corresponding parameter name "System.Object []" cannot be found.

    What I am doing wrong with my script?

    The variable $_ is a predefined variable so that you should not use it as your loop variable.

    You could do it like this

    $esx = Get-Cluster  | Get-VMHost
    $esx | %{
         $esxlog = Get-Log -Key "vmkernel" -VMHost $_
         $nrEntries = $esxlog.Entries.Count
         Write-Host $_.Name -foregroundcolor green
         $esxlog.Entries[http://($nrEntries-11)..($nrEntries-1)|http://($nrEntries-11)..($nrEntries-1)]
    }
    
  • List of all hosts in a Cluster, the Local single data warehouses

    I had a few attempts but failed miserably.

    Can LucD - you help maybe?

    I just need to list each local VMFS Datastore and ideally have each size. The idea is to get this info in a separate calculation in a hash table, something like this:

    @{N = "Datastore"; {E = {* list all the Local DS for the host that is currently being questioned and their respective sizes in here *}}

    I hope I explained well enough...

    Thank you very much!

    Fjorko wrote:

    Thank you

    How can it be adapted to run only on the current host?

    Using the option - Get VMHOST-store of data.

    http://www.VMware.com/support/developer/PowerCLI/PowerCLI41U1/HTML/get-datastore.html

    Concerning

  • How can I get rid of the path of the directory to my folder names in the list in the library of files mode?

    I'm using the latest version of Lightroom 5.3 (updated through CC - even if it is presented on the previous version) on Windows 7 and all the files in my library are showing up with the path of the directory in front of my name of folder. How can I get rid of this? I don't see any option in the preferences to disable this option. I also disabled preferences in Windows > Control Panel Options folder option "show the full path in the title bar.

    I have Lightroom on multiple computers and have set up preferences the same on each workstation, and it appears on a workstation.

    Any help would be appreciated.

    You can see in the picture below how this profile.

    Thank you

    Thank you!

    2014-02-16_190807.jpg

    Click on the small arrow down / + symbol following the sign + - in the folder bar.

  • How to export data from $esxcli.nmp.satp.list () to a CSV file

    Hello world

    I am new to scripting. I created a script that will display the data for each host in a cluster to the powercli screen.

    SE connect-VIServer (name of the vCenter server)

    Foreach ($vmhost Get-cluster "Cluster Name" |) Get-VMHost | Name Sort-Object)

    {

    $esxcli = get-EsxCli - VMHost $vmhost

    Write-host - foregroundcolor green "Server:"$vmhost. "

    $esxcli.storage.nmp.satp.list)

    }

    Disconnect VIServer (name of the vCenter server) - confirm: $false

    I need help to get the data, the script displays an on-screen in a CSV file. Help will be very appreciated.

    Hello

    Welcome to the VMware VMTN communities.

    You were pretty close with your script. There are two things I want to say about it:

    First of all, in PowerShell you do not use parentheses around parameter in the cmdlet or function call as in other programming or scripting languages.

    Second, to use the Get-EsxCli cmdlet you must be connected directly to the host. That's why I introduced a Connect-VIserver inside the loop.

    Here's my solution that writes the output to a file called storage.csv.

    Connect-VIServer "vCenter server name"
    
    Get-Cluster "Cluster Name" |
    Get-VMHost |
    Sort-Object -Property Name |
    ForEach-Object {
      $vmhost = $_
      Write-Host -foregroundcolor green "Server: $($vmhost.Name)"
      Connect-VIServer $vmhost.Name  | Out-Null
      $esxcli = Get-EsxCli -VMHost $vmhost
      $esxcli.storage.nmp.satp.list()
      Disconnect-VIServer $vmhost.Name -Confirm:$false | Out-Null
    } |
    Export-Csv -Path storage.csv -UseCulture -NoTypeInformation 
    
    Disconnect-VIServer "vCenter server name" -Confirm:$false
    

    Please let me know if you have any additional questions.

  • Is ASM cluster configuration, possible to detail all cluster hosts

    In the case of configuration in cluster of ASM (where its possible to create one ASM DiskGroup is shared between all hosts in the cluster) is it possible to obtain information on all hosts (cluster node) (which are part of this cluster configuration) one machine.

    For example. If we have three nodes Node1, Node2, and Node3 configured using ASM cluster (i.e. default ASM instance will be ASM2 ASM1, and + ASM3 on these machine) and then I create multiple starts (some shared between all three nodes and bit limited to single node or two) using a set of SAN disk visible to all.
    In such a scenario, can I get the details of Node2 and Node3 comes to log in Node1 (i.e. Since one machine one single node part of ASM cluster configuration, I need information of all other machines/nodes).

    Is this possible? If so, some tips on the way which will be a great help.

    ~ Stéphane.

    Hi stephane,

    Maybe I'm missing something here, or I'm too detailed, but depending on how General should be your script, there are some steps, you must check to avoid the false assumptions - e.g., as here: "+ to get the CRS_HOME, I can grep for crsd.bin. If I don't get this running process, this means that configurations is a StandAlone OracleDB and turns to the ASM, ASM is too stand-alone instance. + »

    If you can't find the crsd.bin running, it could also mean that it will not turn now - for some reason any. If you find a DSO running instance, but not crsd.bin, Yes, you can generally assume that you would have a configuration of ASM nonclustered (autonomous), unless you run into a BUG / failure.

    Therefore, it might be a good idea to check the existence / first configuration, then to the current process. For example:

    IF you have installed Oracle Clusterware, you will find an init.cssd under /etc/init.d (for Linux, similar directories for other OS). Therefore, check first for the operating system, if you have the OS specific scripts, then just check for the init.cssd init directory.

    The advantages of checking the init.cssd are: you will get the Oracle Clusterware House - it is set as a variable:
    = ORA_CRS_HOME / ora/clusterware AND you usually get the Oracle user: ORACLE_USER = oracle

    Then you can check if Clusterware is running. You will have more than one way to do it now. You can use ps - ef or you can use Clusterware orders as crsctl check CRS or things of that kind.

    Of some people could argue that there is a DSMB for ASM in standalone (non-cluster) ASM facilities running and there is therefore an init.cssd. YES, but this init.cssd shouldn't be in init in this case - see the comment in the header of the script init.cssd: "In a local, nonclustered, installation without CARS, it must be placed in a directory rcX.d".

    However, just to be safe, you can always check whether or not you will find init.crsd, init.evmd, which are very strong indicators that Clusterware has been installed on the system, unless it was not uninstalled properly...

    Once you've found the Clusterware installed, running AND you know the path to the House - it's easy:

    As said previously, you can use olsnodes to get the nodes in the cluster. You can still use crs_stat. It will tell you the ASM / RAC, the instance number and this node the instance number is running on:

    Name = ora.myrac1.ASM1.asm
    TYPE = application
    TARGET = ONLINE
    STATUS = online on pmrac1

    As for CARS DB instances:

    Name = ora.myrac.myrac1.inst
    TYPE = application
    TARGET = ONLINE
    STATUS = online on pmrac1

    To determine which is the node that you are running your script on: host name must do.

    Of course, all this will work only IF you have installed Clusterware. For environments not clustered, you must work with the ps - ef command, sqlplus and oratab file as you mentioned below, which makes it a bit more complicated. We could predict that's SO so OTHERWISE in your script - IF cluster, THEN do foo, otherwise do BLAH. Just an idea.

    For this question:
    Belongs to ASM cluster - (yes/no)
    (If crsd.bin is running, ASM is clustered. Can this method be invoked always?)

    IF you have a cluster installed, ASM should be part - is the default and recommendation. However, you can run in a broken configuration. You want to guess in your script and secure?

    Just a few random ideas. Thank you
    Markus

  • The list of all the paths of the Subvi (expected)

    Hello

    I reconstruct a relatively large application (say a unique and main VI) to restore a little chunks from other builds, completely perhaps a few or several thousands of VI.  The nomenclature of hierarchy of folder of the component of the generations is not quite logical and there is a certain cross linking or duplication between the Subvi is based.

    Ideally, to get the organized entire application and later for documentation purposes, I would like to be able to generate a list of files of all THE sous-de in the main VI VI.  I don't know about this gem:

    http://forums.NI.com/T5/LabVIEW/paths-of-the-called-files-how-to-see-them/m-p/2721289/highlight/true...

    However, this version is underway and I can't run the main VI for a list that said by the way, for most because it will not run if Subvi are missing, some as a deep layer (on the block diagram of the main VI), others several layers down.  Be able to get a list from which it EXPECTED these s Subvi being would be extremely useful to solve this problem.

    Is it possible, without running a VI, to view a list of all filepaths expected of all the sous-de VI?  In the interest of the future organization/documentation, it would be nice if it was a list of these TWO sub - VI that were found as well as (MANY) - VI I say to ignore when loading to load the main VI.

    Thank you!

    mikeporter wrote:
    A few THOUSAND screws? It is not big enough, so huge! In fact, it is much too big - I don't like what he does.

    You look at starting over.

    I do not share this statement.  Several projects, I would call medium-sized loading screw 4,000 in memory, probably about 2,000 or more have been written for the project and the others were the user.lib, toolboxes, variousl library and the vi.lib.

    If you add your VI to a project, you can go to the files tab, and it will show you the structure of all code depenedency records.  Of course, if the screws are missing it cannot tell where on the disc these dependencies have been loaded from.  From LabVIEW 2014 NOR has the ability to know the load path planned to miss the screws you see when you open help in a missing VI context.  In the Help window will tell you the planned trajectory.

    But I still don't see why this function may not work for you.  I tried it and he found the projected paths of components on a broken main VI.

  • Corrected the host file corrupted, now showing 2 host files in XP

    I have a corrupt host file and 2 host files have now for some reason any. What to do to fix this?

    After explaining all this several times, here are some notes:

    The hosts file is a read-only file, hidden system.  It is just a text file that you can manipulate with WordPad, Notepad or any text editor.  Before you modify the hosts file, make a copy of the current in case you need to restore the original.

    The hosts file is (or should be) a file read-only, which means that if change you it, you will not be able to save the changes until you remove the read only attribute of the file.

    You may be able to create a new one or reset your hosts with Microsoft Help file:

    http://support.Microsoft.com/kb/972034 (this does work as expected the last time I tried).

    If you use the Fix It from Microsoft, you will have no hosts file when you're done (which is not necessarily a bad thing) so you can just read and follow the instructions to find out how to fix it yourself.

    Some third-party software analysis tools (like Spybot) may add entries to the hosts file on purpose to block your browser from loading WWW websites completely or block ads from certain sites WWW.  They claim to have a list of sites that most of the people want to block and insert them into your file hosts for you.  You can always delete the entries in the hosts file manually if you wish.

    Another good option to block ads sites is to use Firefox with the Adblock Plus extension (it is updated regularly with new sites).  If you use that combination, you don't have to worry about your hosts file and these two together really do a good job.

    Malware can also add entries in the host file to redirect the browser to another site than the one you really want to visit WWW.

    For example, if you try to browse to www.google.com, you can find yourself on a WWW site that is inappropriate or simply an advertisement for a product you never heard and do not want.  Your browser will always be redirected away from www.google.com until correct you the hosts file.

    The malware can also modify your hosts file to block your browser to go to Web sites where you might find a solution for how to remove the malicious software.  The malware sometimes knows what you're going to try to find and remove, so it will prevent you to do so.

    If your hosts file has been manipulated by malware, edit the hosts file does not remove the malware.  You will still need to scan your system with software tools to make sure that the malware has entirely disappeared.

    Malware analysis tools can also remove the malicious software and leave the bad entries in the hosts file.  Analytical tools cannot tell if the entries in the file hosts were made on purpose or by malware you still may need to edit the file hosts manually in case of redirection of the browser once the malware has been removed.

    Some analytical tools will report changes to the hosts as a suspect file and allow you to review the changes and allow you to decide whether the changes are appropriate, and to take action.

    Sometimes, analytical tools cannot tell if the entries in the hosts file have been put there by malicious software or you put there on purpose so cannot do not report any problems with the hosts file.  This does not mean that the hosts file has not been adjusted by malicious software.

    A hosts file is not required for your browser to operate.  If you suspect a problem with the hosts file, you can rename the hosts file and test your browsing without it.

    Always reboot your system and the navigation test after making changes to the hosts file.

    To manipulate the hosts file, you need to make hidden files not hidden and remove the attribute only read the hosts file.

    In Explorer, navigate to the following folder (assuming that Windows is installed on your C drive):

    c:\Windows\system32\drivers\etc

    Click on tools. Of files, display options.  In advanced settings, enable (check) the box option for:

    Display the hidden files and folders

    Click OK.

    The hosts file has also no extension (for example, .exe or .doc) and it may be useful to also see the file extensions for all files in
    the folder.  While you adjust the display of folder options, bring up the file extensions.

    Click on tools, Options, view.  In advanced settings, clear (uncheck) the box:

    Hide extensions of known file types

    Click OK.

    Now the hosts file must be visible and you can also see the file extensions.

    Make a copy of the current hosts file and name the copy something he can remember so that you can find it later and cancel
    any change if the changes don't work or things get worse.

    The host file is usually a single reading, so to change it, you must remove the read-only attribute:

    Make a right-click the hosts file, properties, uncheck the box that says:

    Read-only

    Click OK.

    Now you can edit the hosts file with a text editor (Notepad, Wordpad).  Be sure to save the hosts file after any changes.

    You will need to decide what is in your hosts file.  The default hosts file has only one entry (and a lot of comments) so if you think that the hosts file are the part of your question, you can remove all but the default entry and save the file.

    Always reboot your system and the navigation test after making changes to the hosts file.

    You should make hosts read-only folder again when you are finished making changes.  Obviously some programs or malware do not pay attention to the attributes of a file read-only, but it is advisable for the host file to be unalterable.

    If you want to, reverse explore changes to hide system files and extensions of known file types.

    If you think your hosts file is irretrievably, replace the contents with the default values of Windows.

    The default for Windows XP hosts file looks like this:

    # Copyright (c) 1993-1999 Microsoft Corp.
    #
    # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
    #
    # This file contains the mappings of IP addresses to host names. Each
    # entry should be kept on an individual line. The IP address must
    # be placed in the first column, followed by the corresponding host name.
    # The IP address and the host name should be separated by at least one
    space #.
    #
    # In addition, comments (such as these) may be inserted on individual
    # lines or following the name of the machine indicated by a symbol "#".
    #
    # For example:
    #
    # 102.54.94.97 rhino.acme.com # source server
    # 38.25.63.10 x.acme.com # x client host

    127.0.0.1 localhost

    There are places on the Internet to download information to your hosts file which is based on what other people think your hosts file must block or allow for your Internet browsing.  Sometimes that works very well, but you now need to know more on the manipulation of the hosts file now so that you can decide what's best for your environment.

    Here's some additional reading on how to manipulate your hosts file:

    http://www.MVPs.org/winhelp2002/hosts.htm

    This is a user-friendly tool with a graphical interface (GUI) to help you work on your hosts file:

    http://www.Funkytoad.com/index.php?option=com_content&ID=13

Maybe you are looking for