PowerShell - Need to output filename and company name

Hi
I've looked into get-ChildItem and Get-Item but can get neither to output the company name which would be handy for me later on. This is to help me just double check dll files which just belong to the company I work for.
Ideally, can anyone advise me the next step in working this out. I've googled and looked that the member of these two commands but still not sure how to progress :-
Get-ChildItem | Get-Member

Hi Chen
Thats exactly what I was looking for. Thank you so much.
Can I ask? How did you know that FileVersionInfo contains so many properties or what is it just general knowledge?
If I run a command like this, it wouldn't be obvious that CompanyName is a property that can be found within Get-Item
(Get-Item*)|Get-Member
Cheers
Matt

Similar Messages

  • Getting Output filename and extension same as the incoming filename and extension

    I need to create a SFTP send port where I should get the output file name and extension same as that of the incoming filename
    I had set the filename in the send port as "%SourceFileName%" but this did not work.
    I have also assigned the input filename (without extension) in a variable in orchestartion. Is there any way i could get the output filename and extension same as that of the incoming message?
    Any help would be much appreciated

    Hi,
    The %SourceFileName% macro maps to the context property BTS.ReceiveFileName that travels with your message in the context. So in order for this macro to work in a send port the message that is going out needs to have this BTS.ReceiveFileName property on
    the context. You probably creating a new message in your orchestration and sending that out. The new message does not have the property on its context which makes it fail. Use a message assignment shape in your orchestration to set the context property for
    the message going out:
    MyMessage(BTS.ReceiveFileName) = OrigMessage(BTS.ReceiveFileName);
    Then %SourceFileName% macro will work at send port.
    Rachit
    Please mark as answer or vote as helpful if my reply does

  • Contacts showing Name and Company Name, even when 'file as' is the name only

    We are running into a strange issue someone may provide some light on, I've researched quite a bit online with no success, and may soon be calling Microsoft on this one. Sometime earlier this year we installed Exchange 2010 Update rollup 4, then UR5, after
    that when you create new contacts in outlook 2010, no matter how you choose to 'file as', when you pull up the contact in the address book it always contains the company name after the persons name. It doesn't seem to matter how you file the contact, it always
    appears with the company name in the name field in the address book (and therefore pulls that into any mail merge).
    anyone else run into this issue or know how to fix it? I included screenshots below....
    thanks for your help all.
    here is the contact in address book, showing company name no matter how its filed.

    Hi,
    I can reproduce the same issue here. Here is what I did to fix this:
    1. Open a problematic contact.
    2. In the Full Name field, type a space and then click Save & Close button.
    3. Now, go to Address Book, you will find that the company name is removed.
    Based on my deep research, I find a macro can be used to update the Full Name info, when I run the macro, the company name is removed from all problematic contacts in Address Book. See the code sample:
    Sub UpdateContactFullName()
    Dim FileAsFormat As String
    Dim CurrentFolder As Outlook.Folder
    Dim objItem As Object
    Dim objItems As Object
    Dim objContact As Outlook.ContactItem
    Set CurrentFolder = Application.ActiveExplorer.CurrentFolder
    If CurrentFolder.DefaultItemType = Outlook.olContactItem Then
    Result = MsgBox("Update the Full Name field for all " & _
    "your contacts according to your default " & _
    "Full Name settings in Outlook?", _
    vbQuestion + vbYesNo, "Update Full Name field")
    If Result = vbYes Then
    Set objItems = CurrentFolder.Items
    For Each objItem In objItems
    If objItem.Class = Outlook.olContact Then
    Set objContact = objItem
    'We need to touch something in one of the name
    'field to force a rewrite of the Full Name field
    'according to the default Full Name settings.
    objContact.FirstName = objContact.FirstName
    objContact.Save
    End If
    Next
    Result = MsgBox("Finished updating the Full Name format of all contacts." _
    , vbInformation, "Done!")
    End If
    Else
    Result = MsgBox("Please select a Contacts folder." _
    , vbCritical, "Select Contacts folder")
    End If
    Set CurrentFolder = Nothing
    Set objContact = Nothing
    End Sub
    Reference link:
    http://www.howto-outlook.com/howto/contactnameformat.htm
    Hope this helps.
    Regards,
    Steve Fan
    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.

  • Get filename and directory name during runtime

    Hi guys,
    I am developing a file to file interface without content conversion, just a simple file transfer from one ftp server to another. I have to read the same filename (invent.txt) from multiple folders (mstransfer/M01/IN1, mstransfer/M02/IN1, mstransfer/M03/IN1....) that represent different stores and transfer it as it is with the same name to exactly the same directory name in the target ftp location.
    My problem is found inside a dummy mapping that I have created in order to specify the target directory and the name of the file. I am doing the following:
    A) A Java UDF to specify the filename
    trace = container.getTrace();
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String filename = conf.get(key);
    trace.addWarning("filename = "+filename);
    conf.put(key, filename);
    return "";
    //return filename;
    B) A Java UDF to specify the directory name
       //write your code here
    trace = container.getTrace();
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","Directory");
    String directory  = conf.get(key);
    trace.addWarning("directory before = "+directory);
    directory = "/usr/sap/trans"+directory;
    trace.addWarning("directory after = "+directory);
    conf.put(key, directory);
    return "";
    //return "/usr/sap/trans"+directory;
    In receiver file adapter I do not specify neither a filename nor a target directory.
    When I am testing it, I always get a mapping runtime error.
    Any ideas?
    --Evaggelos

    Guys,
    First of all, I am doing an end to end testing, i.e. I let the FTP adapter pick the file up and another FTP adapter delivers the file to target folder. I am definitely not testing the mapping in mapping editor.
    I get the error in Request message mapping (pipeline step, which I can see in SXMB_MONI transaction) which is a dummy mapping between two message types that I have created and are based on two data types with two fields each.
    The UDF's that I have created go in-between the source and target fileds of the message types/data types.
    The error that I see in the trace section of the XML message in SXMB_MONI is the following:
    "<Trace level="1" type="T">RuntimeException during appliction Java mapping com/sap/xi/tf/_MM_G_SRS_FileTransfer_MNS_</Trace>
      <Trace level="1" type="T">java.lang.NullPointerException at com.sap.aii.mappingtool.tf3.AMappingProgram.exceptionCaught$(AMappingProgram.java:59) at com.sap.aii.mappingtool.tf3.Transformer.checkParserException(Transformer.java:182) at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:149) at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:102) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:64) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:91) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:90) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:95) at"
    I have included some trace.addWarning() lines in Java code to help me debug my code, but I cannot see them anywhere inside the trace to be getting executed.
    I will try Bhavesh's idea and I will write the code in the Java Section of my message mapping ( either Intialization or Destrcution ) section.

  • Need Space Between Firstname and Last Name

    Hi I am using Concat to Join First name and last name,But i need space in between...

    CONCAT("Users"."First Name",' ',"Users"."Last Name")
    Formula syntax is invalid.
    [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 27002] Near <,>: Syntax error [nQSError: 26012] . (HY000)
    SQL Issued: SELECT CONCAT("Users"."First Name",' ',"Users"."Last Name") FROM "Usage Tracking"
    I am getting this..

  • Getting sequence filename and sequence name in process model error handler

    We are using the sequential process model and would like to log sequence step error information to a file.  We have an Error Handler callback in SequentialModel.seq and that is where we will write to the error file.  In the Error Handler callback, I can get the error container info for the step where the error occurs and the name of the that step thru the Error Handler Step parameter.  I would also like to record the sequence file and the sequence where the error occurred, but I have not been able to find those in the sequence context.  I know they are available because the TestStand RunTime Error dialog box displays them.  How can I access the name of the sequence file and the name of the sequence where the error occurred?
    Thanks,
    Hans

    Hey hans,
    Use the API.  Since you already have the Step object reference coming in as a parameter you can just use a few ActiveX steps to get the Sequence File and Sequence from which the error was thrown.
    Step.Sequence
    Sequence.Name (gets the name of the sequence)
    Sequence.SequenceFile
    SequenceFile.Path (gets the path of the sequence file)
    So basically just 4 activex steps.  I hope this helps.
    Regards,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • BugFix request: output filename wrong if name has "."

    If you make a sequence called "1080i29.97_Anamorphic" and go to export you end up getting an output name of "1080i29." (+ the file extension of that exporter).
    Sure would be nice if that was fixed. It bugs me all the time.

    The best way to make sure your bug report is seen:
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    In the mean time, you could use the naming convention and call it "1080i30_Anamorphic".

  • Need to know schema and table name

    Hi folks,
    I need to know the schema name and the table name associated with a column. Though jdbc has the api to getTableName and getSchemaName, some database vendor like oracle does return empty upon call of mentioned methods. I found that oracle driver does not support that ��
    Can any one give me the solution? It is urgent. Or do you suggest any third pary jdbc driver which can provide those?
    Thanks
    Angelina

    hi,
    does not work for me.
    more pls
    --thanks                                                                                                                                                                                                                   

  • Need Hex Encoder Class and Package Name

    Hi,
    I have a requirement in which I need to convert an xml (input) into a Hex format (output). I know that there is a class called as BASE64Encoder when you want to encode a data into base64Binary format and this one is present in the sun.misc.BASE64Encoder package. Now my question is do we have some class called as HexEncoder included under some standard package (like sun.misc.HexEncoder)?
    Please provide pointers on how to solve this.
    Thanks,
    Abhishek.

    Hi,
    You get most of the encorders from here http://www.koders.com/java/fid1DEA9207865756960D16FBA292EE6534A47D3BAD.aspx
    Regards
    Ayyapparaj

  • Need to set hostname and domain name

    Hi All,
    I need to
    1) set my "hostname" (foo), and
    2) set my "domain name" (acme.local)
    such that my machine identifies itself as "foo.acme.local". Anyone know how to do this? (I found the host name in file sharing, but it will not let me set the domain name.)
    Many thanks,
    -T

    etresoft wrote:
    Your domain is the name of your server.
    What gave you that idea? My domain name is "acme.local". It is not the name of my server. I have three servers on my network. The one with the DNS, DHCP, and firewall servers on it called "server.acme.local".
    I am confused about why you feel the need to have a subdomain.
    This is not a subdomain. What gave you the impression I was asking for a subdomain?
    What you seek to accomplish is entirely unnecessary and far more involved than just editing a config file.
    Pretty easy in Linux and Windows. They just grab the domain name from the DHCP server. Or, you can hand configure them if you wish. Do you know how accomplish same in 10.6.4?
    Give your machine a name in System Preferences > Sharing and it will have the name "whatever.local". That is all you need.
    I would like to the entire network name displayed correctly. "whatever.local" is incorrect. It should be "machinename.domainname" or "foo.acme.local". In my example, "foo" is the machine name ("whatever" in your example) and "acme.local" is the domain name. (Not the server's name, by the way.)
    "System Preferences > Sharing" will not let me add any extra periods. And will not let me change the ".local" either. (In this instance, I want the ".local".)
    Here is the reverse rule I had to hand create:
    182 PTR foo.acme.local.
    (The dot on the end is not a mistake.)
    I do not want a stray computer floating around that does not identify itself correctly. "foo.acme.local" is correct. "foo.local" is not.
    By the way, this computer gets its IP address from a DHCP server, which does tell this Apple what the domain name is. (It gets ignored.)
    /etc/dhcpd.conf
    option domain-name "acme.local";
    That is the config file for your DHCP server. You would use this if your machine were sharing its internet connection, for example. You don't need to edit this file.
    You misunderstand. The DHCP server, not on this Mac, is not being used to share Internet connections. It is being used to assign IP addresses to machines on the local network. It is also being used to assign fixed IP's to network printers based on their MAC addresses. In my network, these are "off Internet" addresses. The firewall, also not on this Mac, it used to share a single Internet connection with all the internal users.
    Hmmm. I created the file (dhcpd.conf) by hand. And, yes I do need to edit it all the time. Especially when I have bone headed machines on my network that do not follow or respond to standard networking conventions. This Mac does not accept the domain name given to it by my DHCP server and as such my DHCP server will not automatically update my DNS tables.
    Evidence of this can be found in the dhcpd.leases, where I had to hand enter
    client-hostname "foo";
    into the lease table (did not do me any good).
    I am wondering if 10.6.4 is not capable of handling this kind of standard network naming convention. (FreeBSD, which Apple run on top, is capable, so I am confused.)
    MacOS X does not run on top of FreeBSD. They are different operating systems. MacOS X has a POSIX layer which most closely resembles BSD, that is all.
    Interesting. Thank you for pointing out the difference. I bet POSIX know how, just like FreeBSD, which it resembles.
    If I change the name in /etc/hosts, will Apple over ride it? (I am not at the machine or I would just try it.)
    You do not "change" the name in /etc/hosts. You are just adding entries into your machine's lookup table. You can add as many aliases to as many IP addresses as you want. This is not the same as changing your machine's name, but it may be sufficient for what you are trying to accomplish - assuming I knew that, which I don't.
    Then, where do I make the change?
    10.6.4 did not tell the DHCP server what its name was either, so I had to hand add it into my DNS forward and reverse records. AAAAHHHHH!!!!
    I strongly advise against editing files you don't understand.
    I create my entire DNS configuration by hand, including my forward and reverse tables. Oh yes, I understand it, do I ever understand it. You should not jump to conclusions: it is insulting. I am presuming you meant no insult. Just be more careful next time.
    I think that what is happening here is that 10.6.4 is not set up to follow standard network naming conventions. I would posit that the idea is to keep home users out of trouble. Probably a good thing. If 10.6.4 is not capable of using standard naming conventions, (or following standard DHCP conventions), I would just like a confirmation of that so I will stop trying to figure out how to do it. And, stop wasting my time and just hand configure any additional Mac's that enter my network.
    Again, a "confirmation that it can not be done", or "how to do it" is what I am looking for.
    Thank you for the assistance,
    -T

  • Contacts Display and Sort by Company Name

    I have over 1000 contacts in Outlook which synced wonderfully with my new iPhone.
    Alas, I need to lookup and sort by Company Name. This is a VERY standard method for contacts. The options presented by iphone are first and last name, sigh and tech support had no suggestions and the helpful tech support genttleman could find no 3rd party applications which could help.
    Help!
    I relly like my iPhone, but I need to be able to look up contacts and notes by company.
    Thanks

    I have noticed something useful when entering contacts directly into my iPhone. When entering a contact that I want shown in the list by the company name, I enter the company name first (without entering the "first name" and "last name") and save it. If you do it that way, the little square where the photo would be will change from the blank head to some buildings, and the contact will be listed by the company name. You can then go back and edit to add a first and last name and it will stay listed by company name.
    However, if you enter the last name, first name, and company name all at the same time it will list the entry by the "last name" instead of by the company.
    For example, if I want my son's doctor's office to display as "Arizona Pediatrics" instead of "Dr. John Smith" in the contact list, I would enter the Arizona Pediatrics first, save, and then go back in and add the Dr. John Smith in the last name, first name fields.
    I need to check the manual to see if this is detailed, as I stumbled on it accidentaly, but it's pretty useful.
    -SB

  • Outlook 2010 name and company not showing in outlook emails

    When someone emails me my name is not showing up at the top of the email - only my email address. Also in the same email some of the cc'd people's names are showing along with their email addresses, for some people you see their name and company and some
    people you see only their email address. How do I get our names and company name to show up at the top of emails?
    Example:
    Cc: Kevin Kxxxx ([email protected]); [email protected]; Rxxx, Pxxx ([email protected]); George H (S.Pxxxx Hxxxx) <[email protected]>

    That's controlled by the sending copy of Outlook, and depends whether Outlook is aware of the name associated with the email address. For instance, if you send an email using a contact that includes the recipients name that Outlook will add that detail to
    the message being sent, but if you manually enter the email address (and Outlook doesn't have the address and name in its autocomplete cache) then just the email address will be displayed.
    Most likely, if you receive a message that only has the email address then it would indicate that the sender hasn't received an email from that address previously, and as such Outlook is unable to determine what the name is.
    The crucial thing is that there's nothing you can do as the recipient to affect this, it's purely down to the senders Outlook. As the recipient you simply receive the email containing the information that their email client included when it was sent.

  • Sort by company name in outlook

    I use my outlook contacts on my iPhone and need to look up by company name instead of persons name. Is this possible?

    Hi
    This syntax is working when we test from Local Desktop by loading xml data in rtf file and use preview output, But when rtf template is uploaded
    to Oracle EBS and run Report it's not sorted by CF_CUSTOMER_NAME
    Version information is given below we are on Oracle EBS 11.5.10
    Oracle XML Publisher 5.6.3
    Oracle BI Publisher Template Builder for Word 10.1.3.2.0
    Thanks
    Kamalakar.G

  • How to change purchase order logo & company name in runtime

    Hi Experts,
              In Sap B1 9.0 i am adding a purchase order.after that i want to take a preview of that puchase order to take print out.but in my situation am having 2 logos and company names.while adding first purchase order i need a logo1 and company 1 routinly its keep on going after that am adding a purchase order 7 in that i want to change logo2 and company2 how to acheive this in crystal report.
    Regards
    Vinoth

    Hi,
    Not possible to select layout (run time). You have assign default layout for each vendor to get correct logo and company name.
    Why you want different logo and company names? Is it same DB or different DB?
    Thanks & Regards,
    Nagarajan

  • SORT CONTACTS BY COMPANY NAME

    Why don't my contacts sort the same way they are sorted in Outlook? We are a business, we need to sort by a company name not by contact name. Please help.

    I don't work for Apple so I can't speak on their behalf as to their desire to infiltrate the business mobile market.
    All I can do is tell you what the iPhone can and can not do and recommend work arounds for problems that you may be having. From what you have said, you require a feature that the iPhone does not support and the only work around is not satisfactory to you. Given that information, the iPhone is not a good fit for your business needs so you should look into a competing product.
    No one product can be all things to all people. It is up to you to decide if having an iPhone is worth the sacrifices/work arounds necessary.

Maybe you are looking for

  • Expiring Exchange certs on a SBS 2011 Standard server

    We have many servers running SBS 2011 standard. On one particular server (which just passed the three year mark this past weekend) we are seeing MSExchangeTransport Event ID 12015 and 12016, telling us that an internal transport certificate has expir

  • How to check the type of uploaded file

    Hi, experts, how can I check the type of the uploaded file? I am dealing with exception handling now: when user uploads a type of file which is not allowed, then error msg shows up. So first I have to retrieve the type of the uploaded file. Best rega

  • HT202731 mouse left click not working

    Mouse not working properly.  Not sure if it is related to new operating system Yosemite that I downloaded but issue started after that.  Left mouse click either doesn't work at all, or starts working then grabs and won't release what I am clicking on

  • Vendor Invoice blocking!!!

    Hi all Is there any way I can block all the vendor invoices automatically when they are created & then give authorisation to one user to review all those invoices & release them for payment in the payment run program? I know it sounds crazy but I thi

  • INDESIGN CS6 FOLIO BUILDER

    Folio Builder panel is requesting I download the latest update which I have done and installed and restarted. However Folio Builder panel is requesting I download like nothing happened. I am using Indesign CS6 and have updated the correct download fo