Powershell, information about ODBC DSN from servers to database

Hello,
I have a question regarding moving data from format-list/format-table to database to the database
I want to pull out data about ODBC created on the server and load them to the database - so far I have wrote code which gives me data about ODBCs:
Get-ChildItem -path "HKLM:\SOFTWARE\Wow6432Node\ODBC\ODBC.INI" | ForEach-Object {Get-ItemProperty $_.pspath} | Select-Object PSChildName,Driver,Server,LastUser
The question is: how to load data to different columns when data is like at the bootom of the post(info about DSNs are seperated only by Blank space)?
Add variables to which I add data? Any other way? Any ideas will be appreciated :)
Results:
PSChildName : test-server
Driver      : C:\Windows\system32\SQLSRV32.dll
Description : Some desc
Server      : TEST
Database    : mobile
LastUser    : sa
BLANK SPACE
PSChildName : test-server
Driver      : C:\Windows\system32\SQLSRV32.dll
Description : Some desc
Server      : TEST
Database    : mobile
LastUser    : sa
BLANK SPACE
PSChildName : test-server
Driver      : C:\Windows\system32\SQLSRV32.dll
Description : Some desc
Server      : TEST
Database    : mobile
LastUser    : sa

Get-ChildItem -path "HKLM:\SOFTWARE\Wow6432Node\ODBC\ODBC.INI" |
ForEach-Object {Get-ItemProperty $_.pspath} |
Select-Object PSChildName,Driver,Server,LastUser |
Format-Table -Auto
¯\_(ツ)_/¯
Thanks for posting how to get the DSN listing. I have a related problem though:  the result of the one liner above does retrieve me a number of DSNs, however when I try to connect to one of them in my PC, I get the following error:
Exception calling "Open" with "0" argument(s): "ERROR [IM002] [Microsoft][ODBCDriver Manager] Data source name not found and no default driver specified"
This tells me that somehow powershell is not seeing the DSNs I have configured in the system, and that most likely is looking somewhere else for the DSNs. any suggestions? I've seen some
posts about that message error, but I think first I need to get PS to look for the DSNs in the right place (32- or 64-bit issue maybe). thanks for any pointers  on this issue.
orlando mendez

