Browsing articles Appassure - found some useful powershell scripts

Sometimes when I have a few minutes I decide to see what are the most recent KB articles for spare appassure.  Sometimes they have a few useful scripts, YMMV.

Thought I would like to highlight these two scripts, because they produce some very nice reports/graphs which can be easily added to a central intranet or something that allows you to monitor the current state (or a State over a period of 'x' days.

support.Software.Dell.com/.../147582

How to generate an AppAssure At-A-Glance remote reports for large environments (several kernels, remotely)

support.Software.Dell.com/.../147577

How to generate reports of At-A-Glance AppAssure for small environments (core, local)

Note that the article refers to a nonexistent article, he should (probably) see 147577

Anyway, just thought I'd share with you as I suspect few of us regularly visit pages KB, they do not have some useful info.

Note, as WES has stated in the past, they do not support powershell, if it means that these scripts will break with newer versions or not, I can't say, I hope that they will be

Bravo for that. These generate a nice report which can warn us at least failures trends.

Tags: Dell Tech

Similar Questions

  • How to enable HTML access in the office pool by using PowerShell script?

    Hello

    I use to create pools of auto related clones using a script PowerShell/PowerCLI Office. The script provides all the parameters required for the Add-AutomaticLinkedClonePool cmdlet and there is a lot of it! Creating pools in this way allows me to save about 100 clicks per pool.

    Now I want to enable access HTML for each pool, but I can't seem to find the name of the parameter.

    I checked the properties of the object returned by Get-pool-pool_id w7mw620 and compared to other similar properties office pool where access HTML has been disabled. I coulnd't not see any differences in the property values, which seem to make a significant difference for the setting "enable access HTML '.

    There was a property named "calculatedValues", which was true for one and False for the other office pool. I don't know what is the meaning of this property. Help the cmdlet Add-AutomaticLinkedClonePool or AutomaticLinkedClone-set to list this property.

    So... How can I set the property to allow access HTML from a PowerCLI script?

    Hello, in response to my own question again...

    On the basis of the above VBScript example, I invented this PowerShell code snippet that does the work of activation / deactivation of HTML access to one or more funds pools, by adding or removing 'BLAST' to the allowed protocols. It's a beast of a code, and I think that this code can still be optimized/shortcut. It works for me. It allows the use of wildcards to select a number of pools of office to toggle HTML access to.

    To use it, just customize two variables constant to match your environment:

    $dn must maintain the name of the root of your ADAM database. I think that this name is the default, but I don't know about you.

    $domain must maintain the computer name or address IP and/or port number where the ADAM database is stored. You must also have sufficient permissions to connect if it is something else then "localhost".

    function Set-BCPoolHtmlAccess ([string]$Pool_id, [boolean]$HtmlAccess) {
    <#
        .SYNOPSIS
            enables or disables HTML Access to the given VMware View desktop pool
        .DESCRIPTION
            This function enable or disable HTML Access to a desktop pool, by modifying
            the "pae-ServerProtocolLevel" property of the associated object in the ADAM
            database via LDAP. This property is a multi-valued attribute contains a array
            of string, which designates
            by which protocol desktops can be accessed. It valid values are "PCOIP",
            "RDP" and "BLAST". Controlling the existance of the string "BLAST" determines
            if the pool is accessible through HTML Access. The parameter Pool_id determines
            which object is modified.
        .EXAMPLE
            Set-BCPoolHtmlAccess "W7ST620" $True
        .PARAMETER Pool_id
            the pool_id of the desktop pool of which to enable or disable HTML access. Wildcards are allowed!
        .PARAMETER HtmlAccess
            Boolean value to set the HTML Access to.
        .OUTPUT
            None
        .NOTES
            Written by Paul Wiegmans on 31-8-2014
            "pae-ServerProtocolLevel" is a multivalued attribute, which is a little difficult to
            write correctly to the object.
            http://www.selfadsi.org/write.htm
                    Google "powershell ldap multi value property"
            http://jdhitsolutions.com/blog/2011/12/updating-multi-valued-active-directory-properties-part-1/
    #>
        $dn = "DC=vdi,DC=vmware,DC=int"   # root OU of VMware View ADAM database (CUSTOMIZE ME)
        $domain = "LDAP://localhost:389/$dn"  # connect to the ADAM database (CUSTOMIZE ME) 
    
        $root = New-Object System.DirectoryServices.DirectoryEntry $domain
        $query = New-Object System.DirectoryServices.DirectorySearcher
        $query.searchroot = $root
        $query.filter = "(&(objectCategory=pae-DesktopApplication)(cn=$pool_id))"
        $pools = @($query.findall())
        $propname = "pae-ServerProtocolLevel"
    
        foreach ($pool in $pools) {    
    
            $poolobj = [ADSI]$pool.GetDirectoryEntry()
            $protocols = $poolobj.$propname
            $desiredprotocols = @()
            foreach ($protocol in $protocols) {
                if ($protocol -ne "BLAST") {
                    $desiredprotocols += $protocol  # save a list of all existing protocols
                }
            }  
    
            if ($HtmlAccess) {
                $desiredprotocols += "BLAST"
            }
            write-verbose ("Desktop pool " + $poolobj.name + " gets protocols: "+$desiredprotocols)
            $poolobj.$propname = $desiredprotocols
            #$poolobj.$propname = @("PCOIP","RDP","BLAST")  # to reset to normal values
            $poolobj.CommitChanges()
        }
    }
    
    $pool_id = "W7S*"                  # pool_id of pool to set protocols of
    Set-BCPoolHtmlAccess $pool_id $false
    Set-BCPoolHtmlAccess $pool_id $true
    

    Have fun

    Post edited by: Sikkepitje

  • How to change power mode using powershell script?

    In Windows 7, there are 2 available for selection (balance or eco) power switch mode.

    I would like to know if it is possible to script powershell code to pass these 2 modes of window 7 or not.

    Does anyone have any suggestions?

    Thanks in advance for your suggestions

    Hello

    You want to know about the encoding of a PowerShell script, I recommend that you post the question on the Forum on TechNet script where you will have the best support for any problem related to scripts.

    http://social.technet.Microsoft.com/forums/scriptcenter/en-us/home?Forum=iTCG

    Thank you.

  • Remove the device detached using powershell scripts.

    $E01 = get-esxcli - vmhost test01

    $ED01 = $e01.storage.core.device.detached.list () # I have 10 devices here

    $e01.storage.core.device.detached.remove ($ED01) error as follows

    PowerCLI C:\scripts > $e01.storage.core.device.detached.remove ($ed01)
    A specified parameter was not correct.
    method
    On line: 1 char: 41
    + $e01.storage.core.device.detached.remove < < < < ($ed01)
    + CategoryInfo: InvalidOperation: (:)) [], RuntimeException)
    + FullyQualifiedErrorId: MethodInvocationException

    How the list of devices in the individual list that needs to be removed, loop

    OK, some possibilities.

    (1) all the LUNS in the text file

    $luns = Get-Content luns.txt $luns | %{
       $e01.storage.core.device.detached.remove($_)
    }
    2) The first 5 LUNs 
    
    $e01.storage.core.device.detached.list() | Select -First 5 | %{
       $e01.storage.core.device.detached.remove($_)
    }
    3) The last 5 LUNs
    $e01.storage.core.device.detached.list() | Select -Last 5 | %{
       $e01.storage.core.device.detached.remove($_)
    }
    4) 5 randomly selected LUNs
    
    $e01.storage.core.device.detached.list() | Get-Random -Count 5 | %{
       $e01.storage.core.device.detached.remove($_)
    }
    
  • 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

  • I have a macbook pro: 2.3 GHz Intel Core i5, 4 GB of 1333 MHz DDR3 Ram. 10.7.5 version. When I open some websites, I get a message that web browser is obsolete. I use safari. When I do a software update, it says that the software is up-to-date. Help, plea

    I have a macbook pro: 2.3 GHz Intel Core i5, 4 GB of 1333 MHz DDR3 Ram. 10.7.5 version. When I open some websites, I get a message that web browser is obsolete. I use safari. When I do a software update, it says that the software is up-to-date. Help, please.

    Safari maxes in a version of Mac OS x.  New version of Mac OS x would be needed for the new version of Safari.

    Firefox is not limited within an OSX and probably has a version that works.  Chrome may as well but is a Devourer of resources.  Opera is a third option.

  • PowerShell script error


    Hi guys

    I use this script to deploy the virtual machines automatically on esxi hosts. but I my get this erroe. Some experts can help me solve this problem.

    SE connect-VIServer 192.168.

    $VirtualMachinesCSV = "C:\Scripts\Deploymultiplevms.csv".
    $strDescription = "Creation of the model" and CSV by Chetan Rao

    $VirtualMachinesDetails = import-CSV $Deploymultiplevms.csv
    $VirtualMachinesDetails | % {New-VM-name $_.} Name - model $(Get-modèle $_.) (Model) - VMHost $(Get-VMHost $_.) DestinationHost) - OSCustomizationSpec $(Get-OSCustomizationSpec $_.) CustomSpec)}
    $VirtualMachinesDetails | % {Set-VM - VM $_.} Name - NumCpu $_. NumCpu - MemoryMB $_. {MemoryMB Description $strDescription - confirm: $false}
    $VirtualMachinesDetails | % {Start-VM - VM $_.} {Name - confirm: $false}


    [vSphere PowerCLI] C:\Scripts >.\deploymultiplevms_2.ps1

    Name
    Use of the port

    ----
    ----                       ----

    1. 192.168.
      443 vqaward\da_cr

    Import-Csv: Impossible bind argument to the "Path" parameter
    because it is null.

    C:\Scripts\deploymultiplevms_2.ps1:7 tank: 37

    + $VirtualMachinesDetails = import-CSV < < < < $Deploymultiplevms.csv

    +
    CategoryInfo: InvalidData: (:))
    [Import-Csv], ParameterBindingV

    alidationException

    + FullyQualifiedErrorId: ParameterArgumentValidationErrorNullNotAllowed, M


    icrosoft.PowerShell.Commands.ImportCsvCommand

    Get-model: Impossible to validate the argument on the parameter 'name '.
    The argument is naked

    He's or is empty. Provide an argument that is not null or empty
    then try the comm

    and once again.

    C:\Scripts\deploymultiplevms_2.ps1:8 tank: 75

    + $VirtualMachinesDetails | % {New-VM-name $_.} Name
    -Model $(Get-modèle <<)

    < <
    $_. (Model) - VMHost $(Get-VMHost $_.) DestinationHost)
    -OSCustomizationSpec

    $(Get-OSCustomizationSpec $_.) CustomSpec)}

    +
    CategoryInfo: InvalidData: (:))
    [Get-model], ParameterBindin


    gValidationException

    +
    FullyQualifiedErrorId: ParameterArgumentValidationError, VMware.VimAutom


    ation.ViCore.Cmdlets.Commands.GetTemplate

    Get-VMHost: Impossible to validate the argument on the parameter 'name '.
    The argument is null

    or is empty. Provide a
    argument that is not null or empty, and then try the command

    d again.

    C:\Scripts\deploymultiplevms_2.ps1:8 tank: 110

    + $VirtualMachinesDetails | % {New-VM-name $_.} Name
    -Model $(Get-modèle $)

    _. (Model) - VMHost $(Get-VMHost <<<< $_.) OSCustomizationSpec - DestinationHost)

    $(Get-OSCustomizationSpec)
    $_. CustomSpec)}

    +
    CategoryInfo: InvalidData: (:))
    [Get-VMHost], ParameterBindingV

    alidationException

    +
    FullyQualifiedErrorId: ParameterArgumentValidationError, VMware.VimAutom


    ation.ViCore.Cmdlets.Commands.GetVMHost

    Get-OSCustomizationSpec: Impossible to validate the argument on
    parameter 'name '. The arg

    MSP is null or empty. Provide an argument that is not null
    or empty, then t

    Ry the command again.

    C:\Scripts\deploymultiplevms_2.ps1:8 tank: 177

    + $VirtualMachinesDetails | % {New-VM-name $_.} Name
    -Model $(Get-modèle $)

    _. (Model) - VMHost $(Get-VMHost $_.) DestinationHost)
    -OSCustomizationSpec $(Get

    OSCustomizationSpec - < < < < $_. CustomSpec)}

    +
    CategoryInfo: InvalidData: (:))
    [Get-OSCustomizationSpec], Para


    meterBindingValidationException

    +
    FullyQualifiedErrorId: ParameterArgumentValidationError, VMware.VimAutom


    ation.ViCore.Cmdlets.Commands.GetOSCustomizationSpec

    New-VM: could not validate the argument on the parameter 'name '. The
    argument is null or

    1. Provide an argument that is not null or empty, then
      Try the ag command
    2. Ain.

    C:\Scripts\deploymultiplevms_2.ps1:8 char: 42

    + $VirtualMachinesDetails | % {New-VM-name
    < < < < $_. Name - model
    $(Get-Templ)

    ate $_. Model)
    -VMHost $(Get-VMHost $_.) OSCustomizationSpec - DestinationHost)

    $(Get-OSCustomizationSpec $_.) CustomSpec)}

    +
    CategoryInfo: InvalidData: (:))
    [New-VM], ParameterBindingValid

    ationException

    +
    FullyQualifiedErrorId: ParameterArgumentValidationError, VMware.VimAutom


    ation.ViCore.Cmdlets.Commands.NewVM

    Set-VM: Impossible to validate the argument on the parameter "NumCpu. The
    argument is null,

    empty, or an element of the argument collection contains a
    null value. Provide a

    collection that is
    does not contain null values and retry the command agai

    1. n.

    C:\Scripts\deploymultiplevms_2.ps1:9 char: 56

    + $VirtualMachinesDetails | % {Set-VM - VM $_.} Name - NumCpu
    < < < < $_. NumCpu-memo

    ryMB $_. MemoryMB-Description $strDescription
    {- Confirm: $false}

    +
    CategoryInfo: InvalidData: (:))
    [Game - VM], ParameterBindingValid

    ationException

    +
    FullyQualifiedErrorId: ParameterArgumentValidationError, VMware.VimAutom


    ation.ViCore.Cmdlets.Commands.SetVM

    VM-start: 07/01/2014 14:49:35 Start-VM value is not found for the

    required parameter
    VM

    C:\Scripts\deploymultiplevms_2.ps1:10 char: 38

    + $VirtualMachinesDetails | % {Start-VM
    < < < <-VM $_. Name
    {- Confirm: $false}

    +
    CategoryInfo: NotSpecified: (:))
    [Start-VM], VimException

    +
    FullyQualifiedErrorId: Core_BaseCmdlet_UnknownError, VMware.VimAutomatio


    n.ViCore.Cmdlets.Commands.StartVM

    [vSphere PowerCLI] C:\Scripts >

    Thanks a lot guys

    Hey,.

    your output is a bit long and not very readable.

    But these two lines should be your first problem:

    $VirtualMachinesCSV = "C:\Scripts\Deploymultiplevms.csv".

    $VirtualMachinesDetails = import-CSV $Deploymultiplevms.csv

    You try to import a mix of variable and file name

    $VirtualMachinesDetails = import-CSV $VirtualMachinesCSV

    suitable for the tip.

    Tim

  • Get-QADComputer fails if run PowerShell script through Orchestrator workflow

    I use the "Get-QADComputer" cmdlet in my .ps1 script that is supposed to run via Orchestrator.  I have several PowerShell scripts started by Orchestrator and run on a host windows without any problem.  For this script, I have these 2 commands and still error.  The script does not error when run locally.

    Add-PSSnapin Quest.ActiveRoles.ADManagement - ErrorAction SilentlyContinue

    $Computer = get-QADComputer-identity "server01" | where {$_.name - eq "server01"}

    In troubleshooting, I ran Get-PSSnapin and can see that the snap for AD is loaded successfully.  I tried Connect-QADService and who also gives the same error, although it works very well on place.

    I use vCO 5.1.1. device.   On the hosts Windows where are the scripts PowerShell, the AD snap is version 1.6.0.2683.

    Here is the error in the logs Orchestrator...

    PowerShellInvocationError: Errors found during execution of script

    System.Runtime.InteropServices.COMException (0x8007054B): the specified domain does not exist or could not be contacted.

    at Interop.ActiveDs.IADsOpenDSObject.OpenDSObject (String lpszUserName, String lpszPassword, String lpszDNName, Int32 lnReserved)

    to Quest.ActiveRoles.ArsPowerShellSnapIn.DirectoryAccess.AdsiDirectory.NativeBind (adsPath String, AuthenticationTypes bindFlags)

    at Quest.ActiveRoles.ArsPowerShellSnapIn.DirectoryAccess.AdsiDirectory.BindToObject (String dn)

    at Quest.ActiveRoles.ArsPowerShellSnapIn.DirectoryAccess.ConnectorFactory.Create (String serverName, user String, SecureString password, type of ConnectorType)

    to Quest.ActiveRoles.ArsPowerShellSnapIn.Powershell.Cmdlets.ConnectionAwareCmdlet.EstablishConnection (ConnectionProperties connectionProperties)

    at Quest.ActiveRoles.ArsPowerShellSnapIn.Powershell.Cmdlets.ConnectionAwareCmdlet.GetContainer)

    at Quest.ActiveRoles.ArsPowerShellSnapIn.Powershell.Cmdlets.GetUserCmdlet.BeginProcessing)

    at System.Management.Automation.Cmdlet.DoBeginProcessing)

    at System.Management.Automation.CommandProcessorBase.DoBegin)

    (Name of the dynamic Script Module: invokeScript #14)

    Thanks for the info.  I use the workflow "Invoke an external script" to run many of my host admin PowerShell scripts.  It is easier for me to keep all .ps1 files in one place and not import them into Orchestrator.  The article prompted me to switch my connection to host basic Powershell to Kerberos.  To do this, I had to update /etc/krb5.conf on the device of the vCO.  I've referenced VMware KB2036986 to work around the problem "unable to get kdc for the Kingdom.  This issue was mainly because we couldn't have krb5 configured previously.

    Now, I got a different error during execution of the workflow after bouncing vCO.

    System.NullReferenceException: Object Reference not set to an instance of an object.

    Has pointed out me the need to first make the connection AD.  He has not worked before without Kerberos authentication.  Once I added these lines of code, Get-QADComputer finally worked without error!   Thanks for the help.

    $pass = ConvertTo-SecureString - AsPlainText-Force - String "password".

    Connect-QADService - "example.com\serviceaccount" ConnectionAccount - ConnectionPassword $pass

    $Computer = get-QADComputer-identity "server01" | where {$_.name - eq "server01"}

    Disconnect-QADService

  • How to run multiple Powershell scripts in PowerCLI

    I have a large number of scripts that I would run into lots of PowerCLI. I found a way to call some Powershell scripts from a file of commands like the following (with the permission of Jan Egil Ring), which works very well except for scripts PowerCLI where a connection to a VC or ESX Server must be established before the script can be executed:

    PowerShell-command '& C:\MyScripts\script1.ps1 '.

    PowerShell-command '& C:\MyScripts\script2.ps1 '.

    PowerShell-command '& C:\MyScripts\script3.ps1 '.

    If a VC connection is on using Connect-VIServer PowerCLI, then scripts can each be run from the prompt without connection information and credentials, however, if scripts are placed in a file of DOS commands, it is necessary to place an order Connect-VIServer in each script, which will prompt you for credentials every time , so if I have 10 scripts, I will have to enter the credentials of 10 times. Is it possible to establish the connection and then run a set of Powershell scripts, or is there a way to integrate the identification information in the script so that it will connect to the VI server without asking confirmation?

    Thank you

    Ed Z

    2 options 1 persist credentials on disk, you can find the code on poshcode.org to do.

    Option 2 is to use - Session when using Connect-VIServer. The session is stored in the variable $defaultVIServer. If write you it to a file you can load this file and re-use this same session, assuming that it is still valid (i.e. it has not expired.)

  • Publishes a PowerShell Script

    I have a system which gives some issues where I have to restart some services from time to time.

    The problem is that these are problems on the server for a period of work of China - so I'm Home sleep away.

    I can easily restart services using PowerShell, so I thought I have publish a PowerShell script that one guys can run from AppPortal.

    Thought it would be easy (probably is and my brain doesn't work)...  Publish path to powershell (C:\windows\...) and use the file "path\to\script.ps1" as an argument - however, I can't seem to make it work.

    So, how in the heck would I do this?

    Hey Mike,

    Is this a problem of execution policy? You can try adding '-ExecutionPolicy Unrestricted ' at the command line?

    Adam

  • Newbie question - tide may run a remote PowerShell script or BAT file?

    My first post.  I am new to raz, but I've had experience with other planners.

    I have a PowerShell script that must be run on a remote computer.  All the script needs software is installed on this computer.

    In addition, I need the script runs under a service account.  Is it possible and if yes, how can I go about it?

    This work will be be launched manually whenever this is necessary.

    Sure. There are some screenshots. A variable one, I used for the location of the folder on the server of tide (not required but I use a lot of scripts). One for the command of tide itself. The last one is the script runs remotely on windows work. Let me know if they don't make sense.

  • Orchestrator + powershell script: variable

    Hello

    I want to create a workflow with an external script powershell and "scriptable task."

    First step:

    1. I set my input parameters in the "Task Scriptable" and "script" my variable entry for the external script powershell tab: scriptArgs = Variable1 + "" + Variable2;

    2. I get my variable in my outside first PowerShell script-> at this point it's OK

    3. in my outside first powershell script, I create variables $var1 and $var2

    Second step:

    1. I created a 'Scriptable task' and I want to get an exit powershell ($var1 and $var2) as a starter for my 'scriptable task. "

    I don't know how passing a powershell variable to any other 'workflow element' or 'scriptable task. "

    Invoke an external PS workflow script returns as objects of the output of type PowerShell:PowerShellRemotePSObject.

    You can use it to extract data from the output of the powershell script. Example is provided with the plugin inside the folder library/PowerShell/samples/list directory content workflow

    You can use PowerShell:PowerShellRemotePSObject to receive the output as raw xml, PowerShell:PowerShellRemotePSObject.getXml() data or using getRootObject() directlyas objects of type PowerShellPSObject, and then use getProperty (xxx)...

    Here is an excerpt of the example workflow to browse the list of files returned as a result of the invocation of the ps script.

      // Get PowerShellRemotePSObject
      var psObject = invResult.getResults();
      var directories = psObject.getRootObject();
    
      var isList =  directories instanceof Array
      if ( isList ){
      for (idx in directories){
      var item = directories[idx];
      if ( item.instanceOf('System.IO.FileInfo') ){//check type of object
      System.log( item.getProperty('FullName') );//extract value from result
      }
      }
      } else {
      System.log( directories.getProperty('FullName') );//extract value from result
      }
      }
    ...
    
  • In the Powershell script execution error: could not find the type [ordered]: make sure that the assembly containing this type is loaded.

    People,

    I am trying to load and run the PowerShell script of PowerCLI Module to check the CPU, memory and storage overcommitment. VMware PowerCLI Blog - VMware Blogs but somehow it is always stopped with the error: cannot find the [ordered] type: make sure that the assembly containing this type is loaded.

    Here are some of the diagnostic result:

    $PSVersionTable

    Value name

    ----                           -----

    PSVersion 2.0

    PSCompatibleVersions {1.0, 2.0}

    BuildVersion 6.1.7601.17514

    PSRemotingProtocolVersion 2.1

    WSManStackVersion 2.0

    CLRVersion 4.0.30319.1026

    SerializationVersion 1.1.0.1

    Get-ChildItem ' HKLM:\SOFTWARE\Microsoft\NET frame Setup\NDP'-recurse |

    Get-ItemProperty-name of the EA - 0 Version |

    Where {$_.} PSChildName-match ' ^ (?) (S) \p {L} "} |"

    Select PSChildName, Version

    PSChildName Version

    -----------                       -------

    v2.0.50727 2.0.50727.5420

    3.0.30729.5420 v3.0

    Windows Communication Foundation 3.0.4506.5420

    Windows Presentation Foundation 3.0.6920.5011

    3.5.30729.5420 v3.5

    Customer 4.0.30319

    4.0.30319 full

    Get-PowerCLIVersion

    PowerCLI Version

    ----------------

    VMware vSphere PowerCLI 5.8 Release 1 build 2057893

    ---------------

    Versions of the snap

    ---------------

    Build VMWare AutoDeploy PowerCLI component 5.5 1983942

    Build VMWare ImageBuilder PowerCLI component 5.5 1983942

    Build license of VMware PowerCLI component 5.5 1265954

    Build VMware Storage PowerCLI component 5.8 2057894

    Build VDS's VMware PowerCLI component 5.8 2031581

    Build VMware vSphere PowerCLI component 5.8 2031581

    I installed Windows6. 1 -KB2819745- x 64 - MultiPkg.msu to enable Powershell v4.0 on my Windows 7 laptop, but still the script cannot be executed with the above error message.

    Any kind of aid and assistance would be greatly appreciated.

    Thank you

    Hello-

    Ah, yes--it is that review.

    Another option, because you are not able to go to .NET FX 4.5, is to remove the parts "[ordered]' of the code that you use.  This type Accelerator makes the hash table a dictionary sorted.  The effect to remove that from the code will be that the properties of the object that results will not be in the order in which they appear in the code.

    And, another option would be to install PowerShell v3 (the version in which the '[ordered]' feature has been added').  That shouldn't require a FX .NET newer than what you showed as having already installed on this computer.  However, as we have seen with the PSSnapin and PSv4 Exchange, you want to make sure that the PSSnapins / Modules you want to use are compatible with PowerShell v3.

  • Struggling to run Powershell scripts / commands

    Hi all!

    I'm fighting to get the Powershell vCO workflow.  I think I missed something really obvious, but I can't see it...

    I did the set Kerberos in place on the line of my vCO 5.5.2 machine.  I added a Powershell v2 host using VMWare provided Powershell 1.0.4 workflows plugin install, Kerberos authentication and using a shared account (mine, I know that I am an admin on Windows Server).  I assured the Kerberos authentication and unencrypted traffic is accepted on the Powershell host.  If I validate the object created at the CVO, he says it's fine.

    When I come to run another VMware provided workflow, I get responses to error because the workflow doesn't seem to be properly trained, or I get a null response.  When I run a workflow, I can see my account by logging in the Windows Server 2008 security log, so I'm pretty confident that the basic connection and portions of Kerberos are all ok.

    I just tried to simplify a VMware provided workflow, to make it as a possible base (code below).  I always get a Null response.  Anyone have any ideas why?  Or did someone is able to provide the code for a very simple Powershell-based workflow that they know works so I can test it on my set up?

    The VMWare-based simple powershell script provided one to get the contents of some directories and the values that I use - it returns null:

    the hostentry, type: PowerShell:PowerShellHost, value: < myPowershellHostSelectedFromPluginManually >

    Directoryentry, type: String, value: I manually enter $home.  Or C:.  Or C:\Windows.  Or any other directory I know there is that my user account has no light problem.

    output of the result, type: string, value: regardless of the ("DIR" + directory) output >

    var Sess;

    connect to the host

    Sess = host.openSession)

    Send the command in powershell

    sess.addCommandFromString ("dir" + directory)

    invoke the command

    invResult = sess.invokePipeline ();

    get the result

    Result = invResult.getResults)

    Send to open a session

    System.log ("Result is" + result)

    Thank you very much in advance!

    And there we go...  Who sets: powershell.exe wasn't in the path of the Windows host!

    Thanks for the help everyone, especially igaydajiev for giving me the pointer of the final to my answer!

  • Running Powershell script with ESXCLI commands via a scheduled task in Windows 2012 does not work.

    I'm trying to run a powershell script of a scheduled task in Windows 2012. The script calls the commands ESXCLI and ends with success (exporting to a CSV file) but the file has no data inside.  If I run the script manually without the scheduled task file has all the I expect to exit.

    I wonder if there is a framework with Powershell or a PSSnapin I need to add to the script for it to run via a scheduled task.  Has anyone done this before with the ESXCLI commands?

    panhvr - you may to something.  The process account that I use to run this script has only read-only access in vCenter.  I logged on the server I am running these reports with the process ID and tried to run the script.  He gave me errors indicating permission to perform the operations of esxcli was denied.

    I think we found the culprit!  I'll have this process ID in vCenter rights upward.

    Thank you all!

Maybe you are looking for

  • Desktop HP Pavilion a1209n does not turn

    I have a HP Pavilion a1209n desktop computer. When I tried to turn it on, the led front returns with fan for 2-3 seconds. Then he stops briefly and turn back on again and repeat the same procedure. The front led in turn made the back of one right nex

  • "Unfortunately there are no offers for your country."

    Last year, I bought a HP Pavilion TouchSmart, and today I took some time to check out some of the apps that are one there. After clicking on ' HP + ' I have nothing but a black screen and the message "Unfortunately there are no offers for your countr

  • Acer Aspire V3-571, a continuous beep on startup

    Hello I have an acer aspire v3 - 571 that keep a beep on startup. I can get into Windows 7 by pressing "ESC". However, after I enter Windows and use my browser (mozilla firefox), the Web page is scrolled automatically at the end of the page. Despite

  • I need a driver for my Deskjet 1220C on Windows 7 64 bit

    I need a driver for my Deskjet 1220C on Windows 7 64 bit

  • Can I get a custom in a hp system power?

    I have a minitour dc7700 convertible and I want to install the graphics card in it but the PSU is only 320W and card graphics system condition is 450W... so my question is can I get a new power supply and install the in and replace the PSU manufactur