Foreach output from get-command, add menu item

Hi
I'm making a script to configure some basic settings for new servers, and one of the features in the script is to set ip-address on the network interface. 
At some servers there are several network interfaces, and I would like to create a menu based on the output from a get-query(Get-NetAdapter | select Name). Setting the ip-addresses is okay, but I'm having a problem creating a menu.
What I want to do: If there is more than one NIC, create a menu with each network interface.
Any clues?

I didn't work that in, because I had no clue what you were trying to do when I initially wrote it.
This version returns an object that you can work with ($selectedNIC) :
$i = 1
$menuList = @()
$menuList = Get-NetAdapter | ForEach {
$props = [ordered]@{
'NIC Number'=$i
Name=$_.Name
InterfaceDescription=$_.InterfaceDescription
ifIndex=$_.ifIndex
Status=$_.Status
MacAddress=$_.MacAddress
LinkSpeed=$_.LinkSpeed
New-Object PsObject -Property $props
$i++
$menuList | Format-Table -AutoSize
$nicChoice = Read-Host 'Enter the NIC Number to process'
$selectedNIC = Get-NetAdapter -InterfaceIndex ($menuList[$nicChoice-1]).ifIndex
$selectedNIC
Don't retire TechNet! -
(Don't give up yet - 12,420+ strong and growing)

Similar Messages

  • How to add menu item in Virtual Folders Actions Menu

    Hi ,
    I am writting a custom component which will add some action on documents and virtual folder.
    I am able to add the menu item for DocInfo, but not able to add Menu Item in Virtual Folders Actions Menu.
    Please help!!
    thanks

    I am able to add the menu item for DocInfo, but not able to add Menu Item in Virtual Folders Actions Menu.What exactly you are trying to modify? If web GUI, it should be following the same principles as your "DocInfo" changes (only the basis service is COLLECTION_DISPLAY). If you are trying to modify Desktop Integration Suite, I'm afraid there is no help (at least, I have not heard that DIS could be modified by custom components).

  • Cannot read the output from windows command.

    Hello
    I have the following classes
    package cmd;
    import java.io.IOException;
    public class CMD {
        public CMD(){
            ProcessBuilder pb = new ProcessBuilder()
            .command("cmd.exe","/c","del *.*")
            .redirectErrorStream(false);
            Process p;
            try {
                p = pb.start();
                StreamGobbler errorGobbler = new StreamGobbler(p.getErrorStream(), "ERROR");
                // any output?
                StreamGobbler outputGobbler = new StreamGobbler(p.getInputStream(), "OUTPUT");
                // start gobblers
                outputGobbler.start();
                errorGobbler.start();
            } catch (IOException e) {
                // TODO Auto-generated catch block
            System.out.println("eee "+e.getMessage());;
        public static void main(String[] args) {
            System.out.println("x");
            new CMD();
            System.out.println("x");
    and
    package cmd;
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    public class StreamGobbler extends Thread {
        InputStream is;
        String type;
        StreamGobbler(InputStream is, String type) {
            this.is = is;
            this.type = type;
        @Override
        public void run() {
            try {
                InputStreamReader isr = new InputStreamReader(is);
                BufferedReader br = new BufferedReader(isr);
                String line = null;
                while ((line = br.readLine()) != null)
                    System.out.println(type + "> " + line);
            catch (IOException ioe) {
                ioe.printStackTrace();
    Please note that I cannot seee the output from wndows command : del *.* and the java class execution does not finished.
    I I will replace the above command with the dir command then the output of the command is visible.
    Would you give me a hint about how to modify the above clases in order to parse the output of the del *.* ?
    Please note that the above example is important because I am developping a tool and it is mandatory for that tool to parse the output from a windows batch command.
    Best regards,

    Please note that I cannot seee the output from wndows command : del *.* and the java class execution does not finished.
    I I will replace the above command with the dir command then the output of the command is visible.
    Would you give me a hint about how to modify the above clases in order to parse the output of the del *.* ?
    No - but I will give you a hint about ProcessBuilder and how to develop software properly.
    Hint #1: Don't try to automate something that you don't know, or understand, how to do manually.
    a. Do you know how to execute 'del *.*' manually in a command window?
    b. Did you try that manually to see what happens?
    My guess is 'no'. If you had you would know that the response to a 'del *.*' command is going to be this:
    Are you sure (Y/N)?
    And your 'java class execution' doesn't finish because the 'del' command is waiting for you to answer that question.
    Hint #2: Don't try to use ProcessBuilder for an application that requires console input unless you first know how to provide that console input via your Java code.
    Your code will wait forever since it does NOT answer that question.
    Search the net and The Java Tutorials and  you can find examples of executing command line utilities. Then try those examples first and make sure that:
    1. They work for you
    2. You understand HOW they work
    Then you can modify those examples to do what you want to do.

  • Linking a page as a browser window from a drop-down menu item

    I have tried to link from a drop-down menu item to link to a small browser window instead of a full page.  I tried using the "behaviors" but I got both the regular page and the browser window.  Is there a way to make it just the browser window.
    Thanks.

    I tried that target=_Blank" but I still got the regular page plus the small browser window .  I got rid of the Behavior for now.  My aim is to would display the page in a simple 450 wide x 450 long browser window with a scroll bar with nothing else.  If you can give me a code hint to do that, It would be appreciated.  I'll figure out the rest.
    My HTML coding skills are limited, as I'm used to using FP.(FP seems to be to the Web circles as the Bard's Scottish Play is to the theatrical world)

  • Add menu item for Batch Sequence?

    Hello,
    I've created a folder level script that will execute when Acrobat starts. The script adds a menu item, that when clicked, will call another function.
    I'm wondering if I can create a batch sequence and add a menu item for that as well? I basically just want to avoid going through the whole Advanced -> Doucment Processing -> Batch processing... -> and then find the batch sequence and click Run.
    I've seen plenty of examples for adding menu items that call folder level scripts, but nothing on batch sequences. Has anyone ever done this?
    Many thanks in advance!

    You can't create a menu item to a specific batch sequence. The closest you
    can get is to open the batch sequences window, using the execMenuItem()
    method and "BatchEdit" as the name of the command (I'm not sure it's still
    the same in Acrobat X).

  • Error while calling a form from another form's menu item

    I created a main form and menu module for this form.
    I am calling another form from main form menu item.
    i moved both the forms and menu and compiled them.
    But, when i run this form i am getting an error saying
    FRM 92100: Your connection to the server was interrupted
    This may be the result of a network error, or a failure on the server.
    You will need to establish your session.
    I set the seperateframe = true
    networkentries = 30
    But still getting the same error.
    Is there any parameter that i am missing.
    I will greatly appreciate if anybody can direct me to the solution.
    Thank you.
    Navya.

    Hi guest,
    the data definition is:
    DATA: XVBKD LIKE VBKDVB OCCURS 0 WITH HEADER LINE.
    the assignment:
    XVBKD-PRSDT = likp-erdat.
    Thanks,
    Hagit

  • Need to add Menu Item to Search Result Template page

    Hi Guys,
    I am using UCM 11g and I am customizing serach result page.
    When we do search on UCM, we get a search result page. This search result page has a two drop downs (on the top right) "Change View" and "Search Action" in the blue strip.
    I have to add one customized dropdown option in "Publish Selected", it worked well with 10g by overriding searchapi_result_menus_setup include but not working in 11G.
    Appreciate your help on this, Thank you
    Thanks,
    Ashok

    Reunion1980 wrote:
    ..I need to add item "About" to frame's system menu.
    Is there any way to solve this problem?Try this link - [http://pscode.org/jh/bin/helpsetter-apidocs.jnlp]. It is sand-boxed, like an applet. It should prompt if you want to create shortcuts, click OK/Yes.
    After you run it, open the 'All Programs'/system menu. There should be an item under the 'JavaHelp System' menu for the 'JavaHelp System JavaDocs'. That link is to launch the application again. [Java Web Start|http://www.java.com/en/download/faq/java_webstart.xml] *(<- link)* is what installs the menus. JWS can also install menus specifically for application help.
    Older applications declared the required menu items and desktop shortcut in the JNLP launch file, but JRE 1.6.0_18+ offers the IntegrationService *(<- link)* to applications, and provides feedback on success/failure. Note that some systems will ignore requests for desktop integration. Ubuntu Linux will allow for the creation of desktop shortcuts, but silently ignore requests for menu items.

  • Can't add menu item to showMenu panelCollection facet

    Is that a bug ? JDev does not allow to add a menu item inside a showMenu panelCollection's facet. If you manually add it, it shows an error:
    "Element at af:commandMenuItem not expected (missing required ancestor)".
    The application runs fine. That error also shows up on the searchUI.jsff page from the Handbook sample code.
    Jdev version is 11.1.1.2.0.
    Thanks & Regards.

    No, it's not a bug. You need a af:menu ancestor for your af:commandMenuItems:
                <af:panelCollection id="pc1">
                  <f:facet name="menus">
                    <af:menu text="Actions" id="m2">
                      <af:commandMenuItem text="Delete" id="cmi1"
                                          actionListener="#{deptBean.deleteRow}"
                                          partialSubmit="true" immediate="true"
                                          accessKey="D" accelerator="control alt R"
                                          partialTriggers="deptTable"/>
                      <af:commandMenuItem actionListener="#{bindings.Last.execute}"
                                          text="Last" accelerator="ctrl alt L"
                                          accessKey="L" partialSubmit="true"
                                          id="cmi2" partialTriggers="deptTable"/>
                    </af:menu>
                  </f:facet>
    {code}
    Whenever you have a doubt on how to use a component you can always check the  ADF Rich Faces Demo: http://jdevadf.oracle.com/adf-richclient-demo/faces/index.jspx
    HTH,
    Maiko                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Get Rid of Menu Items

    I have removed an anti-virus app from my macbook. This app (and others that I still use) had created a menu item that appears when, for instance, a file is ctrl clicked. At the bottom of the contextual menu that appears there would be a few items relating to the anti-virus app. Now that the app has been removed (using app zapper) the contextual menus remain but serve no function.
    How can I get rid of these menu items?

    Most well written apps include an uninstall script or remove themselves completely when trashed.
    You should check with the A/V app vendor for complete uninstall instructions.
    Norton/Symantec, for example has a special script to remove all the various parts of the software.
    You can also use Finder to search for leftover pieces.
    I would start looking for a .plist with the A/V name, but it sounds as if it also has some system hooks which are harder to find and to remove.

  • Add menu item in .exe-File

    Is there any way, that i can add a menu item in the .exe-File?
    I need a menu which is expandable for the customer!
    thanks wiesi

    Wiesi,
    I thought this was an interesting question, because I noticed a number of people with previous questions who had serious difficulty with .rtm files and executables, and they weren't even trying to add or remove menu items dynamically. Are you using .rtm files to define your custom menus both in the development envuronment and in the EXE?
    If so, I think I agree with Dennis and suggest that you abandon that approach and just build your menu programmatically, as shown in the example he points out. That way, you can create an arbitrary menu each time the VI or EXE is run. One wrinkle is that you now have to create some extra logic for constructing, saving, and loading your run-time menus. I put together an example (attached, LV 7.0) that demonstrates one way to go about it. I tested both in the development environment and after creating an EXE, and it works fine.
    I'm interested in something else: how do you plan to make your EXE flexible enough to actually respond correctly to newly-introduced menu items? I guess you'll have to take some kind of a "plug-in" approach, where the anticipated menu choices will lead to the execution of additional code that you are packaging alongside the executable?
    Regards,
    John
    Attachments:
    Dynamic Menu Example.zip ‏57 KB

  • Add menu item or icon to PA30

    Hello,
    Is it possible to add a menu item or an icon in the toolbar to add your own functionality to transaction PA30? I am trying enhancement PBAS0002 but I don't think that's it...
    Gr,
    Jaron Frenk

    Hi Jeron,
    Depends on what you want to do.  To change icons, you can use SE51-Screen Painter if you have a Developer Key.  Adding new tabs and and infotypes to those tabs is simple configuration - IMG: Personnel Management --> Customizing Procedures --> Infotype Menus --> Infotype Menu --> Infotype Menu.  Here you set up which infotypes appear on which tabs.  In the second step Determine Choice of Infotype Menu, you define which tabs appear in PA30. 
    So the question is - What are you trying to accomplish in PA30?
    Paul

  • My airplay is missing from the command center menu on my iPad. How do I get it back after the iOS 7 update?

    I recently updated to iOS 7 on my ipad2 and 3 before I realized airplay no longer works on either of them. I understand I should be able to manage it in the new command center, but airdrop nor airplay is listed there at all. I have tried turning the iPad off and back on as well as resetting it. How can I get it back?

    Try looking for it on all your home screens and folders.
    If its not there, make sure it diod not get restricted under Settings->General->Restrictions->Camera

  • RH9 - Any idea why generating printable output from the Command Line doesn't include images?

    I have a batch file that creates a printable output of our main documentation broken up into 36 separate documents, 1 per chapter. Each chapter is a separate layout. I realize that RH has its own Batch building process, but the reason for me doing it through the command line via a batch file (.bat) is that RH keeps taking focus from my mouse and it makes it difficult to do any other computer work while the RH project generates the printable output for those chapters.
    Anyway, RH's Batch build works fine.
    But the command line for printable output does not include any of my images in the printable output. I don't know why. The document generates with all the topics fine, but the images are missing. No placeholder box in the resulting Word doc, they just simply weren't included. Has anyone else seen this? Any way to fix it?

    All,
    I thought it may be related to spaces in the path in which the script was called from. I tried having the ODBC command script in another directory but the same thing happens. It will give me the "CONFIGSYSDSN: Unable to create a data source for the 'Oracle in OraClient10g_home1' driver: Could not load the setup or translator library with error code -2147467259". As soon as the script is done running I can manually double click the script and it adds the DSN fine.
    Thanks,
    Clif Bridegum

  • Strange output from format command

    Hi,
    We have a Sun V480 running Solaris 8. We have installed 2 SG-XPCI2FC-QF2 fibercards. They are connected to an EVA3000 system. SFS newest version are also installed.
    Have configured the cards with the cfgadm command. But when i run a format command i get this output. Normally it will show somthing like this c1t0d1. But here it shows c11t50001FE15005F54Dd1
    format
    Searching for disks...done
    AVAILABLE DISK SELECTIONS:
    0. c1t0d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
    /pci&#64;8,600000/SUNW,qlc&#64;4/fp&#64;0,0/ssd&#64;w21000004cf8ffa54,0
    1. c1t1d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
    /pci&#64;8,600000/SUNW,qlc&#64;4/fp&#64;0,0/ssd&#64;w21000004cf96abc8,0
    2. c11t50001FE15005F54Dd1 <HP-HSV200-5020 cyl 6398 alt 2 hd 128 sec 128>
    /pci&#64;8,700000/SUNW,qlc&#64;1/fp&#64;0,0/ssd&#64;w50001fe15005f54d,1
    3. c11t50001FE15005F549d1 <HP-HSV200-5020 cyl 6398 alt 2 hd 128 sec 128>
    /pci&#64;8,700000/SUNW,qlc&#64;1/fp&#64;0,0/ssd&#64;w50001fe15005f549,1
    4. c12t50001FE15005F54Cd1 <HP-HSV200-5020 cyl 6398 alt 2 hd 128 sec 128>
    /pci&#64;8,700000/SUNW,qlc&#64;2/fp&#64;0,0/ssd&#64;w50001fe15005f54c,1
    5. c12t50001FE15005F548d1 <HP-HSV200-5020 cyl 6398 alt 2 hd 128 sec 128>
    /pci&#64;8,700000/SUNW,qlc&#64;2/fp&#64;0,0/ssd&#64;w50001fe15005f548,1
    Specify disk (enter its number):
    Can anyone explain this? I was possible to format the disk. But are this OK?
    Thanks,

    Rather than having disk target numbers, format now see's the disks WWN or World Wide Number. If you look at your output, disk 0 and disk 1 have the standard c1t0d0 and c1t1d0 identifiers, but the targets on controller 11 and 12 show the WWN for the LUNs/disks on the EVA3000. This is to help with multipathing etc. Yes it is on to slice the LUNs/disks.

  • Exchange Powershell return value from Get-command to variable.

    Hi
    I am trying to create a powershell-script for our monitoring-software.
    The script is supposed to establish a connection to our exchange-server mgmt-shell and execute this command:
    "Get-MailboxDatabaseCopyStatus"
    I have the connection in place, but am missing the knowledge of how to return the result of the command to my script, which I can then pass to our monitoring-software.
    (The script take 2 parameters - host and command eg. exch01.domain and Get-MailboxDatabaseCopyStatus).
    Current code:
    $statusAlive = "ScriptRes:Host is alive:"
    $statusDead = "ScriptRes:No answer:"
    $statusUnknown = "ScriptRes:Unknown:"
    $statusNotResolved = "ScriptRes:Unknown host:"
    $statusOk = "ScriptRes:Ok:"
    $statusBad = "ScriptRes:Bad:"
    $statusBadContents = "ScriptRes:Bad contents:"
    $pass = cat C:\securestring.txt | convertto-securestring
    $Cred = new-object -typename System.Management.Automation.PSCredential -argumentlist "domain\administrator",$pass
    $host = $args[0]
    $command = $args[1]
    <#
    if (!$args[0]) {
    echo $statusUnknown"Host parameter is empty"
    exit
    if (!$args[1]) {
    echo $statusUnknown"Command parameter is empty"
    exit
    #>
    $session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://$host/powershell -Credential $cred
    Import-PSSession $session
    $command
    Remove-PSSession $session
    Now, how do I "catch" the value of the executed command and return it to a variable in the script?
    Best Regards,
    Soren

    Hmm.. doesnt seem to work quite right.
    I added "Echo $result" after "Remove-PSSession $session", but then I just get a bunch of information..
    Script tmp_c3a1c132-f4d9-4d61... {Get-IRMConfiguration, New-MailUser, Get-PublicFolderMigrationRequestSta...
    RunspaceId : 2d179364-2df3-483d-a192-f5f4ca9453bb
    Identity : DB02 - Specielle\EXCHANGE01
    Id : DB02 - Specielle\EXCHANGE01
    Name : DB02 - Specielle\EXCHANGE01
    DatabaseName : DB02 - Specielle
    Status : Mounted
    InstanceStartTime : 01-03-2014 03:35:07
    LastStatusTransitionTime :
    MailboxServer : EXCHANGE01
    ActiveDatabaseCopy : EXCHANGE01
    ActiveCopy : True
    ActivationPreference : 1
    StatusRetrievedTime : 11-03-2014 08:30:15
    WorkerProcessId : 8124
    ActivationSuspended : False
    ActionInitiator : Unknown
    ErrorMessage :
    ErrorEventId :
    ExtendedErrorInfo :
    SuspendComment :
    RequiredLogsPresent :
    SinglePageRestore : 0
    ContentIndexState : Healthy
    ContentIndexErrorMessage :
    ContentIndexVersion : 1
    ContentIndexBacklog : 0
    ContentIndexRetryQueueSize : 0
    ContentIndexMailboxesToCrawl :
    ContentIndexSeedingPercent :
    ContentIndexSeedingSource :
    CopyQueueLength : 0
    ReplayQueueLength : 0
    ReplaySuspended : False
    ResumeBlocked : False
    ReseedBlocked : False
    MinimumSupportedDatabaseSchemaVersion : 0.121
    MaximumSupportedDatabaseSchemaVersion : 0.125
    RequestedDatabaseSchemaVersion : 0.125
    LatestAvailableLogTime :
    LastCopyNotificationedLogTime :
    LastCopiedLogTime :
    LastInspectedLogTime :
    LastReplayedLogTime :
    LastLogGenerated : 0
    LastLogCopyNotified : 0
    LastLogCopied : 0
    LastLogInspected : 0
    LastLogReplayed : 0
    LowestLogPresent : 0
    LastLogInfoIsStale : False
    LastLogInfoFromCopierTime :
    LastLogInfoFromClusterTime :
    LastLogInfoFromClusterGen : 0
    LogsReplayedSinceInstanceStart : 0
    LogsCopiedSinceInstanceStart : 0
    LatestFullBackupTime :
    LatestIncrementalBackupTime :
    LatestDifferentialBackupTime :
    LatestCopyBackupTime :
    SnapshotBackup :
    SnapshotLatestFullBackup :
    SnapshotLatestIncrementalBackup :
    SnapshotLatestDifferentialBackup :
    SnapshotLatestCopyBackup :
    LogReplayQueueIncreasing : False
    LogCopyQueueIncreasing : False
    ReplayLagStatus :
    DatabaseSeedStatus :
    OutstandingDumpsterRequests : {}
    OutgoingConnections :
    IncomingLogCopyingNetwork :
    SeedingNetwork :
    DiskFreeSpacePercent : 50
    DiskFreeSpace : 20.02 GB (21,498,761,216 bytes)
    DiskTotalSpace : 40 GB (42,946,523,136 bytes)
    ExchangeVolumeMountPoint :
    DatabaseVolumeMountPoint : E:\
    DatabaseVolumeName : \\?\Volume{e6cb407f-e4f2-11e2-93eb-005056ae239d}\
    DatabasePathIsOnMountedFolder : False
    LogVolumeMountPoint : F:\
    LogVolumeName : \\?\Volume{e6cb4087-e4f2-11e2-93eb-005056ae239d}\
    LogPathIsOnMountedFolder : False
    LastDatabaseVolumeName :
    LastDatabaseVolumeNameTransitionTime :
    VolumeInfoError :
    IsValid : True
    ObjectState : Unchanged
    RunspaceId : 2d179364-2df3-483d-a192-f5f4ca9453bb
    Identity : DB01 - Standard\EXCHANGE01
    Id : DB01 - Standard\EXCHANGE01
    Name : DB01 - Standard\EXCHANGE01
    DatabaseName : DB01 - Standard
    Status : Mounted
    InstanceStartTime : 01-03-2014 03:35:07
    LastStatusTransitionTime :
    MailboxServer : EXCHANGE01
    ActiveDatabaseCopy : EXCHANGE01
    ActiveCopy : True
    ActivationPreference : 1
    StatusRetrievedTime : 11-03-2014 08:30:15
    WorkerProcessId : 8140
    ActivationSuspended : False
    ActionInitiator : Unknown
    ErrorMessage :
    ErrorEventId :
    ExtendedErrorInfo :
    SuspendComment :
    RequiredLogsPresent :
    SinglePageRestore : 0
    ContentIndexState : Healthy
    ContentIndexErrorMessage :
    ContentIndexVersion : 1
    ContentIndexBacklog : 3
    ContentIndexRetryQueueSize : 0
    ContentIndexMailboxesToCrawl :
    ContentIndexSeedingPercent :
    ContentIndexSeedingSource :
    CopyQueueLength : 0
    ReplayQueueLength : 0
    ReplaySuspended : False
    ResumeBlocked : False
    ReseedBlocked : False
    MinimumSupportedDatabaseSchemaVersion : 0.121
    MaximumSupportedDatabaseSchemaVersion : 0.125
    RequestedDatabaseSchemaVersion : 0.125
    LatestAvailableLogTime :
    LastCopyNotificationedLogTime :
    LastCopiedLogTime :
    LastInspectedLogTime :
    LastReplayedLogTime :
    LastLogGenerated : 0
    LastLogCopyNotified : 0
    LastLogCopied : 0
    LastLogInspected : 0
    LastLogReplayed : 0
    LowestLogPresent : 0
    LastLogInfoIsStale : False
    LastLogInfoFromCopierTime :
    LastLogInfoFromClusterTime :
    LastLogInfoFromClusterGen : 0
    LogsReplayedSinceInstanceStart : 0
    LogsCopiedSinceInstanceStart : 0
    LatestFullBackupTime :
    LatestIncrementalBackupTime :
    LatestDifferentialBackupTime :
    LatestCopyBackupTime :
    SnapshotBackup :
    SnapshotLatestFullBackup :
    SnapshotLatestIncrementalBackup :
    SnapshotLatestDifferentialBackup :
    SnapshotLatestCopyBackup :
    LogReplayQueueIncreasing : False
    LogCopyQueueIncreasing : False
    ReplayLagStatus :
    DatabaseSeedStatus :
    OutstandingDumpsterRequests : {}
    OutgoingConnections :
    IncomingLogCopyingNetwork :
    SeedingNetwork :
    DiskFreeSpacePercent : 50
    DiskFreeSpace : 20.02 GB (21,498,761,216 bytes)
    DiskTotalSpace : 40 GB (42,946,523,136 bytes)
    ExchangeVolumeMountPoint :
    DatabaseVolumeMountPoint : E:\
    DatabaseVolumeName : \\?\Volume{e6cb407f-e4f2-11e2-93eb-005056ae239d}\
    DatabasePathIsOnMountedFolder : False
    LogVolumeMountPoint : F:\
    LogVolumeName : \\?\Volume{e6cb4087-e4f2-11e2-93eb-005056ae239d}\
    LogPathIsOnMountedFolder : False
    LastDatabaseVolumeName :
    LastDatabaseVolumeNameTransitionTime :
    VolumeInfoError :
    IsValid : True
    ObjectState : Unchanged
    I am only interested in the 2 "ContentIndexState" - how can I pick these 2 out and put them into a variable?
    I though the command "Get-MailboxDatabaseCopyStatus" would only display these two, since it is what happens if I run the command inside PowerShell on the server itself.

Maybe you are looking for

  • Reuirement at the time of delivery creation or change

    Dear All, Please guide me or give me your inputs to full fill the requirement that i have, At the time of creation of delivery or changing a existing delivery i need to raise a pop up window listing all the materials in the delivery and next to the m

  • Pics from Iphone4  to my laptop

    I cant get my pictures from my iphone to my laptop. Can someone help me with this? (What i do after my iphone is connected with the laptop, is going to 'my computer' dan i click on the iphone, but none of my pictures from my iphone is available there

  • Web services and security

    hi, i've successfully programmed a labview webservice and its all working fine, but im using a computer with public IP, and i can access to this webservice just typing the adress like in the webservices examples. my question is how can i create an au

  • Can i use onload event in XSLT

    Hi all, I am working on xml and xslt. After the xslt tranfermation i wants to call a function defined in javascript. I just wants to use onload event but its i dont have idea how to call an onload event. thnx, raj

  • Add new tables to metadata

    Hello, I have added a new table in the mapping just to store some new data generated from a count function. Can you tell me how can I add this table to metadata? I added my source tables, which are under ODBC module, to metadata using the metadata wi