Powershell Graphs

Hi,
I'm trying to change the color of the values at the moment it does a yellow and blue and i would like red for disk used and green for disk free, but wondering what command i would need to input.
here is the code i have used some code i found on the internet in the meantime.
Function Create-PieChart() {
param([string]$FileName)
[void][Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
[void][Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms.DataVisualization")
#Create our chart object
$Chart = New-object System.Windows.Forms.DataVisualization.Charting.Chart
$Chart.Width = 400
$Chart.Height = 320
$Chart.Left = 10
$Chart.Top = 10
#Create a chartarea to draw on and add this to the chart
$ChartArea = New-Object System.Windows.Forms.DataVisualization.Charting.ChartArea
$Chart.ChartAreas.Add($ChartArea)
[void]$Chart.Series.Add("Data")
#Add a datapoint for each value specified in the arguments (args)
foreach ($value in $args[0]) {
Write-Host "Now processing chart value: " + $value
$datapoint = new-object System.Windows.Forms.DataVisualization.Charting.DataPoint(0, $value)
$datapoint.AxisLabel = "Value" + "(" + $value + " GB)"
$Chart.Series["Data"].Points.Add($datapoint)
$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"]
($Chart.Series["Data"].Points.FindMaxByValue())["Exploded"] = $true
#Set the title of the Chart to the current date and time
$Title = new-object System.Windows.Forms.DataVisualization.Charting.Title
$Chart.Titles.Add($Title)
$Chart.Titles[0].Text = "Disk Usage Chart (Used/Free)"
#Save the chart to a file
$Chart.SaveImage($FileName + ".png","png")
# Disk Space Fucntions
$Disks = @(gwmi Win32_LogicalDisk -Filter "DriveType=3")
foreach($disk in $Disks)
$UsedDisk = [System.Math]::Round(($disk.Size - $disk.freespace)/1gb)
$FreeDisk = [System.Math]::Round($disk.freespace/1gb)
# Where the graph is going to get saved too
Create-PieChart -FileName ((Get-Location).Path + "\chart-$computer") $FreeDisk, $UsedDisk
$ListOfAttachments += "chart-$computer.png"

Start with this and try to understand how and why it works the way it does. You will discover why your version fails.
#region Application Functions
function OnApplicationLoad {
return $true #return true for success or false for failure
function OnApplicationExit {
$script:ExitCode = 0 #Set the exit code for the Packager
#endregion Application Functions
# Generated Form Function
function Call-Demo-Chart_pff {
#region Import the Assemblies
[void][reflection.assembly]::Load("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")
[void][reflection.assembly]::Load("System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")
[void][reflection.assembly]::Load("System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")
[void][reflection.assembly]::Load("System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")
[void][reflection.assembly]::Load("System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")
[void][reflection.assembly]::Load("System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")
[void][reflection.assembly]::Load("System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")
[void][reflection.assembly]::Load("System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")
[void][reflection.assembly]::Load("System.ServiceProcess, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")
#endregion Import Assemblies
#region Generated Form Objects
[System.Windows.Forms.Application]::EnableVisualStyles()
$form1 = New-Object 'System.Windows.Forms.Form'
$button1 = New-Object 'System.Windows.Forms.Button'
$buttonOK = New-Object 'System.Windows.Forms.Button'
$InitialFormWindowState = New-Object 'System.Windows.Forms.FormWindowState'
#endregion Generated Form Objects
# User Generated Script
[void][Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms.DataVisualization")
$FormEvent_Load={
#TODO: Initialize Form Controls here
Function Create-PieChart{
param(
$VolumeID='C:',
[string]$FileName='c:\temp\chart'
#Create our chart object
$Chart = New-object System.Windows.Forms.DataVisualization.Charting.Chart
$Chart.Width = 400
$Chart.Height = 320
$Chart.Left = 10
$Chart.Top = 10
$form1.Controls.Add($Chart)
#Create a chartarea to draw on and add this to the chart
$ChartArea = New-Object System.Windows.Forms.DataVisualization.Charting.ChartArea
$Chart.ChartAreas.Add($ChartArea)
[void]$Chart.Series.Add("Data")
$disk=gwmi Win32_LogicalDisk -Filter "Name='$VolumeID'"
$FreeSpace=[System.Math]::Round($disk.FreeSpace / $disk.Size * 100)
$datapoint=New-Object System.Windows.Forms.DataVisualization.Charting.DataPoint(0, $FreeSpace)
$datapoint.AxisLabel='Free Space ({0:N1}GB)' -f ($disk.FreeSpace/1Gb)
$datapoint.Color
$Chart.Series["Data"].Points.Add($datapoint)
$UsedSpace=[System.Math]::Round(($disk.Size - $disk.freespace)/$disk.Size * 100)
$datapoint=new-object System.Windows.Forms.DataVisualization.Charting.DataPoint(0, $UsedSpace)
$datapoint.Color='red'
$datapoint.AxisLabel='Used Space ({0:N1}GB)' -f (($disk.Size-$disk.freespace)/1Gb )
$Chart.Series["Data"].Points.Add($datapoint)
$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"]
($Chart.Series["Data"].Points.FindMaxByValue())["Exploded"] = $true
#Set the title of the Chart to the current date and time
$Title = new-object System.Windows.Forms.DataVisualization.Charting.Title
$Chart.Titles.Add($Title)
$Chart.Titles[0].Text = "Disk Usage Chart for $VolumeID (Used/Free)"
#Save the chart to a file
$Chart.SaveImage($FileName + ".png","png")
$button1_Click={
Create-PieChart
# --End User Generated Script--
#region Generated Events
$Form_StateCorrection_Load=
#Correct the initial state of the form to prevent the .Net maximized form issue
$form1.WindowState = $InitialFormWindowState
$Form_Cleanup_FormClosed=
#Remove all event handlers from the controls
try
$button1.remove_Click($button1_Click)
$form1.remove_Load($FormEvent_Load)
$form1.remove_Load($Form_StateCorrection_Load)
$form1.remove_FormClosed($Form_Cleanup_FormClosed)
catch [Exception]
#endregion Generated Events
#region Generated Form Code
# form1
$form1.Controls.Add($button1)
$form1.Controls.Add($buttonOK)
$form1.AcceptButton = $buttonOK
$form1.ClientSize = '795, 522'
$form1.FormBorderStyle = 'FixedDialog'
$form1.MaximizeBox = $False
$form1.MinimizeBox = $False
$form1.Name = "form1"
$form1.StartPosition = 'CenterScreen'
$form1.Text = "Form"
$form1.add_Load($FormEvent_Load)
# button1
$button1.Location = '481, 487'
$button1.Name = "button1"
$button1.Size = '75, 23'
$button1.TabIndex = 1
$button1.Text = "button1"
$button1.UseVisualStyleBackColor = $True
$button1.add_Click($button1_Click)
# buttonOK
$buttonOK.Anchor = 'Bottom, Right'
$buttonOK.DialogResult = 'OK'
$buttonOK.Location = '708, 487'
$buttonOK.Name = "buttonOK"
$buttonOK.Size = '75, 23'
$buttonOK.TabIndex = 0
$buttonOK.Text = "OK"
$buttonOK.UseVisualStyleBackColor = $True
#endregion Generated Form Code
#Save the initial state of the form
$InitialFormWindowState = $form1.WindowState
#Init the OnLoad event to correct the initial state of the form
$form1.add_Load($Form_StateCorrection_Load)
#Clean up the control events
$form1.add_FormClosed($Form_Cleanup_FormClosed)
#Show the Form
return $form1.ShowDialog()
} #End Function
#Call OnApplicationLoad to initialize
if((OnApplicationLoad) -eq $true)
#Call the form
Call-Demo-Chart_pff | Out-Null
#Perform cleanup
OnApplicationExit
If you want separate charts you will need to generate each one independently.  If you want them all in one image file you will have to use image methods to add them or learn how to generate multiple chart sessions.  Look in gallery as there are
numerous examples.  Search and you will also fin more examples of how to do this.
¯\_(ツ)_/¯

Similar Messages

  • Graph API licence assignment failed due to a strange error

    Hi, I'm looking for help in resolving quite strange issue on license assignment to a newly created user.
    I use Graph API v.2013-11-08 (tried with API v.1.5 with the same result) calls like :
    "https://graph.windows.net/{domain}/users?api-version=2013-11-08" + JSON body
    "https://graph.windows.net/{tenant}/users/{userPrincipalName}/assignLicense?api-version=2013-11-08" + JSON body
    to create new accounts and to assign licenses to it. While  account is created successfully license assignment can't be done because of the next error:
    Server response: {"odata.error":{"code":"Request_ResourceNotFound","message":{"lang":"en","value":"Resource '{userPrincipaName}/{or sometimes something like User_<alphanumeric String>}'
    does not exist or one of its queried reference-property objects are not present."}}}
    Actually this error is strange because:
    a) the account exists on the moment of the license assignment call;
    b) passed skuid exists and is valid;
    c) the error appears only on production environment, meanwhile the same account (same URLs, same data, same license skuid) can be normally created on another environment;
    d) the error appears only for one domain. If I do test for other domains it works on all environments. It means that the problem is not with the code  (all the API calls are performed within Java Web App), but with something different that i can't find;
    e) This error doesn't allow assign licenses to any users within one problematic domain using API calls, but they can be assigned to the same accounts in PowerShell.
    Can you please advise where to look and/or what may cause such a problem?
    Thank you.

    Hi kshp,
    Thanks for posting in MSDN forum.
    This is forum for developers discussing developing issues about
    apps for Office.
    Based on the description, it seems that you are developing with
    Graph API. I would like to move it to
    Azure Active Directory forum.
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.
    Thanks for your understanding.
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to generate graph of total CSV used space ?

    hi ,
    I want to generate graph of total  Hyper-v CSV used space
    we use scom and i can get graph of each volume individually.
    I want to create a summation graph to know average growth rate
    Ramy Shaker

    I don't think this (http://gallery.technet.microsoft.com/scriptcenter/HyperV-Dash-Board-VM-Disk-299bac7d) will give you a graph of the total, but you should
    be able to look at the code and create your own summation.  What you are asking for is something that would be custom, so you are likely to have to create it on your own.  At least Shabarinath has written PowerShell code to get the information you
    want to summarize.
    . : | : . : | : . tim

  • Office 365 Basic end user authentication using API without using powershell

    I have an Office 365 username and password. I need to authenticate the credentials without using powershell. I mean by using REST API. I was able to authenticate the admin user using client id and secret along with their username and password.
    All I need is to authenticate an end user using his username and password using graph api or any REST api.

    So you probably need to ask in the dedicated O365 forum:
    http://community.office365.com/en-us/f/default.aspx
    Or maybe an Azure AD forum ?
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • Data ONTAP PowerShell Toolkit - Collect SYSSTAT type of information in CSV format

    As part of performance monitoring and analysis collecting performance data is crucial. Even though historical data could be collected with other monitoring tools we are often using SYSSTAT command to collect such data during short period of time of specific activity to analyze performance of NetApp array. Raw output of SYSSTAT command is useful but in some cases it needs to be presented in more visual form such graphs and charts. Producing Comma-Separated-Values file from SYSSTAT command output is long and painful process.
    Working with customer on performance analysis made me to develop PowerShell script which can capture such data in CSV format, so that data can be processed much faster and presented to customer in nice graphical format.
    Script Get-NaSysStat.ps1 uses Get-NaPerfCounter and Get-NaPerfData commandlets to extract performance data of NetApp array and store them into CSV file. Script uses next parameters:
      NaIP       : IP address or Name of the Filer
      NaUS      : Filer User Name. Default Value - root
      NaPW     : Filer User's Password. Default Value - password.
      Output     : Display/<File Name or Path>. Default Value - Display
      Interval     : Interval in minutes between samples. Default Value - 5 min.
      Iterations  : Number of sample iterations.
                   Default Value - 0, for no limit.
                   Execution can be ended by pressing Ctrl-C
    Example of calling script and screen output:
    PS C:\@work\Scripts> .\Get-NaSysStat.ps1 -NaIP 10.58.97.11 -NaUS root -NaPW <password> -Output Perf.csv -Interval 1
    Name                                 Value
    Time                                  4/7/2011 4:37:03 PM
    system_model                    FAS6070
    ontap_version                     NetApp Release 8.0.1RC2 7-Mode: Thu Oct 21 01:27:45 PDT 2010
    serial_no                            ***
    system_id                          ***
    hostname                           Array-01
    nfs_ops                              0.00
    cifs_ops                             0.00
    http_ops                             0.00
    fcp_ops                              8.50
    iscsi_ops                           0.00
    read_ops                           0.00
    sys_read_latency               0.00
    write_ops                           8.50
    sys_write_latency               0.32
    total_ops                            8.50
    sys_avg_latency                 0.32
    net_data_recv                     2.20
    net_data_sent                    9.25
    disk_data_read                  169.61
    disk_data_written               584.21
    cpu_busy                          2.12
    avg_processor_busy          1.49
    total_processor_busy         5.98
    num_processors                4
    Screen output is valuable part but parameter -Output tells script to save data into CSV file. Here is an example of CSV files:
    Time, avg_processor_busy, cifs_ops, cpu_busy, disk_data_read, disk_data_written, fcp_ops, hostname, http_ops, iscsi_ops, net_data_recv, net_data_sent, nfs_ops, num_processors, ontap_version, read_ops, serial_no, sys_avg_latency, sys_read_latency, sys_write_latency, system_id, system_model, total_ops, total_processor_busy, write_ops,
    3/28/2011 5:32:25 PM, 3.17, 0.00, 17.30, 6773.59, 21667.06, 1031.74, BP-SAN-04, 0.00, 0.00, 17.41, 284.66, 0.00, 12, NetApp Release 8.0.1 7-Mode: Wed Jan  5 17:23:51 PST 2011, 558.10, 700000501660, 0.83, 0.89, 0.75, 1873760944, FAS6280, 1031.54, 37.98, 473.44,
    3/28/2011 5:33:26 PM, 2.07, 0.00, 10.88, 8511.15, 16221.77, 869.91, BP-SAN-04, 0.00, 0.00, 6.29, 91.75, 0.00, 12, NetApp Release 8.0.1 7-Mode: Wed Jan  5 17:23:51 PST 2011, 656.24, 700000501660, 0.80, 0.79, 0.84, 1873760944, FAS6280, 869.70, 24.89, 213.46,
    3/28/2011 5:34:27 PM, 0.83, 0.00, 3.59, 3311.89, 5268.20, 131.53, BP-SAN-04, 0.00, 0.00, 1.84, 9.72, 0.00, 12, NetApp Release 8.0.1 7-Mode: Wed Jan  5 17:23:51 PST 2011, 50.07, 700000501660, 0.81, 1.05, 0.65, 1873760944, FAS6280, 131.35, 10.00, 81.28,
    3/28/2011 5:35:28 PM, 1.66, 1.70, 10.61, 2518.90, 3812.95, 241.06, BP-SAN-04, 0.00, 0.00, 12.41, 25.53, 0.00, 12, NetApp Release 8.0.1 7-Mode: Wed Jan  5
    Performance data is exported into Microsoft Excel for further analysis and nice performance graphs created within minutes:
    Script is attached to this post.

    i can't start this script - i have error:================C:\ps\Get-NaSysStat.ps1:52 row:10 + $Filer = Connect-NaController $NaIP -Credential $Creds +          ~~~~~~~~~~~~~~~~~~~~ + CategoryInfo          : ObjectNotFound: (Connect-NaControllertring) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException================what can i do?

  • How to get Google, Bing, Yahoo Knowledge Graph

    Hi All,
    I am new here. One of my friends is facing some problem. If somebody knows about search algorithm than please help us how can we get Google, Bing and yahoo knowledge graph or right search box, when somebody search our company or brand name, Like hp, dell,
    IBM's comming
    Thank you for your support.

    Hello,
    The TechNet Wiki Discussion Forum is a place for the TechNet Wiki Community to engage, question, organize, debate, help, influence and foster the TechNet Wiki content, platform and Community.
    Please note that this forum exists to discuss TechNet Wiki as a technology/application.
    As it's off-topic here, I am moving the question to the
    Where is the forum for... forum.
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book:
    Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • No Statistical Forecast showing on the Graph

    Hi All,
    We have an issue in that when you enter into the GRAPH to look at the forecasts, there is no line shown for Statistical Forecast though are settings are selected to show the line. However, when you enter design view, it is shows the statistical forecast. Then when you return back to the live view, the statistical forecast is showing now on the graph. Anyone else had this experience and can something be done to put it right.
    Mark

    Hi Garry,
    Since this forum is for powershell related issue, to solve the Excel VBA issue, I recommand you can post in Excel For Developers Forum for more effective support:
    http://social.msdn.microsoft.com/Forums/office/en-US/home?forum=exceldev
    Thanks for your understanding.
     If you have any feedback on our support, please click here.
    Best Regards,
    Anna
    TechNet Community Support

  • How to run a Discoverer graph once per day for my intranet site

    Hello,
    I would like to run a particular worksheet graph once per day, and place it on my intranet site. For performance reasons I don't want Discoverer to re-run the worksheet every time a user views the graph.
    Could someone kindly point me towards somewhere I can read about how to do this, or indeed offer some guidance ? I'd like to know how to generate my graph on a regular basis, and how I can construct a URL to link it into my intranet home page.
    I am very appreciative of any help,
    Steve - a Discoverer "newbie" :)

    Micheal
    What version are you running?
    In 5.31, what I would do is to have the main set M-F then use a different job (like a cmd echo or powershell write-host) on weekends that inserts the MF set at the time you want with a job event \ job insert action. This would override the time and execute when you want (you could probably just use one for  SAT, SUN). we do similar things to avoid maintenance windows.
    You might lose any downstream dependecies if the original is in a nested group but that might even work with a slight modification to the job depdency with the match occurance check box (relative to group, otherwise, for day) option
    It would be best if tidal let you add multiple calendars to one job, not sure if that is in the works but it should be on their radar.
    Marc

  • Cannot send email from Powershell on Mailbox Role

    Hi,
    I am trying to send an email from Powershell on Mailbox role of Exchange server. I have installed Symantec Mail Security on Mailbox Role.
    When I try to send email using Powershell, I got the following error.
    PS C:\a> Send-MailMessage -to [email protected] -Subject "Alert Closed.. Service is restarted on Computer" -from
    [email protected] -Body "The service was found stopped on Computer it was started automatically and it is now running normally." -bodyasHTML -priority High -SmtpServer smtp.domain.com
    Send-MailMessage : Service not available, closing transmission channel. The server response was: 4.3.2 Service not active
    At line:1 char:1
    + Send-MailMessage -to [email protected] -Subject "Alert Closed.. Service is ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (System.Net.Mail.SmtpClient:SmtpClient) [Send-MailMessage], SmtpException
        + FullyQualifiedErrorId : SmtpException,Microsoft.PowerShell.Commands.SendMailMessage
    This command is working fine on every server except exchange server (CAS, Mailbox). Firewall is off on the servers.
    Any help will be highly appreciated.
    Regards,
    Anees

    Hi,
    Please check the similar thread .
    http://social.technet.microsoft.com/Forums/exchange/en-US/ef699832-8da9-4709-9a50-c6223b13bd95/sendmailmessage-returns-the-server-response-was-432-service-not-available?forum=exchangesvrsecuremessaginglegacy
    smtp server (smtp.domain.com) is rejecting the connection from the
     Mailbox role of Exchange server.
    So please allow the mailbox server ip address on the smtp server's (i.e. smtp.domain.com)
    receive connector to get it done 
    Regards
    S.Nithyanandham
    Thanks S.Nithyanandham

  • Graph is not getting displayed in R12

    Hello folks,
    Cureently m working on R12 upgrade project.
    And we have a report which is working fine 12 but the graphs are not getting displayed as like 11i.
    Could you plz any one help how to fix the issue.
    Note: There is no error is coming up. But in the graph part , graph is not getting displayed.
    Regards,
    Krishna

    Hello folks,
    Cureently m working on R12 upgrade project.
    And we have a report which is working fine 12 but the graphs are not getting displayed as like 11i.
    Could you plz any one help how to fix the issue.
    Note: There is no error is coming up. But in the graph part , graph is not getting displayed.
    Regards,
    Krishna

  • How can I display data gathered in a subVI in a graph of the main VI?

    I have written a largish application (~50 VI's) which acquires, analyzes, display and saves data from an instrument with a built-in DAQPad. My problem is that my block diagram is rather messy by now. I'm using an event structure in my main VI which reacts to buttons being pressed on the front panel. During data acquisition (one frame of the event structure), I need to do a lot of data processing, and I'm displaying both raw data and analyzed data on the front panel. I'm using a lot of subVI's for this, but I always need to get data out of the subVI's again to display it on the front panel, cluttering my block diagram. It would be much nicer if the subVI could update the main VI's graphs and indicators. I just found two examples with control references which show how a subVI can modify e.g. a 3Dgraph of the main VI, but I'm unable to use this with normal graphs and charts - I can't find a way to update the actual data in the plots (I can scale the plot or color it blue etc - but I really want to change the data it's displaying, not color it blue). Is there anything I'm missing? Is there example code for this kind of problem?
    best regards
    Martin

    im assuming that you want to update your graphs and indicators as you are performing your DAQ, otherwise, you can pass out your value/s when the DAQ completes.
    I have attached a very simple example of using a reference to update your front panel graph.
    Hope this helps.
    Attachments:
    Reference Example(LV7.1).zip ‏17 KB

  • How can I display a SP 2010 out of the box workflow's task assignees via powershell?

    There are days where one of the 250+ workflows at the site has attempted to send email to someone no longer at the company.
    I would like to find a way to go through the farm and display all the list URLs that have workflows, and the mail addresses associated to the workflows.
    This way I can track down the workflows that need to be updated to remove the missing users.
    I have started a bit of script to do this. In my script, I just had a site collection - I figured that if I can get that to work, then surely wrapping another loop for the rest of the farm won't be bad. 
    However, for some reason, I am not seeing the output that I expected to show the mail addresses.
    I am hoping a different set of eyes might see what I am missing. It was my understanding that the AssociationData property was XML that contained information about the assignees for tasks, the carbon copy list, etc.
    Maybe I misunderstood something that I read?
    $outLoc = "d:\temp\wfdata.txt"
    $web = Get-SPWeb -Identity "http://myfarm/sites/it/"
    foreach ($list in $web.Lists)
     $associationColl=$list.WorkflowAssociations
     foreach ($association in $associationColl)
           $association.AssociationData | Out-File $outLoc
    $web.Dispose()
    I want to thank you for the helpful tips that so often appear on this list. They help me when I am reading over old threads to figure out what to do. I am hoping that tips on this thread will likewise be helpful.

    Hi,
    With
    SPWorkflowAssociation.AssociationData property, we can get the assignees’ information. Your script can
    be able to retrieve a XML format data which contains the user name we need:
    So the next step would be getting the user name by parsing the XML data we got.
    The two links below will show how to parse XML with PowerShell:
    http://stackoverflow.com/questions/18032147/parsing-xml-using-powershell
    http://blogs.technet.com/b/heyscriptingguy/archive/2012/03/26/use-powershell-to-parse-an-xml-file-and-sort-the-data.aspx
    With the user name, we can get the
    Email property of an user with the scripts as the link below provided:
    http://davidlozzi.com/2012/03/07/using-powershell-to-access-sharepoint-sites/  
    Best regards
    Patrick Liang
    TechNet Community Support

  • How can I print out the graph I need only, without the controls and indicators?

    I'm doing some programming in LABVIEW. I need to print out only the graph, without the buttons, controls, indicators. I tried to look for such a function in LABVIEW, but in vain. How can I achieve the result I expect in my programming?

    Hi Fenny,
    you should use the report generation functions to create a report containing your graph image and print it.
    Take a look at the Sample Test Report.vi you find in the report examples of LV.
    Just look at the part of the diagram where it is used Append Control Image to report.vi (in the center of the report functions chain); a graph reference is wired to the Ctrl reference input ( to create a reference of your graph right click on it and select create reference).
    Let me know if you need more help,
    Alberto

  • Hiding a hierarchy column in graph view

    Hi All,
    In an compound layout I would like to have pivot view and bar chart view.
    There are two hierarchy columns in criteria. These column should display in pivot view.
    My requirement is to hide the hierarchy columns in Bar chart view and can we apply separate selection steps for each view.
    Kindly help me..
    Thanks,
    Haree

    Hi,
    Edit the pivot table and graph and at the below you can see the selection steps for the individual components. So that you can give separately for each of the components.
    Hope this helped/ answered.
    Regards
    MuRam

  • Silver graph performanc​e (apparent serious 2011 flaw)

    I noticed that cpu usage was quite high for some VIs and ended up finding out with simple comparison benchmarks (using performance and memory test) that a VI with the new silver graph runs about 25 times slower than a vi with the old, uh, modern graph at default graph size.  For a graph widened to cover a wide screen, it decreased to about 190 times slower, a horrible crawl.  For the test I just generated random numbers put into a 2000 element 1D array to be graphed (couldn't attach the test VIs for some reason). 
    The silver graph looks nice, but what in the world is going on here?
    Jesse

    Nice to know
    Regards,
    Even
    Certified LabVIEW Associate Developer
    Automated Test Developer
    Topro AS
    Norway

Maybe you are looking for

  • Status Change for Purchase order in Process Purchase order

    Hi All, We have implemented SRM 4.0 with Extended Classic scenario. SRM does provide standard status for Process Purchase order worklist (such as Ordered, Held, Error in Process etc.). Is there any BADI i can use to overright my own status message fo

  • Sort by EXIF Date/Time

    Would be nice to be able to srt by EXIF Date Time Original or EXIF Date Time Digitized. The existing file based Date Time Create or Date Time Modified may not be accurate. Some of our events (like a wedding) have photographs taken from a number of ph

  • OAS 4.0.8.1 working on RH linux 6.1 ????

    I already have Oracle8i working fine on RH 6.1 but there is no way to put OAS 4.0.8.1 to work properly. It shows a message when starting a process (I already applied the patch available on oracle ftp site but it didn't work). Should I wait for a new

  • Is there a "Cisco Recommended" wireless headset for the SPA 504G Phones?

    Hello, Is there a "Cisco Recommended" wireless headset for the SPA 504G Phones? Please let me know.  Thank you, Paul

  • Can't view 2-up spreads in Pages 5!!

    This is a major mess-up. I can't view, let alone edit, my Pages document in 2-up mode since upgrading to Pages 5. If Apple's really interested in attracting pro customers, they need to hire pros as consultants during the UI and features develeopment