Sort names in WLM 11

I use Win7 and Windows Live Mail 11.  My contact list is sorted by name, first name.  Is there a way to show the first name, last name format when it comes to the "to:"window when you compose an email WITHOUT changing the Contacts list in Last Name, First Name format? ".

What is in a name?

Name has a special meaning in WLMail. This is the value that appears in the contact lists selector like the ones you see when you click... buttonor start typing in of... box on a message composition window. It is also what is included in the to: line of an outgoing message.

Name is constructed by WLMail contact data fields. It will consist of the first match found during the analysis of the data fields in the following order:

  1. Nickname
  2. First name + last name (in the order specified to sort by in the Contacts window)
  3. First name or last name
  4. Company
  5. E-mail address

In the contacts (Ctrl-3) window, you can view contacts in the order you like. Select consider as > list, then right-click on the column headings to add or change the fields displayed. A simple click on a column header will sort by this field.

Tags: Windows

Similar Questions

  • Is it possible to sort messages in WLM by more than one field at a time?

    Sort messages in Windows Live Mail

    As the help "?" button in the desktop app Windows Live Mail is no help whatsoever *, after much research I landed at MS Answers. Hope someone here can answer what I believe is a simple enough question, although well beyond the capabilities of the foregoing under construction using WLM... Here goes-

    Is it possible to sort messages in WLM by more than one field at a time?

    If I sort my messages received by the field 'From' - by clicking on the field header (whenever you click the header, it changes to alphabetical, reverse alphabetical order) - by default each group of messages from the same sender are listed in order by date/time, earlier at the latest, from top to bottom (opposed to the default order when the messages are sorted by date and time upon arrival which puts the last (most recent) mail messages has received at the top). After you sort messages by sender, is it possible to then sort these messages grouped by date, with the newest messages at the top of the list?

    * Is there a procedure/channel "correct" to say Microsoft's help on the web for MS Office & other apps - like Windows Live Mail - how useless? In the interest of Microsoft, this gap & go back to the built-in Office 2000 help, etc., with an option to get help online, i.e. through the Forums, if the system cannot answer your question.

    Hello UKdeejay,

    The best place to ask your question of Windows Live is inside Windows Live help forums. Experts specialize in all things, Windows Live, and would be delighted to help you with your questions. Please choose a product below to be redirected to the appropriate community:

    Windows Live Mail

    Windows Live Hotmail

    Windows Live Messenger

    Looking for a different product to Windows Live? Visit the home page Windows Live Help for the complete list of Windows Live forums to www.windowslivehelp.com.

  • I have rearranged the bookmarks (by keywords) and I lost my manual sorting original, crucial who left their jobs?

    I create clusters of related bookmarks within each file, each set out from separations. For the first time, I have sort by key words, and when I went to manually sort name / my site, all the work was gone. It is all sorted by alpha now. I guess that cannot be undone, but I hold no hope.

    Have you tried organize > Cancel in the Manager of bookmarks (library)?

    If you did not close Firefox again then see if you can use "organize > Cancel ' in the Bookmark Manager (Bookmarks > show all bookmarks) to cancel this action and restore the bookmark (s).
    Hold the button is the first of three buttons next to the back and forward buttons on the toolbar in the library (Bookmark Manager).
    If it does not work so that you can restore bookmarks from a JSON backup in the folder bookmarkbackups.

    • Bookmarks > show all bookmarks > import and backup > restore

    This will replace all current bookmarks and you lose the favorites that have been added since the backup was created.
    See:

  • 9.3 IOS sort does not

    Anyone else having the problem of sorting in iBooks / my books/authors or by default in the given name/initials of the author rather than the name of sorting (name, first name) specified in iTunes? Just mess when you have a lot of books on the device. He now also default Bookshelf on the opening, not authors as I still had value. These are really annoying bugs, especially the sort because it is all nonsense to use iBooks as a library - get someone who actually reads books to take a look at the app before it was dismissed. Even on my iPhone, both local storage, no iCloud, new version of iTunes, several reboots, etc. resynched so it seems that it's a permanent screw.

    I've lost all the sorting. My books used to show as recent, now I have no idea what sort of random, they are presented in. Also when I downloaded a new book, it would be labeled "new". Now, who has also disappeared. Also lost a pouch that existed before the upgrade.

  • Script of statistics VM does not show the good name of the Cluster.

    I tried to add a column to display the cluster virtual machine which is, but appearently I hurt him.  The column lists a cluster, but it's evil, and it's the same for all virtual machines.

    #####################################
    # Statistics virtual machine VMware #.
    #####################################

    function {VM-statavg ($StatStart, $StatFinish, $vmImpl, $statId)
    $stats = $vmImpl | Get-stat - Stat $statId - intervalmin 120 - Maxsamples 360'
    -Launch $StatStart - finishing $StatFinish
    $statAvg = "{0, 9:.00 #} ' f ($stats |) Measure - Object value - average) subject
    $statAvg
    }
    # Eve report
    $DaysBack = 30 # number of days to return back
    $DaysPeriod = 30 # number of days in the interval
    $DayStart = (get-Date). Date.AddDays(-$DaysBack)
    $DayFinish = (get-Date). Date.AddDays (-$DaysBack + $DaysPeriod).addminutes(-1)
    # Report for the previous week
    $DaysBack = 7 # number of days to return back
    $DaysPeriod = 7 # number of days in the interval
    $WeekStart = (get-Date). Date.AddDays(-$DaysBack)
    $WeekFinish = (get-Date). Date.AddDays (-$DaysBack + $DaysPeriod).addminutes(-1)
    $report = @)
    Get - vm | Sort name | % {
    $vm = get-view $_.ID
    $vms = "" | Select-Object VMName Hostname, Cluster, MonthAvgCpuUsage, WeekAvgCpuUsage, VMState, TotalCPU, TotalMemory, MonthAvgMemUsage, WeekAvgMemUsage, TotalNics, ToolsStatus, ToolsVersion
    $vms. VMName = $vm. Name
    $vms. Host name = $vm.guest.hostname
    $vms. Cluster = $Cluster.Name
    $vms. MonthAvgCpuUsage = VM-statavg $_ $DayStart $DayFinish "cpu.usage.average".
    $vms. WeekAvgCpuUsage = VM-statavg $_ $WeekStart $WeekFinish "cpu.usage.average".
    $vms. VMState = $vm.summary.runtime.powerState
    $vms. TotalCPU = $vm.summary.config.numcpu
    $vms. TotalMemory = $vm.summary.config.memorysizemb
    $vms. MonthAvgMemUsage = VM-statavg $_ $DayStart $DayFinish "mem.usage.average".
    $vms. WeekAvgMemUsage = VM-statavg $_ $WeekStart $WeekFinish "mem.usage.average".
    $vms. TotalNics = $vm.summary.config.numEthernetCards
    $vms. ToolsStatus = $vm.guest.toolsstatus
    $vms. ToolsVersion = $vm.config.tools.toolsversion
    $Report += $vms
    }

    $Report | ConvertTo-Html-title "VMware Virtual Machine statistics" - body "< H2 > VMware Virtual Machine statistics.» "< / H2 > ' | Out-file - add $filelocation

    Looks like you forgot to get the cluster.

    The first lines of the loop must be something like this

    ...

    Get - vm | Sort name | % {
    $vm = get-view $_.ID

    $cluster = get-Cluster - VM $_

    ....

  • Sort by CR2s AND camera

    I want to sort the images by 2 rules:

    1. after salect only the CR2 images

    2 - Sort all by the camera that took these pictures

    In general, I have a group of CR2 shots of 2 cameras

    Is this also possible do this as the default bridge?

    Could you please try this Pedro code and see if it works...

    //.BridgeSort format
    #target bridge
    if( BridgeTalk.appName == "bridge" ) {
    var sortCameras = new MenuElement( "command","Sort Cameras", "at the end of Tools" , "sortCameras" );
    }
    sortCameras.onSelect = function () {
    var fileSort = new File(app.document.presentationPath +"/.BridgeSort");
    if(fileSort.exists) fileSort.remove();
    var fileList=[];
    app.document.deselectAll();
    var items = app.document.getSelection ("cr2,crw");
    for (var a in items){
    if(items[a].type != "file") continue;
    var md = items[a].synchronousMetadata;
    md.namespace = "http://ns.adobe.com/exif/1.0/aux/";
    var Serial = md.SerialNumber.toString();
    fD = File(items[a].spec).created;
    var FileDate = fD.getFullYear() + (fD.getMonth() +1).toString();
    FileDate += (zeroPad(fD.getDate(),2).toString()) +  (zeroPad(fD.getHours(),2).toString());
    FileDate += (zeroPad(fD.getMinutes(),2).toString()) + (zeroPad(fD.getSeconds(),2).toString());
    fileList.push([[items[a].name],[Serial],[FileDate]]);
    }
    fileList.sort();
    fileList.sort(function(a,b){return a[1]-b[1];}).reverse();
    app.document.sorts = [{ type:"string",name:"name", reverse:false }];
    fileSort.open("w", "TEXT", "????");
    $.os.search(/windows/i)  != -1 ? fileSort.lineFeed = 'windows'  : fileSort.lineFeed = 'macintosh';
    fileSort.encoding = "UTF-8";
    fileSort.writeln("");
    fileSort.writeln("");
    fileSort.writeln("");
    for(var t in fileList){
        fileSort.writeln("");
        }
    fileSort.writeln("");
    fileSort.writeln("");
    fileSort.close();
    fileSort.hidden=true;
    app.document.chooseMenuItem("mondo/command/new");
    app.documents[0].close();
    app.document.sorts = [{ name:"user",type:"date", reverse:false }];
    function zeroPad(n, s) {
       n = n.toString();
       while (n.length < s)  n = '0' + n;
       return n;
    };
    };
    
  • Any way to restore last manual sort order or prevent to be overwritten accidentally?

    Help!

    I'm constantly accidentally overwrite created carefully manually sort order (sometimes hours but more often months of accumulated work) in folders with file numbering up to 1,000, when I have, however, in short, switch to another sort order (size, date modified etc.) to check something, forget immediately that I am in a different sort order and without thinking (actually, I guess I think about a lot of other things) drag a file to another position, it destroyed immediately after hand sorting, I established, overwhelming with this new hands-on inadvertently.

    I tried CommandZ (modif cancel) but that only cancels my latest rating or labelling, I rushed to force quit bridge through the montior activity in the hope I will catch him before his crushed, but obviously I'm not as fast as a computer, and I don't think it has always worked.

    Is there a way or any script that someone wrote to officially record a manual sort order? Is there something that I missed in an attempt to restore? Has anyone, foiled repeatedly by the present, writes something that could give a warning and I will confirm say for example, if I tried to drag or move a file while in a different sort order (this seems to be something that must have existed the minute has been given the opportunity to create an organisation manual). Anyone would be willing to?

    Seriously, forget me almost everytime won't change and more dilapidated, it has even happened when I didn't spend anything that clumsy momentarily while in a different sort order. I think that most people could forget because that (in the context of the computer), we are conditioned to expect one caveat if something that we just created is about to be overwritten or discarded, and since there is no option to save a manual ranking officially we just created.

    Also, if it was in the real world, moving a single file would not overhaul everything on your desktop. If I had the ability to save a manual organization officially I WON'T forget to do and would use, I wanted one every time I spent some time rearrange files. Knowing how easy, it is every hour (much less months and years of cumulative work) for organization's work can be accidentally lost makes working within unpleasantly anxious bridge.

    I am literally ready to do anything , including the installation of some scripts from 3rd party summary (but honestly I have no idea what that means or how to do it). Extentively, I use and rely heavily on this feature, so it is the heel of a pretty serious Achilles. It's like watching your team meticulously built collapse of the House of cards with a sigh imprudent, but innocent, or as having the equivalent of a cat not even charming dance on your keyboard for a live concert, etc etc...

    Also it is not usually appropriate, given the context, batch rename all to preserve a control sequence numbers w manual, etc. Often the names of files are significantly (but necessarily, to evoke significant differences) since a long time already and when I have to rearrange things in the future would be obliged to do that every time, etc., etc., for even more heavy filenames which had no background information at the beginning. I'm looking for a way to make this function (manual sort order), well, more functional, safe and stable, workarounds I considered as cause too many additional problems.

    I thank in advance for any help, you may be able to offer, and as this is my first attempt to use forums that I vivre living on a boat without a regular net access, appreciate all corrections forum etiquette and excuses for misspellings, Dyslexic and spell check doesn't seem to work in this interface. next time will change in program external wordprocessing beforehand,

    Li ' l mc szpf

    P.S. I'm on a mac w 27 "CS4 Design Premium, w up to the minute BONES (10.6.8) and the Adobe software updates installed recently (I don't often move the monster but this week has been housesitting w net access, so she had all recommended shots and vaccinations...)

    PPS I know that most of you all could run the newest and later of everything, but I'm fairly certain that it is still a problem in recent versions, as has happened to me at school where all Macs are running cs5. But if it is remedied somehow in cs6 update suite together just to fix this a Bridge. I tried a lot of research and found nothing relevant or does not bother the considerable expertise and resources of an official forum, was extremely reluctant to ask (dreaded is broken in for pinout unintentionally etiquette forum), but it truly is the bane of my existence of significant bridge, so was willing to risk the imaginary censure and opprobrium...

    Post edited by: PECourtejoie

    It of a good question, for it requires two functions and a reboot of the bridge all done automagically

    Copy and paste the script in ExtendScript Toolkit
    It is installed with Photoshop and you will find: -.
    PC: C:\Program Files\Adobe\Adobe utility
    MAC: /Applications/Utilities/Adobe utilities

    Starting point
    PC: Edition - Preferences - Startup Scripts
    Mac: Startup menu - Preferences - Adobe Bridge Scripts

    At the bottom, click on the 'reveal' button it will open the folder where the script should be saved.

    Close and restart Bridge.
    Accept the new script.

    To use:
    Tools - backup sort manually
    It backs up the hidden file manually sort. BridgeSort to. BridgeSortSave

    Tools - restore manually sort
    This copierait the. BridgeSortSave back to BridgeSort and will close and restart of the bridge so that the manual sorting is restored.

    if( BridgeTalk.appName == "bridge" ) {
    var backUpManSort = new MenuElement( "command","Backup Manual Sort", "at the end of Tools" , "backupms" );
    var RestoreManSort = new MenuElement( "command","Restore Manual Sort", "at the end of Tools" , "restorems" );
    }
    backUpManSort.onSelect = function () {
    var fileSort = new File(app.document.presentationPath +"/.BridgeSort");
    var fileSave = new File(app.document.presentationPath +"/.BridgeSortSave");
    if(fileSave.exists) fileSave.remove();
    fileSort.copy(fileSave);
    fileSave.hidden=true;
    }
    RestoreManSort.onSelect = function () {
    var fileSort = new File(app.document.presentationPath +"/.BridgeSort");
    var fileSave = new File(app.document.presentationPath +"/.BridgeSortSave");
     if(!fileSave.exists){
     alert("No backup file exists");
     return;
     }
    app.document.sorts = [{ type:"string",name:"document-kind", reverse:false }];
    if(fileSort.exists) fileSort.remove();
    fileSave.copy(fileSort);
    fileSort.hidden=true;
    app.document.chooseMenuItem("mondo/command/new");
    app.documents[0].close();
    app.document.sorts = [{ name:"user",type:"date", reverse:false }];
    }
    

    I hope it works for you.

  • Programmaticaly an AdvancedDataGrid of sort.

    The situation is simple, I have a PrintAdvancedDataGrid I use to print a list of products. Before printing, the software asks the user how the list should be sorted (name, product, etc.). Then, the software has sort the data grid before you print it.

    How do I do that?

    I finally got it! To sort the group collection as I want, I need to use its compareFunction property that points to a function like this:

    protected function sortGroup(pObject1:Object,_pObject2:Object,_pSortField:Array_=_null):int {}
    var wResult:int = 0;
    var wFieldCount:int = 0;
    var wPropName:String;

    If (pSortField == null) {}
    Return compareValues (pObject1, pObject2);
    }

    wFieldCount = pSortField.length;
    for (var i: int = 0; ((i< wfieldcount)="" &&="" (wresult="=" 0));="" i++)="">
    wPropName = pSortField .name;
    wResult = compareValues (pObject1 [wPropName], pObject2 [wPropName]);
    }

    If (wResult == 0) {}
    This is where we add more sorting
    wResult = compareValues (pObject1 ["name"], pObject2 ['name']);
    }

    Return wResult;
    }

    protected function compareValues(pObject1:Object,_pObject2:Object):int {}
    If (pObject1 == null & pObject2 == null) {}
    return 0;
    }

    If (pObject1 == null) {}
    Return 1;
    }

    If (pObject2 == null) {}
    Returns - 1;
    }

    If (pObject1< pobject2)="">
    Returns - 1;
    }

    If (pObject1 > pObject2) {}
    Return 1;
    }

    return 0;
    }

  • Table Spry sort

    I was going through the demo "Using the framework for Ajax Spry" http://www.adobe.com/designcenter/video_workshop/html/vid0166.html and I can't get the Spry table to work properly.

    I can insert a repeating table, but the feature does not work. I check the ' sort column when header is clicked ', but I am unable to sort the GOLD from the header link or any other content in the rows of the table. The repeat region appears, but nothing is clickable.

    I noticed that in the demo files are added to the th and tr "onClick" events (< th onclick = "dsEvents.sort ('name', 'toggle')" > name < /th >), but these "onClick" events are not added to my code when I insert the Spry table.

    I am also unable to trigger a detail region element. I just get an expandable list, but nothing is clickable or sortable.

    I use Dreamweaver CS3 on Mac OS 10.4.9


    "According to me" I have solved the problem.

    The the demo files I downloaded seem to use different code. When I created a new site and started from scratch, things worked properly because a new directory "SpryAssets" was created.

    I think that the files in the directory "SpryAssets" (SpryData.js and xpath.js) that were included in the demo downloads are not compatible with the on-board DW CS3 Spry framework and does not automatically updated. That's why I don't think that the ' spry: sort ' function worked.

  • Try to get ALUA, Multipath, Advanced TCP and NFS to export control

    This is one that I don't know that you've heard before, my script worked yesterday but does not work today. The script part, but I couldn't so he could create a CSV with all data. Today, I am the print below. 3 days ago that I have updated the remote instance of PowerCLI 4.1 to 6.3 update 1. The script was working after the upgrade.

    I would like to have the host name appear 1 a the Multipath, then the TCP and NFS info Advanced. Any help would be really appreciated

    #Use him below to select more than 1 Virtual Center to run the script against, back on back the #.

    param)

    [parameter (Mandatory = $true)]

    [string []] $vCenter

    )

     

    $esxHosts = Get-VMHost | Sort Name

    foreach ($esx in $esxHosts){

    Write-Host 'ALUA and Multipath'

    $esxcli . storage . NMP . device . list($null)

    Write-Host ' Reading TCP and NFS Advanced Configuration settings on $esx"" "".

     

    Get-VMHostAdvancedConfiguration -$vmhost $esx -name * Net.TcpipHeapSize,* Net.TcpipHeapMax,* NFS. HeartbeatMaxFailures,* NFS. HeartbeatFrequency,* NFS. HeartbeatTimeout,* NFS. MaxVolumes

    {The } Export-Csv ESX.csv NoTypeInformation - -UseCulture

    A I am right now. "

    te.jpg

    Working last night but not output to CSV

    working.jpg

    After spending the day working on it some more (masochist), I've gotten to the point of having the output CLOSE to there, but 4 points to solve (and 1 item from the wish list)

    1: use of the wish list $Creds automation (for inclusion in all scripts after this one)

    2: Data center to display in the name of the report for the reconciliation of the audit

    3: host name to display in the csv file,

    4: I get out of the name, the keys, the values (just name and values) on the Advanced TCP and NFS parameters

    5: am unable to get the Description of export even if I'm the see in the PowerCLI screen for $esxcli.storage.nmp.psp.list)

    # TCPandNFS_Settings - TESTS ALL TOGETHER

    [CmdletBinding()]

    (param

    [Parameter (Position = 0, mandatory = $true)]

    [System.String]

    $VirtualCenterServer,

    [Parameter (Position = 1)]

    [System.String]

    $ClusterName,

    [Parameter (Position = 2)]

    [System.Boolean]

    $asLocalUser = $true

    If ((Get - PSSnapin - name VMware.VimAutomation.Core - ErrorAction SilentlyContinue) - eq $null)

    Add-PsSnapin VMware.VimAutomation.Core

    If ($DefaultVIServers.name - no $VirtualCenterServer)

    #Determine if we are connected to VirtualCenter as a local user or if we request identification information

    If ($asLocalUser)

    SE connect-VIServer-Server $VirtualCenterServer | Out-Null

    Write-debug ' connection as a local user in the CR: $VirtualCenterServer.

    on the other

    SE connect-VIServer-Server $VirtualCenterServer - Credential (Get-Credential). Out-Null

    Write-debug ' login as a user manually selected to vc: $VirtualCenterServer.

    Write-Host "looks like we are already connected to: $VirtualCenterServer at this session.

    If ($ClusterName)

    $VMHosts = get-Cluster-name $ClusterName | Get-VMHost | Where-Object {$_.} ConnectionState - eq 'Connected'}

    $VMhosts = get-VMHost | Where-Object {$_.} ConnectionState - eq 'Connected'}

    $Report =

    foreach ($esx in (Get-VMHost))

    $esxcli = get-EsxCli - VMHost $esx

    Write-Host "reading TCP and NFS Advanced Configuration settings on $esx".

    (Get-VMHostAdvancedConfiguration - VMHost $esx - name * Net.TcpipHeapSize, * Net .TcpipHeapMax * NFS.) HeartbeatMaxFailures, * NFS. HeartbeatFrequency, * NFS. HeartbeatTimeout, * NFS. MaxVolumes). GetEnumerator

    # Select @{N = "ESX"; E = {$esx. Name}}

    Write-Host "ALUA and paths multiple parameters on $esx.

    $esxcli.storage.nmp.psp.list)

    $Report | Export-Csv "C:\Output.csv" - NoTypeInformation - UseCulture; II 'C:\Output.csv '.

    When the $Report is commented out export

  • [Help] Script type CPU

    Hi guys,.

    I'm stucket with a script that can display the CPU usage by processor type and % of host with AMD for any attached host to a vcenter.

    Is their my little script...

    $TotalCpu = (get-VMhost | where {$_.}) Hardware.CpuPkg [0]. Description-match "Intel"} | Measure-Object-CpuTotalMhz property-sum). Sum

    Write-Host $TotalCpu MHZ

    I also want to know if there is a way to have the percentage of host with AMD and intel.

    Already try this script from alan (works fine)

    Get-VMHost | Sorting Name | Get-View | Select Name, @{N=Cluster; E={Get-Cluster -VMHost (Get-VMHost $_. Name)}},@{N=CPU; E={$_. Hardware.CpuPkg [0]. Description}}

    But have no idea how to extract my precious

    If anyone can help (great Lucd are you there?)

    Thank you

    You mean something like this?

    $esx = get-VMHost

    $totInt = $esx | Where {$_.} ExtensionData.Hardware.CpuPkg [0]. Description-match "Intel"}

    $totAMD = $esx | Where {$_.} ExtensionData.Hardware.CpuPkg [0]. Description-match "AMD"}

    Write-Output ' Total ESXi: $($esx.). (Count) '.

    Write-Output "Intel Total: $(' {0:p}'-f ($totInt/$esx.)). Count)) '.

    Write-Output "AMD Total: $(' {0:p}'-f ($totAMD/$esx.)). Count)) '.

  • Defeated by tri-objet in the hash Table

    Hi guys, I need someone who is smarter than me to help please, suck for 3 days now.

    The Script below uses a CSV file as a database to pull total VMs in my vcenter in a bar chart, showing the trend upward. . My boss wants it as soon as possible.

    I can not however the $HT variable to sort by date (sorting and tri-objet doesn't seem to work, sort of NAME or WEEK)

    Need help please, I'm stumped.

    Note, tips cut off when I pasted it, like}'s and impossible.

    # Created by ELMO

    Add-pssnapin VMware.VimAutomation.Core -ErrorAction SilentlyContinue

    $Date = Get-Date -Format yyyy/MM/dd

    $VCRUN = ' Ma Blanked to vCenter '

    $Report = @()

    $USER = "Ma Blanked user"

    $PWD = "Ma Blanked on pwd"

    Write-Host ' Connection to $VCRUN"" "".

    VIserver disconnect -Confirm:$false

    Se connect-VIServer -Server $VCRUN -User $USER -Password $PWD -wa 0

    $VMsON = Get-VM | Where-Object {$_. PowerState -eq "PoweredOn"}

    $VMsTotal = $VMsON. County

       $Row = "" | Select Week, VMsTotal

       $Row . Week = $Date

       $Row . VMsTotal = $VMsTotal

       $Report += $Row

       $ReportView = $Report | Export-Csv -Path C:\PS\Output\VMTrendDB.csv -Append -NoTypeInformation #-Append the data at the bottom of the existing file

    $MyData = Import-Csv C:\PS\Output\VMTrendDB.csv | Select-Object week ,VMsTotal

    $HT = @{}

    foreach ($Data in $MyData) {

    $HT. Add($Data. Week , $Data . VMsTotal)

    }

    $HT = $HT | Tri # read on the Technet site as tri-objet does not change the actual table, but only the output. Thus uses only sort. $HT = HT Triedd | Sort = Name object AND object week type, they do not change my picture on the order of dates

     

    Function Créer-Chart() {

    Param(

      [String] $ChartType ,

    [String]$ChartTitle,

      [String] $FileName ,

    [,String]$XAxisName,

      [String] $YAxisName ,

    [Int]$ChartWidth,

    [Int]$ChartHeight,

    [HashTable]$DataHashTable

    [Sub] [Reflection.Assembly]:LoadWithPartialName ("System.Windows.Forms"( )

    [Sub] [Reflection.Assembly]:LoadWithPartialName ('System.Windows.Forms.DataVisualization'( )

    #Create our graphic object

    $Chart = new-object System.Windows.Forms.DataVisualization.Charting.Chart

    $Chart. Width = $ChartWidth

    $Chart. Height = $ChartHeight

    $Chart. Left = 10

    $Chart. Top = 10

    #Create a chartarea to profit and add this to the table

    $ChartArea = New-Object System.Windows.Forms.DataVisualization.Charting.ChartArea

    $Chart. ChartAreas . Add ($ChartArea)

    [void]$Chart. Series . Add("Data")

    $Chart. ChartAreas [0]. AxisX . Interval of = '1' #Set to 1 (default is auto) and allows all the values of the X axis appears correctly

    $Chart. ChartAreas [0]. AxisX . IsLabelAutoFit = $false;

    $Chart. ChartAreas [0]. AxisX . LabelStyle . Angle = "-45"

    #Add real data to our table

    $Chart. Series ["Data"]. Points . DataBindXY ($DataHashTable. ) Key , $DataHashTable. Values)

    if (($ChartType -eq "Pie") -or ($ChartType -eq "pie")) {

    $ChartArea. AxisX . Title = $XAxisName

    $ChartArea. AxisY . Title = $YAxisName

    $Chart. Series ["Data"]. ChartType = [System.Windows.Forms.DataVisualization.Charting.SeriesChartType]:Pie

    $Chart. Series ['Data'] ['PieLabelStyle'] = "Outside"

    $Chart. Series [« Data »] [« PieLineColor »] = "Black"

    $Chart. Series ['Data'] ['PieDrawingStyle'] = "Concave"

    ($Chart. Series ["Data"]. Points . FindMaxByValue()) ["Exploded"] = $true

    $Chart. Series ["Data"]. Label = ' #VALX = #VALY\n ' # make a X & Y Label of the data in the (useful for Pie chart) plot area (display the axis labels, use: Y = # ControlChars.LF = #VALX)

    elseif (($ChartType -eq "Bar") -or ($ChartType -eq "bar")) {

    #$Chart.Series ["Data"]. Sort ([System.Windows.Forms.DataVisualization.Charting.PointSortOrder]: descendant, "Y")

    $ChartArea. AxisX . Title = $XAxisName

    $ChartArea. AxisY . Title = $YAxisName

    # Find point with max/min values and change color

    $maxValuePoint = $Chart. Series ["Data"]. Points . FindMaxByValue()

    $maxValuePoint. Color = [System.Drawing.Color]:Red

    $minValuePoint = $Chart. Series ["Data"]. Points . FindMinByValue()

    $minValuePoint. Color = [System.Drawing.Color]:Green

    # make the bars in the 3d cylinders

    $Chart. Series [« Data »] [« DrawingStyle »] = "Cylinder"

    $Chart. Series ["Data"]. Label = '#VALY' # Label Y to the data in the plot (useful for the diagram bar) area

    else {

    Write-Host "no Chart Type has been defined. Try again and enter Pie or Bar for the ChartType parameter. The table will be created in the form of standard bar graphic chart for now. " -ForegroundColor Cyan

     

    #Set the title of the chart for the date and time

    $Title = new System.Windows.Forms.DataVisualization.Charting.Title

    $Chart. Titles . Add($Title)

    $Chart. Titles [0]. Text = $ChartTitle

    Graphic to a file #Save

    $FullPath = ($FileName + ".png")

    $Chart. SaveImage ($FullPath 'png'( )

    Write-Host ' saved chart in $FullPath"" " -ForegroundColor Green .

    back $FullPath

     

    Create Chart -ChartType bar ChartTitle - "machines virtual VMware in DC1" -FileName C:\inetpub\ELMO\Graphic\VMsTrendChart -XAxisName 'Date' -YAxisName 'number of VMs' -ChartWidth 800 -ChartHeight 800 -DataHashTable $HT

    All by setting the variable $HT, you define it as a Table of hash, sort or Sort-Object does not work on hash Tables, they work on arrays. Your definition is

    $HT = @ {}

    Use $HT = @)

    Instead, which will create a table and you would be able to define objects and then use the Sort-Object there. With Hash Tables, since they hold any objects you can not sort using Sort-Object.

  • Audit VIB

    $VIBinstalled = @ {}

    #Get - VMHost | Sort name | %{

    Get-VMHost | Sort name | %{

    $VIBinstalled.Add ($_, ((get-EsxCli_-_VMHost_$_).software.vib.list () |))

    Where-Object {$_.} {(Nom-comme "NetAppNasPlugin *"}) - not $null)}

    $VIBinstalled

    ==

    Please suggest how can I get this in xls? (works well without the export-csv)

    I tried:

    1. $VIBinstalled | exprot-csv c:\temp\temp.csv, gives only 1 rank.

    Try like this

    $VIBinstalled = get-VMHost | Sort name | %{

    $esxcli = get-EsxCli - VMHost $_

    $esxcli.software.vib.list () |

    where {$_.} {Name - like "NetAppNasPlugin *"} |

    Select @{N = 'Host'; E = {$esxcli. VMHost.Name}}, Name, Version, Vendor

    }

    $VIBinstalled | Export Csv report.csv - NoTypeInformation - UseCulture

  • How to change a script existing (ImageCatalog.jsx)

    Hello

    I use ImageCatalog.jsx to create pages in bulk with pictures on them, but they don't come out in the order of name.

    I found this existing forum that addresses how to do, but I don't know how to work with scripts - create a new document with the script text or replace text in the script exist (that I tried to do, but it did not work).

    Either way, I use Windows, not Mac.

    The current forum is here:Re: image sorting before import imageCatalog

    Any help would be appreciated.

    Thank you

    Amanda

    Hello

    Do not replace the line no 52 (inside a function myWinOSFileFilter (myFolder)):

    return myFilteredFiles;
    

    with this part of the code;

    return myFilteredFiles.sort(Names);
         function Names(a,b) {
              if (a.name.match(/^\d/) && b.name.match(/^\d/))
                   return parseInt(a.name) - parseInt (b.name);
              if (a.name > b.name) return 1;
              if (b.name > a.name) return -1;
              return 0;
              }
    

    Save (perhaps a copy...?) and run

    Jarek

  • Script to get VM list and count on the data store

    Hi all

    I have a script of lining that gives me the number of virtual machines on the data store, I was looking for both number of virtual machines more VM names too.

    Get-Datastore. Select Name, @{N = "NumVM"; E={@($_ | Get - VM). County}} | Sort name | Export-csv-path "C:\Users\userA\Desktop\Cluster_Host_Report\datastorevmcount.csv".

    the above script gives not only. or the number of virtual machines on the datastore in VC, can we get that all virtual machines are there on the VC data store.

    Thanks in advance a ton.

    The ForEach loop do not place anything on the pipeline, you can fix this with the call operator (and)

    & {{foreach ($ds in Get-data store)

    Get - VM - Datastore $ds |

    Select Name,

    @{N = "Datastore"; E = {$ds. Name}},

    @{N = "VM on the data store"; E = {$ds. ExtensionData.Vm.Count}}

    }} | Export Csv report.csv - NoTypeInformation - UseCulture

Maybe you are looking for