looking for help on the script PowercLI.

I'm looking for a script powershell group based vmsessions on the State of vmtools version so that I can plan the upgrade to version VMtools on virtual machines.

Please use the below script and let me know if problems.

Claire

$logfile = "result.txt".

$vms = «»

$output = «»

$temp =""

$vm =""

To connect to vcenter Server

$vcenter = read-host "enter the vCenter Instance.

to connect-viserver-Server $vcenter - WarningAction SilentlyContinue

Get-Date | out-file $logfile

echo "= details = | out-file $logfile - Append

$vms = get-Content.\list.txt

$output = get - vm $vms | SELECT name, vmhost, PowerState, version, toolsversion, toolsversionstatus, comments.

| Tri-objet-property toolsversionstatus | FT - AutoSize GroupBy - toolsversionstatus-wrap

$output

$output | Out-file $logfile - append

Disconnect-VIServer *-confirm: $false

Tags: VMware

Similar Questions

  • I have a complaint on my Mac Book Pro. I bought my computer in January 2016 and it has two problems: the first is the display of the retina that has many traces of the keyboard and as many times it freezes. I have looked for help on the local Apple Store

    I have a complaint on my Mac Book Pro. I bought my computer in January 2016 and it has two problems: the first is the display of the retina that has many traces of the keyboard and as many times it freezes. I have looked for help on the local Apple Store and support too, but it did not help. I would like you help me solve this problem.

    Thank you.

    Kelly

    Your machine is still under warranty, so you should take it to your local Apple store for repairs. Function late in January, you bought it, you still have phone without support. If you can't find any help on the Apple Store, then I don't know what you expect to find here. We have no way to check for problems you have described or any additional hardware, etc.

  • Looking for help with the motion in still menus of EI.

    Need help to make a menu driven sequelae. can understand the import process in yet. I can't the buttons I did in AE to work. Anyone?

    Read this (but do not have your plan until you read the link at the end of the post):

    http://help.Adobe.com/en_US/Encore/CS/using/WSF49EA5DB-3743-49C2-9831-F66328B192F8.html

    The important part is:

    «The loop point is used first to disable the buttons.» Until the loop is reached, the Viewer cannot select or activate a button. The menu returns to this point on each repetition, so the buttons are disabled when the menu is displayed first. For rehearsals, the duration is shorter and the starting point for all video content in the menu is offset. »

    So in AE, you create a video (the substance of the application) which includes the image of the buttons as they fly in. Still is the addition of highlights. AE for a period of time could also create layers of button, but you will be less confused if you use Photoshop and again for the file menu itself.

    I forgot to give you this link for help, which is the help file to work with AE:

    http://help.Adobe.com/en_US/Encore/CS/using/WSA5513911-0AD1-440C-BDAD-2E0E806B425E.html

    This method begins with a menu into Encore and creates an AE composition from there. It can only work with AE CS6, since you have EN CS6. I don't remember if it is technically a form of dynamic link, which requires corresponding versions of the applications.

    There are a lot of ways to skin this cat.

  • Looking for help on the restructuring after several virus attacks

    Hi all!

    I want to reformat my laptop (Compaq Persario CQ61).

    I caught a backdoor, Trojan a few months back and I can't keep my computer virus. It takes all the Anti Virus software that I install. I ordered and received Windows 7 operating and the CD of drivers a few days ago. But I'm not too computer savvy when it comes to something like this and everything I read about reformatting is scare the heck out of me--looks like a lot of problems trying to do this?

    Can someone give me an overview more and help me?

    Thank you

    Tammy

    Hi Tammy,

    I'm sure it will be fine, but you can always post if you meet problems.

    Kind regards

    DP - K

  • I'm looking for help to share best practices to upgrade the Site Recovery Manager (SRM), if someone can summarize the preparatory tasks?

    I'm looking for help to share best practices to upgrade the Site Recovery Manager (SRM), if someone can summarize the preparatory tasks?

    Hello

    Please check the content below, you may find useful.

    Please refer to the URL: Documentation VMware Site Recovery Manager for more detailed instructions.

    Important

    Check that there is no cleanup operation pending on recovery plans and there is no problem of configuration for the virtual machines that protects the Site Recovery Manager.

    1 all the recovery plans are in ready state.

    2 the protection status of all protection groups is OK.

    3 the status of the protection of all the individual virtual machines in the protection groups is OK.

    4 the recovery of all groups of protection status is ready.

    5. If you have configured the advanced settings in the existing installation, note settings you configured before the upgrade.

    6 the vCenter local and remote server instances must be running when you upgrade the Site Recovery Manager.

    7 upgrade all components Server vCenter Site Recovery Manager on a site until you upgrade vCenter Server and Site Recovery Manager on the other site.

    8 download the setup of Site Recovery Manager file in a folder on the machines to be upgraded the Site Recovery Manager.

    9 make sure no other facilities-\no updates windows restarts done shoud

    Procedure:

    1. connect to the machine on the protected site on which you have installed the Site Recovery Manager.

    2. backup the database of Site Recovery Manager by using the tools that offers the database software.

    3. (optional) If you upgrade of Site Recovery Manager 5.0.x, create a 64-bit DSN.

    4 upgrade the instance of vCenter Site Recovery Manager server that connects to vCenter Server 5.5.

    If you upgrade a vCenter Server and Site Recovery Manager 4.1.x, you upgrade the instances of vCenter Server and Site Recovery Manager server in the correct sequence until you can upgrade to Site Recovery Manager 5.5.

    a upgrade vCenter Server 4.1.x to 5.0.x server.

    b Update Site Recovery Manager of 4.1.x to 5.0.x.

    c upgrade server vCenter Server 5.0.x to 5.5.

    Please let me know if it helped you or not.

    Thank you.

  • Looking for help to find articles or resources to learn more about how to migrate to a new computer and also upgrade CS5 to CC at the same time. Can I migrate and then upgrade?

    Looking for help to find articles or resources to learn more about how to migrate to a new computer and also upgrade CS5 to CC at the same time. Should I migrate and upgrade?

    You don't want to think in terms of migration when it comes to Adobe software.  You must install using installation files.  There is no need to have installed CS5 unless you plan to use it.  There is no way to upgrade of CS5 at CC, there is a reduced plan should soon be interrupted.  You get the first annual subscription for almost half of the normal price.

    Creative cloud plans

    https://creative.Adobe.com/plans

    Director of the installation:

    Download/install the desktop application, connect and install applications subscription.

    Creative cloud to desktop
    https://helpx.Adobe.com/creative-cloud/help/creative-cloud-desktop.html

    Sign out, sign in | Creative office cloud app
    http://helpx.Adobe.com/creative-cloud/KB/sign-in-out-creative-cloud-desktop-app.html

    Install, update, or uninstall applications
    http://helpx.Adobe.com/creative-cloud/help/install-apps.html

  • Looking for input on the replacement of certificates self-signed

    After many hours trying to find an answer, I now turn to the experts for assistance here.  I have Setup initially vcloud with a self-signed certificate and I am looking for help.  After some research, I was able to create a new key file with my CA-signed certificate.  However, I have problems beyond the portion of reconfigure.

    First off I am struck by the: 1433 bug I had when I initially configure vcloud where the configure script does not pick up the port number.  The workaround for this is to add: 1433 to the host name as it the entrance as the port number.  Now that I'm gone, I get an error NewInstall_preInit sql.  I don't understand not even why I need a "newInstall" as I already have a database works.  Here is my command output, maybe one of the guru here can point me in the right direction.

    [root@vcloud bin] # cd/opt/vmware/vcloud-director/bin/configure
    Welcome to the vCloud Director configuration utility.
    You will be asked to enter a number of parameters which are necessary for
    Configure and start the vCloud Director service.
    Please enter the path to the keystore of Java that contains your SSL certificates and
    private key: /opt/vmware/vcloud-director/cert.ks
    Please enter the password for the key file:
    Please enter the password for the private key for the certificate of "http":
    Please enter the password for the private key for the certificate of "consoleproxy":
    The following data types are supported:
    1 oracle
    2 Microsoft SQL Server
    Enter the type of database [default = 1]: 2
    Enter the host (or IP address) to the database: vmgmt1:1433
    Enter the database [Default = 1433] port: 1433
    Enter the name of the database [default = vcloud]: vcloud
    Enter the name of the instance [default = MSSQLSERVER]: vcloud
    Enter the database user name: his
    Enter the database password:
    Connection to the database: jdbc:jtds:sqlserver://vmgmt1:1433:1433 / vcloud; socketTimeout = 90; instance = vcloud
    loading /opt/vmware/vcloud-director/db/mssql/NewInstall_PreInit.sql
    [2 reports]
    Execution of SQL query error: ' IF ((SELECT is_read_committed_snapshot_on FROM sys.databases WHERE database_id = DB_ID()) <>1).
    BEGIN
    DECLARE @sql varchar (8000)
    SELECT @sql = '
    ALTER DATABASE ' ' + DB_NAME() + ' ' SET SINGLE_USER WITH IMMEDIATE RESTORATION.
    ALTER DATABASE ' ' + DB_NAME() + ' "ALLOW_SNAPSHOT_ISOLATION DEFINED;
    ALTER DATABASE ' ' + DB_NAME() + ' ' SET READ_COMMITTED_SNAPSHOT ON WITH NO_WAIT;
    ALTER DATABASE ' ' + DB_NAME() + ' ' SET MULTI_USER;
    '
    Exec (@SQL)
    END '.
    java.sql.SQLException: Option "SINGLE_USER" cannot be defined in database 'master '.
    at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:368)
    at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2816)
    at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2254)
    at net.sourceforge.jtds.jdbc.TdsCore.getMoreResults(TdsCore.java:636)
    at net.sourceforge.jtds.jdbc.JtdsStatement.processResults(JtdsStatement.java:584)
    at net.sourceforge.jtds.jdbc.JtdsStatement.executeSQL(JtdsStatement.java:546)
    at net.sourceforge.jtds.jdbc.JtdsStatement.executeImpl(JtdsStatement.java:723)
    at net.sourceforge.jtds.jdbc.JtdsStatement.execute(JtdsStatement.java:1157)
    at com.vmware.vcloud.configure.Db.executeSqlBatch(Db.java:231)
    at com.vmware.vcloud.configure.Db.executeSqlScript(Db.java:190)
    at com.vmware.vcloud.configure.Db.createTables(Db.java:142)
    at com.vmware.vcloud.configure.Db.maybeInitialize(Db.java:301)
    at com.vmware.vcloud.configure.ConfigAgent.configureDatabase(ConfigAgent.java:1631)
    at com.vmware.vcloud.configure.ConfigAgent.start(ConfigAgent.java:396)
    at com.vmware.vcloud.configure.ConfigAgent.main(ConfigAgent.java:295)
    Communication with the database error: Option SINGLE_USER cannot be defined in the master database.

    Just a stab in the dark - the guides call say use a user for vcloud (named: vcloud) not "its".

    Our vcloud database user login has a default instance of the vcloud database.  Maybe this will get around the question (seems to me that THE default connection is master - and before the change of the "vcloud" database scripts he tries to put in single-user mode.

  • Looking for a an example script...

    I'm looking for some samples of script or direction for the following:

    1 copy all the .vmx on the ESXi host files to a specified location.

    2 get an amount of storage space used by each virtual machine on a host.

    The attached script is the answer to your first question and copy all files .vmx on the ESXi host at c:\users\robert:

    I have to attach the script because it contains brackets and the forum software has problems with them.

    Robert

    Post edited by: RvdNieuwendijk

  • I'm looking for documentation on the Firefox command line arguments.

    I'm looking for documentation on the Firefox command line arguments. I use Ubuntu.

    http://KB.mozillazine.org/Command_line_arguments

    This doesn't seem to be what you're looking for?

  • "Sorry, we could not connect to the Microsoft services right now. If the problem persists, look for 'referee' on the start screen.

    "Sorry, we could not connect to the Microsoft services right now. If the problem persists, look for 'referee' on the start screen.

    This appears when I try to connect with Microsoft Account.

    I tried all the possibilities that was displayed in the link but when even the problem exists... below you please suggest me the solution to add the microsoft account

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_8-networking/sorry-we-couldn

    Hi Nikhil,

    If you connect through a proxy, then I suggest you to try the steps suggested in this article and checking:

    http://support.Microsoft.com/kb/2778122/en-us

    Keep us updated on the results.

  • I work for an organization not-for-profit, and I wondered what might be a plan of this organization to use? Really looking for us in the first but are interested in the complete set of CC.

    I work for an organization not-for-profit, and I wondered what might be a plan of this organization to use? Really looking for us in the first but are interested in the complete set of CC.

    Please see this link

    Non profits

    If your institution not-for-profit or charity meets the conditions above, you can browse the education of Adobe software versions. Once you are ready to buy, you will be asked to present evidence or your qualification status when ordering.

  • I just paid to upgrade my acrobat reader, but it will not convert into Word because it is more than 100 MB. Just lost an hour of signing up and looking for help contact. How to cancel it without you guys give money for misleading me about your product? T

    I just paid to upgrade my acrobat reader, but it will not convert into Word because it is more than 100 MB. Just lost an hour of signing up and looking for help contact. How to cancel it without you guys give money for misleading me about your product? Thank you!

    ICES.html https://helpx.adobe.com/x-productkb/Policy-Pricing/Cancel-subscription-Acrobat-Online-serv

    You will need Acrobat to convert files > 100 MB.

    [subject moved to cloud Document PDF Services forum]

  • I have Adobe Reader XI with the package that allows me to send a PDF file and convert PDF files to Word. When I open a pdf file and you try to find the search shows no match, even if the word I'm looking for is in the document. Suggestions how to search?

    I have Adobe Reader XI with the package that allows me to send a PDF file and convert PDF files to Word. When I open a pdf file and you try to find the search shows no match, even if the word I'm looking for is in the document. Suggestions how to search?

    A scanned document is an image; You can't find a picture.

    If the image contains text, recognition of characters (OCR) will convert the 'text' in the image in real text (searchable, editable).

    OCR can be performed automatically when converting a PDF to Word, using the ExportPDF service.

    To run OCR inline in a PDF document, you will need Acrobat.

  • Add the link for help outside the answer, dashboard link at the top of the page?

    Hello world

    I would like to add the link for help outside the answer, dashboard link at the top of the page.

    http://hiphotos.Baidu.com/chenchendf/abpic/item/f44bb86eddc451dacb48b252b6fd5266d116326f.jpg

    Could you please let me know how. the bi version is 10g

    I found the ref: http://oraclebizint.wordpress.com/2008/01/31/oracle-bi-ee-101332-adding-custom-urls-to-the-dashboard/
    but it is not accessible.

    Thank you

    Hello

    Follow this-

    Stop the BI server

    Put the code below in the file commonuitemplate.xml under OracleBI\Web\msgdb\messages dashboardURL code (search for dashboardURL) above

    &(lt; td class = &(quot; Assets ProductCell &(quot; &(gt;

    <(a href="https://co-ds-ipm-a01:9704/analytics/res/OBIEE%20Guide.pdf" target="@{target}">Guide OBIEE &(lt; table &(gt;
    -

    Note: Code above please delete (wherever find you it, I put it as his poster not the code.)

    OBIEE Guide.pdf belongs under path (OracleBI\oc4j_bi\j2ee\home\applications\analytics\analytics\res)

    Restart the BI server

    Kind regards
    Srikanth

  • Request for help with the output of a script

    Hello

    I need assistance with the output of a script. I have a script that retrieves advanced config of the esx hosts in a cluster and exports to a txt file. Here is the script I use:

    $Decimals = 1

    $VCServers = @)

    $VMSummaries = @)

    $InputFile = "VCs.txt".

    1. Read the input file, loop of VCs

    Foreach ($VCname in Get-Content $InputFile) {$VCServers += $VCName}

    Foreach ($VCServer to $VCServers)

    {

    $VC = to connect-VIServer $VCServer

    $VMhosts = get-VMHost

    Foreach ($VMHost to $VMhosts)

    {

    Write-Progress "Collecting information in $VCServer" 'connecting to host $VMHost' - Id 0

    $VMSummary = "" | Select the host name, TCPIPHeapMax, TCPIPHeapSize, HeartbeatTimeout, HeartbeatFrequency, HeartbeatMaxFailures, MaxVolumes

    $VMSummary.HostName = $VMHost.Name

    $VMSummary.TCPIPHeapMax = (get-VMHostAdvancedConfiguration - VMHost ($VMhost) - name Net.TcpipHeapMax). Values

    $VMSummary.TCPIPHeapSize = (get-VMHostAdvancedConfiguration - VMHost ($VMhost) - name Net.TcpipHeapSize). Values

    $VMSummary.HeartbeatTimeout = (get-VMHostAdvancedConfiguration - VMHost ($VMhost) - name of NFS. HeartbeatTimeout). Values

    $VMSummary.HeartbeatFrequency = (get-VMHostAdvancedConfiguration - VMHost ($VMhost) - name of NFS. HeartbeatFrequency). Values

    $VMSummary.HeartbeatMaxFailures = (get-VMHostAdvancedConfiguration - VMHost ($VMhost) - name of NFS. HeartbeatMaxFailures). Values

    $VMSummary.MaxVolumes = (get-VMHostAdvancedConfiguration - VMHost ($VMhost) - name of NFS. MaxVolumes). Values

    $VMSummaries += $VMSummary

    }

    }

    $OutputFile = "AdvancedNFS.txt".

    $VMSummaries | Format-Table | Out-file $OutputFile

    This script runs without any problem and generates a text file that looks like this:

    TCPIPHeapMax TCPIPHeapSize HeartbeatTimeout HeartbeatFrequency HeartbeatMaxFailures MaxVolumes hostname

    -


    -


    -


    -


    -


    -


    -


    abcd1 abcd2 abcd3

    I am trying to output a csv file and run into a problem where each host values are not displayed correctly. I replaced the last 2 lines in the script as follows:

    $OutputFile = "AdvancedNFS.csv".

    $VMSummaries | Export-CSV $OutputFile

    My output looks like this:

    Host name

    TCPIPHeapMax

    TCPIPHeapSize

    HeartbeatTimeout

    HeartbeatFrequency

    HeartbeatMaxFailures

    MaxVolumes

    ABCD1

    System.Collections.Hashtable + ValueCollection

    System.Collections.Hashtable + ValueCollection

    System.Collections.Hashtable + ValueCollection

    System.Collections.Hashtable + ValueCollection

    System.Collections.Hashtable + ValueCollection

    System.Collections.Hashtable + ValueCollection

    What I am doing wrong?

    Thank you

    Alex

    Hello

    You can try changing your script like this:

    • -Replace "." "With values '-["'-']. "

    • -Optimize calls to Get-VMHostAdvancedConfiguration

    Your code will look like this:

    ...

    Write-Progress "Collecting information in $VCServer" 'connecting to host $VMHost' - Id 0

    $VMSummary = "" | Select the host name, TCPIPHeapMax, TCPIPHeapSize, HeartbeatTimeout, HeartbeatFrequency, HeartbeatMaxFailures, MaxVolumes

    $VMSummary.HostName = $VMHost.Name

    $VMHostAdvancedConfig = get-VMHostAdvancedConfiguration - VMHost $VMHost - name Net.TcpipHeapMax, Net.TcpipHeapSize, NFS. HeartbeatTimeout, NFS. HeartbeatFrequency, NFS. HeartbeatMaxFailures, NFS. MaxVolumes

    [$VMSummary.TCPIPHeapMax = $VMHostAdvancedConfig\["Net.TcpipHeapMax"\]

    [$VMSummary.TCPIPHeapSize = $VMHostAdvancedConfig\["Net.TcpipHeapSize"\]

    $VMSummary.HeartbeatTimeout = $VMHostAdvancedConfig\ ['NFS. HeartbeatTimeout '\] '.

    $VMSummary.HeartbeatFrequency = $VMHostAdvancedConfig\ ['NFS. HeartbeatFrequency '\] '.

    $VMSummary.HeartbeatMaxFailures = $VMHostAdvancedConfig\ ['NFS. HeartbeatMaxFailures '\] '.

    $VMSummary.MaxVolumes = $VMHostAdvancedConfig\ ['NFS. MaxVolumes '\] '.

    $VMSummaries += $VMSummary

    ...

    Kind regards

    Dimitar

Maybe you are looking for