How to get the PSComputer name from Get-DnsServerForwarder

running this command gives me a blank "pscomputername"
get-dnsserver -cn dc1 | select *
How to inject the computer name "dc1" into my output string?
Also, why does running this command yield nothing:
get-dnsserverforwarder -cn (gc $list) | select ipaddress
yet this does?
gsv -cn (gc $list) | select machinename
Thanks.

Hi,
running this command gives me a blank "pscomputername"
get-dnsserver -cn dc1 | select *
How to inject the computer name "dc1" into my output string?
$computerName = 'DC1'
Get-DnsServer -ComputerName $computerName |
Select *,@{N='ComputerName';E={$computerName}}
EDIT: That's a calculated property:
http://technet.microsoft.com/en-us/library/ff730948.aspx
EDIT2: Just to nitpick - you don't have an 'output string', you have an output object. Remember, PowerShell is all about objects.
Also, why does running this command yield nothing:
get-dnsserverforwarder -cn (gc $list) | select ipaddress
yet this does?
gsv -cn (gc $list) | select machinename
You may need to add -ExpandProperty to Select-Object, but I can't test that.
Don't retire TechNet! -
(Don't give up yet - 12,950+ strong and growing)

Similar Messages

  • How to retrieve the parameter names from a JSP page ? Urgent Please

    Hello,
    Can anybody tell me how to retrieve the parameter names from the JSP
    page. (without using getParameterNames() method.)
    The problem with the getParameterNames() method is I get the Jumbled output.
    I need it very badly
    With regards
    Ananth R
    email:[email protected]
    [email protected]

    Dear duffymo,
    My primary intention is to convert the JSP form information into a XML file.
    If I do not get the Parameter names in the correct order how can I maintain
    tag order in XML file.
    For ex: (JSP PAGE VIEW)
    Name--
    FirstName
    MiddleName
    LastName
    Address--
    Street1
    Street2
    City
    Country
    &so on
    (XML File to be generated)
    <Name>
    <FirstName>Value</FirstName>
    </Name>
    <Address>
    <street1>value</street1>
    </Address>
    & so on
    If I use getParameterNames() to get all the parameter names(Which form the tag names in the XML file ) the Enumeration object it returns will not be in the same order as the text fields in JSP.From this I can not construct a meaningful XML file.
    order means: Order of entry on the page, from top to bottom
    That's it
    Waiting for your responses

  • How to find the form name  from VA02 T.code

    how to find the form name  from VA02 T.code

    Hi Rajyam,
    I guess you are looking out for the formname which prints sales related documents.
    If this is what you want,then go to the T-code NACE and select the option K1Sales activities and click on the Output Types button on the top.The new window has all the types of Output types listed.Select the most appropriate and double click on the Processing routines button in the left side screen.
    The new window lists the program names and the forms associated with that output type.
    In case you have any further clarifications,do let me know.
    Regards,
    Puneet Jhari.

  • How to find the dsn name from an *.rpd file provided?

    How to find the dsn name from an *.rpd file provided? All the ODBC details which would require to run your dashboard.

    Hi
    DSN name is not a part of .rpd file. So There is no information about DSN name in .rpd file.
    Thanks
    Siddhartha P

  • How to Query the Summary Name from Custom Section Row Header Information

    I need a query that can help me retrieve the summary name from a custom section row header information.  We have a couple of Denorm tables that when the data is denormalized, the row_name field is only showing the denormalized alias name.  We would like to be able to pull the summary name from the row header information section?  How can we use the denorm alias name and join it to another table to find the associated summary name?

    The following query returns the row name as well as the denorm row name, for a given custom section, where we specify the custom section by the denorm table. You oculd do this in other ways, it just depends on how you want to retrieve the information. Is this what you are looking for?
    SELECT ml.Name [rowName], ml.langID, dr.NAME [denormRowName], dr.FKROWTEMPLATE, dt.GENERATED_TABLE_NAME
    FROM DENORM_CS_ROW dr
    inner join DENORM_CS_TABLE dt on dr.FK_DENORM_TABLE_ID = dt.ID
    inner join commonextendedattributeml ml on dr.FKROWTEMPLATE = ml.fkOwner
    where dt.NAME = 'myDenormTableName'

  • How to store the File Name from a Unix Directory into a ODI variable?

    Hi,
    I have built a ODI package with the following steps:
    1. ODI is polling for a flat file in a Unix directory. I have used OdiFileWait tool for this purpose. Here the file name is not fixed, so I am using wild character (*) to poll for file. Example: DF*ABC1*.DAT where the first wild character denotes 1 letter and the second wild character denotes 2 digits.
    2. In the second step, if the file is found, I am moving the file to ODI file server path (../oracledi/demo/file). Here I have used ODIFileMove tool.
    3. Then I am using an ODI Interface to Load the file data into a Oracle database table.
    4. I am using a Process log table to keep the log for each step I am executing in ODI that is ODIFileWait, ODIFileMove, Interface etc. for each file. In this table a row needs to be inserted after ODIFileWait tool gets the file, with the File Name and File Date. Later on this row will be updated as the consequent steps are executed.
    Here is my concern, I need to get the exact File Name of the file after ODIFileWait gets the file and I need to insert that in the Process Log table after the ODIFileWait step gets a file. So if I can store the File Name in a ODI Variable, I can insert it into the Process log table at this point. This I am not able to do.
    The files are coming in a different directory (not in ODI file server path), So after getting the file it is moved to ODI file server path (../oracledi/demo/file)
    The Files which I am processing are fixed length format. Also, the File name and File Date is stored in the 1st Record(Header record) of the files.
    Kindly provide me suggestions to implement this in my code.
    Thanks and Regards,
    Anik
    Edited by: 809820 on Nov 10, 2010 11:36 PM

    Look at this link -http://odiexperts.com/getting-one-or-several-unknown-files-from-a-directory
    change the command to fetch the ls command and write into File and then using either java or jython break the data and fetch the file name and date and insert into log table.
    (or)
    you can use the os.system command and get the complete ls command into string and then process and insert it.
    Let us know if you need any other help.

  • How to figureout the API Name from a table

    Hello,
    Is there anyway i can findout the name of the API which is used to save data in a particular table? for example the table ALR_ALERTS. I want to know which API is used to enter data into this alert.
    Thanks
    PK

    PK,
    I believe there is no way to get the name of the API from the table name. You can either browse Oracle IREP website or enable trace on the form/report and generate the TKPROF file to get the name of the API used.
    Thanks,
    Hussein

  • How to find the API name from the Integrator

    I am looking in a WebADI build solution.
    1) I need to find the API name, which is used by the Custom integrator to validate and insert the data into custom table.
    Can we find the source where WebADI integrator stores the API name.
    Please help me out in this.

    Satya,
    You are right that we are not supposed to change the Oracle supplied files. But some times you really don't have any other option. Some times Oracle support them selves ask you to change their programs.
    Anyway the Concurrent program definition is stored in BNE_PARAM_LISTS_B, BNE_PARAM_LISTS_TL, BNE_PARAM_LIST_ITEMS and BNE_ATTRIBUTES table. For a concurrent program with out any parameter there will be 6 records in BNE_PARAM_LISTS_ITEMS and BNE_ATTRIBUTES table.
    These racords are
    Application, Program, Description, Run date , Sub Request , End of Concurrent Request Parameters and Rest of parameters default.
    Look at these tables and you will know how Oracle has defined these Concurrent programs.
    HTH
    Dinesh

  • How to remove the account name from header when printing emails

    In outlook 2007 using Exchange Server 2007 users wishing to print an email using memo style have a header consisting of the account user's full name and a bold line under it, then the friendly email headers and body. Is there a way to remove/configure
    the memo style header?
    Marc

    Hi Marc,
    Unfortunately, there is no way in Outlook to change or remove the name or message header which is being displayed at the top of a printed message. It is tied to the Display Name of your email account which you can’t modify yourself for an Exchange account.
    More reference:
    http://www.slipstick.com/problems/how-do-i-remove-my-name-when-i-print-email/
    (Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.)
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • How to determine the schema name from stored function or procedure

    Hi all
    I need to find the way to determine the name of shema in which the given stored procedure residing. This SP is created with AUTHID CURRENT_USER what means that expression like SYS_CONTEXT('USERENV','CURRENT_USER') or SYS_CONTEXT('USERENV','CURRENT_SCHEMA') will be return the name of user or schema of user which calls given SP.
    can somebody help me?

    What is the problem you are trying to solve?
    Presumably, when you're creating a stored procedure, you know what schema owns it. So it's pretty trivial to simply create a local variable L_OWNER in your procedure, assign it the value of the schema owner, and then use that owner. Most people don't really need to figure out at runtime what they already knew at compile time.
    Barring that, you could inspect the data dictionary as user130038 suggested. That requires that you know the name of the procedure (which would likely also have to be a local variable that is initialized to a hard-coded value. And if there are multiple users that own procedures with the same name, it may not be reliable.
    Inspecting the call stack is the most reliable and dynamic approach. But it is also the most costly in terms or runtime performance and in terms of code complexity.
    Justin

  • How to populate the folder names from a particular folder in the drop down of a control?

    I am using an EDIT VI inorder to create MODEL, DRAWING NO  and the other parameters and save it. For each new MODEL a new folder will get created at a specific path. 
    How can I populate all those MODEL names in the dropdown of a control?

    If I undesrstand correctly you have a specific path containing sub folders, and you want to list all subfolders in a drop down manu?
    you should create a manu ring that you'll use as your drop down manu.
    then use the vi "list folder" on your path to get a list of all subfolders, and wire it to a "strings[]" property node of the ring control. The ring manu will then be populated with the list of folders.
    http://digital.ni.com/public.nsf/allkb/FB0409491FAB16FA86256D08004FCE7E
    hope that helps

  • How to find the machine name

    How to find the machine name from which the table is created ?
    Yogesh

    Turn on DDL auditing.
    http://www.oracle-base.com/articles/10g/Auditing_10gR2.php outlines some uses ... i'm sure you can find more with a google search.

  • How can I get the host name from Email address?

    hi
    When I using socket to develope an email-sending servlet,I don't know how to get the host name from emial address.can you help me,thanks

    Stripping off the user name will give you the domain of from field in the message. This is not the same as the host. Take a look at:
    http://www.stopspam.org/email/headers/headers.html
    Theres a pretty good discussion about email headers and how to use the information. You probably want to check the information here against the RFC.
    Sean

  • How do I get IE to drop the domain name from authentication responses

    All,
    I have a number of internal www servers that run various non MS operating systems which are not tied to the windows domain in any way. They are secure www sites and require authentication.
    When I connect to one via IE on a domain joined workstation or server (ie 8 & 9) I am unable to authenticate because I can not remove the domain name from the authentication credentials that IE is passing back to the www server.  I get an authentication
    prompt for user name & password with the domain pre populated.
    How the heck to I get IE to NOT pass the domain name as part of the authentication process. I've tried putting .\ in front of the user name but to no avail.
    Thanks,
    Steve D.

    As you can see below, when you first attempt the auth it defaults to you domain user account... in this case win\username.
    When you select use another account, you get the following with no means to remove the domain name which causes auth failure as this www server isn't a domain member and doesn't use the domain for auth.
    How do I get rid of Domain: .... ???
    Thanks,
    Steve D.

  • How to get the file name from Oracle B2B 10g

    Hi My requirement is I am getting a CSV file from Trading partner, I am using oracle 10g b2b to translate the data.
    In my BPEL 10g I am using AQ adapter to get the message from IP_IN_QUEUE.
    Now I want to get the file name Eg: SampleFile.dat of the CSV file in my BPEL process.
    I tried using the b2b.filename property in the receive activity and it is not getting the file name.
    <sequence name="main">
        <receive name="Receive_Note" partnerLink="GetB2BNote"
                 portType="ns1:Dequeue_ptt" operation="Dequeue"
                 variable="Receive_Note_Dequeue_InputVariable"
                 createInstance="yes">
                 <bpelx:property name="b2b.fileName" variable="WriteFileName"/>
        </receive>
      </sequence>
    Can you help me to get the file name from Oracle b2b 10g ?
    Thanks,
    b2b user

    Hi My requirement is I am getting a CSV file from Trading partner, I am using oracle 10g b2b to translate the data.
    In my BPEL 10g I am using AQ adapter to get the message from IP_IN_QUEUE.
    Now I want to get the file name Eg: SampleFile.dat of the CSV file in my BPEL process.
    I tried using the b2b.filename property in the receive activity and it is not getting the file name.
    <sequence name="main">
        <receive name="Receive_Note" partnerLink="GetB2BNote"
                 portType="ns1:Dequeue_ptt" operation="Dequeue"
                 variable="Receive_Note_Dequeue_InputVariable"
                 createInstance="yes">
                 <bpelx:property name="b2b.fileName" variable="WriteFileName"/>
        </receive>
      </sequence>
    Can you help me to get the file name from Oracle b2b 10g ?
    Thanks,
    b2b user

Maybe you are looking for

  • How do I fully delete an email account from my Apple Mail app on my iMac?

    Hello all, How do I fully delete an email account from my Apple Mail app on my iMac? When I go here: Mail > Preferences Mail > Accounts I got the message that I needed to delete it from my Internet Accounts. When I go here: System Preferences > Inter

  • Printing multiple screen objects (ALV+GFW) with only 1 print dialog pop-up?

    All, This is related to my previous post at: Re: How to print multiple ALV Grids with only one print dialog? but there is still one open question... My requirement is to create reports that will be called through portals; those reports are a combinat

  • Missing raw material position (from BOM) in process order

    Hello to all, Please help me on my issue on missing raw material position (from BOM) in process order. On transaction CS11, for a particular formula/plant/BOM application, the BOM was produced.  It was found that this BOM has 20 positions (from 0010

  • Filter tiffs by bit depth, color space

    A way to filter tiffs by 8 vs. 16bit and also color space? If not doable in PS another means of doing it. Thanks

  • 18.53 gig ipod??

    i have a twenty gig i pod but all my music was erased and i restored it to factory settings. when i plug it to itunes it says i have 18.53 gigs free !!! Is that normal. is my hard drive messed up? shouldnt it have 20 gigs free if it is an empty ipod?