Similar Messages

  • Gettting information about the processInstance from BPMObject

    To have our businesslogic manageable, we decided to make use of BPMObjects to more clearly define separation of concerns. However, we still need to be able to access information about the processInstance from the BPMObject. I am able to get information about the activity that invoked the bpmObject, and i am also able to get hold of the process id and name. But I havent been successful in getting the actual instanceId.
    I tried Fuego.Lib.ProcessInstance.id.id, but that will only work from an activity, not a BPMObject.
    BR
    Peter Elfström

    To have our businesslogic manageable, we decided to make use of BPMObjects to more clearly define separation of concerns. However, we still need to be able to access information about the processInstance from the BPMObject. I am able to get information about the activity that invoked the bpmObject, and i am also able to get hold of the process id and name. But I havent been successful in getting the actual instanceId.
    I tried Fuego.Lib.ProcessInstance.id.id, but that will only work from an activity, not a BPMObject.
    BR
    Peter Elfström

  • Getting information about an object from JList

    Hi
    I have created a movie application and i have a JList displaying all registered movies, it uses a DefaultListModel to display these.
    I want to be able to click on an element in the JList and then push a button called "Show movie details" to display all information about the selected movie.'.
    Every new movie is added to the DefaultListModel as an object with "Titlle", "Genere" etc. If someone click on a movie, what do i do to get information about which object that was clicked. All i can see is that integers can be returned with the getSelectedIndex/Value methods. If i use one of these methods to get the object from the DefaultListModel, that would work i guess, but what when someone deletes a movie in the middle of the JList, then the indexes wouldnt match.
    Can someone help me out here? :)

    I get a big fat exception when trying to cast the returned object to a Movie object which im using.
    Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: java.lang.S
    tring cannot be cast to Movie
    ...sure that this is the way to do it? If so, what am i doing wrong..

  • How to get information about downtimes of application servers?

    Hi,
    I would like to know, when an application server was down and came online again - downtimes and dates.
    As far as I know, there must be a possibility by using transaction AL11. One of the folders provides information about it, but I do not know which one it is.
    Is there any Tcode available to check this?
    Can anybody suggest me?
    thanks, holger

    Hi,
    Check the transaction SM21 , may be you can get some info from that...
    Regards
    vijay

  • Can I get information about client DNS from GSS?

    Can I get information about the client's DNS request and which Data Center was choosed for this request? How long these informations are stored in GSS? Can I change this settings?
    Thank you.

    Following link will give you good start
    http://www.cisco.com/application/pdf/en/us/guest/netsol/ns378/c649/cdccont_0900aecd80122a78.pdf
    Its a two year old document but gives a good overview.
    For details visit
    http://www.cisco.com/en/US/products/hw/contnetw/ps4162/tsd_products_support_configure.html
    Syed

  • Get information about business object from view implementation class

    Hi,
    i´d like to develop some button behavior in a view. How can i get the information of the related business object like the order or the position. I like to disable buttons if specific status are set.
    Bye Richard

    hi,
    Is needed field available in context nodes or not?
    for example:
    If you want to read STATUS_DESCR attribute from the context node SELECTEDDOC , then code like this
    lr_selected ?=  me->typed_context->SELECTEDDOC->collection_wrapper->get_current( ).
    if lr_selected is bound.
      lv_status = lr_selected->get_property_as_string( 'STATUS_DESCR' ).
    endif.
    activtae the debugging in IF_BSP_WD_TOOLBAR_CALLBACK~GET_BUTTONS method and check the values for context nodes and attributes.
    I mean debugging for:
    me->typed_context
    me->typed_context->SELECTEDDOC
    comp_controller
    regards
    ismail

  • Information about activation-statistics from a DSO.

    Hello,
    after activating a request in an DSO, I can see the three key-figures in the log-window:
    1) Number of inserted Records
    2) Number of updates Records
    3) Number of deleted Records
    Unfortunately I see this information for each Data-Package, but I need it for the whole request.
    Because I have many DSOs and very many Data-Packages it is very hard to add this data manually.
    Is this information stored in any table, so that i can get it with the Data-Browser (SE16) ?
    Thanks
    Armin

    Hi Alice,
    in the table you mentioned, I can see only the active records.
    But I will try to analyse the change-log of the DSO, might be this will bring the needed information.
    (The reason for all of this effort is, to find out, wether it is neccessary to implement a delta-handling for a DSO or not.)
    Armin

  • Helpful Information about getting music from ANY ipod onto your itunes!!!

    This is a message letting all Windows itunes users how to put music from any ipod onto their itunes, or other music player. Many people are annoyed when itunes doesn't let them put music from an ipod, thats not registered with their computer, into their itunes. I found that it is possible. First, you must open Search from the start menu and make sure your ipod is connected to your computer. Next, set the search prefrences to search for hidden files and tell it to search for music(on the ipod). Once you begin the search, you will be shown all the hidden music files that are on your ipod. After the search, just drag the files to itunes and they'll import.*
    *Note: the files wont say the names of the songs until you import them into itunes or any other music player.
    PowerbookG4   Mac OS X (10.4.9)   Helpful Info for Windows

    This is a message letting all Windows itunes users
    how to put music from any ipod onto their itunes, or
    other music player. Many people are annoyed when
    itunes doesn't let them put music from an ipod, thats
    not registered with their computer, into their
    itunes. I found that it is possible. First, you must
    open Search from the start menu and make sure
    your ipod is connected to your computer. Next, set
    the search prefrences to search for hidden
    files and tell it to search for
    music(on the ipod). Once you begin the search, you
    will be shown all the hidden music files that are on
    your ipod. After the search, just drag the files to
    itunes and they'll import.*
    *Note: the files wont say the names of the songs
    until you import them into itunes or any other music
    player.
    PowerbookG4
      Mac OS X (10.4.9)   Helpful Info for
    Windows

  • A way to get information about colored points from a graph?

    Two questions:
    1. Is there a possibility to know whether a specific point is already plotted in a graph and what is the color of that specific point?
    2. Is there a way to use the legend in order to show what each colored point represents (not lines, only colored points..)?
    Thank you!

    1. I used PlotPoint & a function "returncolor" in order to make each colored point present a different situation depend on variable 'x':
    double m_abs (double x) {
    if (x < 0) return -x;
    return x;
    int returncolor (double x) {
    if (m_abs(x) <= 0.05) return VAL_GREEN;
    if (m_abs(x) <= 0.15 && m_abs(x) > 0.05) return VAL_BLUE;
    if (m_abs(x) <= 0.25 && m_abs(x) > 0.15) return VAL_DK_MAGENTA;
    return VAL_RED;
    The problem occurs when PlotPoint used twice for the exact same point with different colors so only the last colored point would remain.
    I want that in this case, only the color with the maximum variable 'x': would remain..
    Sם I can solve it by saving the data to 2D array.. but I thought maybe there is an option to get true or false whether a point exist on a specific location in a graph or not, and what is the color of that point.
    2. Yes, I have already used annotations., but too bad there is no way to put legend for colored points..

  • Document from file - how better store information about document?

    I have a text file that contains information about documents (content from groups than define the document - one row is one document). Every group content from fields (from 10 to 70 in every group). Document consist of 9 groups. In one documen can difference number of groups (> 1 group). E.g. one document can have 3 group1, 2 group6. In another document 2 group9, 1 group 6 and so on. I need to store document in DB and must edit document (by JFrame). To store document I use object MyDocument to store information about document.
    3 solutions:
    1. Store every group as list from hastables
    public class MyDocument {
       private ArrayList<Hashtable<String, String>> group1;
       private ArrayList<Hashtable<String, String>> group2;
       private ArrayList<Hashtable<String, String>> group3;
       private ArrayList<Hashtable<String, String>> group4;
       private ArrayList<Hashtable<String, String>> group5;
       private ArrayList<Hashtable<String, String>> group6;
       private ArrayList<Hashtable<String, String>> group7;
       private ArrayList<Hashtable<String, String>> group8;
       private ArrayList<Hashtable<String, String>> group9; 2. Store all groups as one list from hashtables
    public class MyDocument2 {
      private ArrayList<Hashtable<String, String>> allGroups;
    } 3. Store groups as lists consist from individual objects (MyDocumentGroup1, MyDocumentGroup2 and so on.)
    public class MyDocument3 {
       private ArrayList<MyDocumentGroup1> group1;
       private ArrayList<MyDocumentGroup2> group2;
       private ArrayList<MyDocumentGroup3> group3;
       private ArrayList<MyDocumentGroup4> group4;
       private ArrayList<MyDocumentGroup5> group5;
       private ArrayList<MyDocumentGroup6> group6;
       private ArrayList<MyDocumentGroup7> group7;
       private ArrayList<MyDocumentGroup8> group8;
       private ArrayList<MyDocumentGroup9> group9;
    public class MyDocumentGroup1 {
       private ArrayList<Hashtable<String, String>> group1;
    public class MyDocumentGroup9 {
       private ArrayList<Hashtable<String, String>> group9;
    }What solutions is better? Or maybe has another solution?

    Maybe better to store one document in ONE HashMap
    public class M2Document {
         private HashMap<String, String> data = null;in the next format:
    -------------key ---------value----------
    GroupID_FN | some value
    where, GroupID is ID of group, FN - field number
    example:
    -------------key ---------value----------
    Group1_1 | some value
    Group1_2 | some value
    Group2_1 | some value
    Group2_2 | some value
    Group3_1 | some value
    Group3_2 | some value

  • A JavaBean that gives information about a job - saving parameter problem

    Hi,
    I'm working on a Java-Applet that gives the user some information about the running job.
    I modified a solution from Casey Bowden (thx to him) that lanches a seperate applet, from the current forms session, to update the user on the status of the report. It works great but I have one more problem.
    If the Report getting an error, the programmer and organisator would like to replicate the error so it would be comfortable to see how the report get started. There is the RW_SERVER_JOB_QUEUE table that saves all the information the Report Server posts its information about the current report to the database each time a job request is submitted. I'm saving some information from the rw_server_job_queue in a seperate table with other specific information for our own administration.
    The only information that I don't get are the parameters the report getting started. I would like to save all parameters in one column like the command_line in RW_SERVER_JOB_QUEUE table each time a job request is submitted. Is there any solution to get the parameters from the starting report?
    I'm working with Oracle Forms 6i and Reports 6i.
    Thx for any help.

    Hello,
    To call a Palestine # on Skype dial 970 + Area Code + 7 digits (local number)
    Do NOT dial the "00" prefix.
    TIME ZONE - US EASTERN. LOCATION - PHILADELPHIA, PA, USA.
    I recommend that you always run the latest Skype version: Windows & Mac
    If my advice helped to fix your issue please mark it as a solution to help others.
    Please note that I generally don't respond to unsolicited Private Messages. Thank you.

  • Change ODBC DSN in Application KO?

    I am learning Authorware 7. I used the Application Knowledge
    Object to create a quiz with login and results tracking via ODBC.
    It worked fine and automatically created an Access database. I
    replicated the database structure in MySQL and created an ODBC DSN
    for the MySQL database. I've looked around in Authorware, but I
    can't find a way to tell the KO to use a different ODBC connection.
    If I can.... I'll be happy.

    From Macromedia Authorware email support, I was told it is
    not possible to change the ODBC connection within an Application
    knowledge object, but I can change it within a Quiz knowledge
    object. I'll follow that path instead.

  • Get information about xlate

    Hello all!
    I need take information about NAT configuration from ASA5520 using SNMP.
    Could you help me? Is it possible? If yes how can I do it?
    Thanks

    hi,
    i'm not sure how to do it via SNMP but you could simply execute show xlate and show nat or show nat detail to get the info on your ASA.

  • Extracting informations about rectangles, lines, fields etc from PDF

    I'm looking for a way, to extract rectangles, lines, fields etc from a PDF, for example think of a blue rectangle which is drawn in a Word document, which is later exported to pdf. I need informations about the position of the rectangle, the color, the size, if it is filled or not, etc. Is there something like an API or an SDK which can help me? I searched for quite a time (so please, no RTFM-answers), but the only references I found where about producing PDF or extracting text, images or graphics (oh, just at the moment, I had the idea, that lines and rectangles could be coded as vector-graphics in PDF, could that be possible?).
    I'm thankful for all answers and ideas (even if you just post links with informations),
    kind regards,
    Pivo

    Yes, lines and rects are coded as vector graphics (or specifically path drawing instructions) in a PDF.
    Adobe offers an SDK around Adobe Acrobat which would enable you to get this information. If you need a standalone solution, we also offer our full PDFLibrary.

  • Firefix sad:"Copy/Cut/Paste is not available in Mozilla and Firefox. Do you want more information about this issue?" But,I can do the that from Opera...What should I do?

    Copy/Cut/Paste is not available in Mozilla and Firefox.
    Do you want more information about this issue?
    That's what Firefox sad to me...I was Rich text editing,but I can
    not use copy paste on.
    I did the same site and Rich text editing with Opera,
    and there was no problem.
    I love Firefox,and I want ti use it,but if this is not posibile to do in Firefox,I must go with Opera from now on.
    Pleace,responde to me,I need to fix a problem.
    I hope you understanded my Engish!
    Thank you...

    Try to use the keyboard if the buttons on the web page aren't working.
    * Copy: Ctrl+C or Ctrl+Insert
    * Paste: Ctrl+V or Shift+Insert
    * Cut: Ctrl+X or Shift+Delete
    See:
    *http://kb.mozillazine.org/Granting_JavaScript_access_to_the_clipboard
    *https://addons.mozilla.org/firefox/addon/allowclipboard-helper/

Maybe you are looking for

  • Java 7 Update 9 don't work in mac os 10.7.5

    I have Mac OS X 10.7.5. I have installed Java 7 Update 9 as confirmed by the Java Control Panel. When I go to java.com and try verifying installation I got no response, so there is a problem with my installation. I have reinstalled Java and I have de

  • Access for the Public / Site problems

    What is the best way to give access to the Public & still keep the private sections / courses, etc. private? According to the docs, the All System credential's access permission should be updated to "Download" for the public to see anything. If I sel

  • Artifacts in printing eps

    I have designed 18 "tee-signs" for our disc golf course. They print fine from Illustrator to various color printers. Now, we are getting them printed on a sticker which we will affix to a metal plate and post near the tees. The printer we are working

  • 5.7.1 comes up when sending mail

    Here is what comes up when ever I try sending mail from my Mac: Alert: an error occurred while sending mail. the mail server responded: 5.7.1 sender address rejected not owned by user. I can receive mail but cannot send.

  • IDX5 - System is not a central XI; cannot start program

    hi all - Did anyone come across this error message - "System is not a central XI; cannot start program" when trying to execute the tcode - IDX5 on the XI box? I pushed an IDOC - MATMAS05 from IDOC to XI. It doesn't come into XI. 1. I checked the SM58