Endpoint Protection

 View Only
  • 1.  Connection error while connecting to SEP 12 embedded Database using powershell

    Posted Jan 10, 2013 11:07 AM

     

    Hello,

    I am trying to pull a report connecting to embedded databases of several SEPMs. This worked fine with SEPM 11. The issue started once we upgraded to SEPM 12. I am able to to connect using odbc to all the embedded databases and run the query..no issues even after upgrading. The issue is when trying to connect using powershell script.

     I am getting this error

          Exception calling "Open" with "0" argument(s): "The 'ASAProv.90' provider is not registered on the local machine."

        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
        + FullyQualifiedErrorId : DotNetMethodException
     
    Following is the way I am trying to connect:
     
    $conn = New-Object System.Data.OleDb.OleDbConnection("Provider=ASAProv.90;Data Source=SymantecEndpointSecurityDSN;User
    Id=DBA;Password=*************");
    $ds = New-Object "System.Data.DataSet" "SEMData"
    $query = ***************
    $da = New-Object System.Data.OleDb.OleDbDataAdapter($query,$conn);
    #$dc = New-Object System.Data.OleDb.OleDbDataAdapter($count,$conn);
    $conn.Open();

    Do anyone has the same issue? I read a post with the same issue, but that is not helping.

    If anyone can point me to the right direction, that would be helpful. Thanks in advance.



  • 2.  RE: Connection error while connecting to SEP 12 embedded Database using powershell

    Broadcom Employee
    Posted Jan 10, 2013 11:14 AM

    i assume the script uses asa version 9, with SEPM 12. the asa version is 11, hence you may need to change it accordingly.



  • 3.  RE: Connection error while connecting to SEP 12 embedded Database using powershell

    Broadcom Employee
    Posted Jan 10, 2013 11:36 AM

    adding to above, if the script had dbsrv9.exe replace it with dbsrv11.exe.



  • 4.  RE: Connection error while connecting to SEP 12 embedded Database using powershell

    Posted Jan 10, 2013 11:44 AM

     

    Hi Pete, Thanks for your reply.

     

    For you first post, Can you please let me know the syntax for asa version 11 like ASAProv.90?

    and for you second post, I am not using any dbsrv in my script.



  • 5.  RE: Connection error while connecting to SEP 12 embedded Database using powershell

    Posted Jan 14, 2013 03:30 PM

     

    Anyone who faced this ASA provider issue? 



  • 6.  RE: Connection error while connecting to SEP 12 embedded Database using powershell

    Posted Mar 18, 2013 01:37 PM

     

    Any help on this?



  • 7.  RE: Connection error while connecting to SEP 12 embedded Database using powershell

    Posted Mar 26, 2013 07:19 AM

    Hi

    Repair the SEPM

    Regards

     



  • 8.  RE: Connection error while connecting to SEP 12 embedded Database using powershell

    Posted Mar 26, 2013 07:36 AM

    Hi,

    Please check with this.

    https://www-secure.symantec.com/connect/forums/powershell-how-connect-sep-11-sql-database

    https://www-secure.symantec.com/connect/forums/powershell-how-connect-sep-12-embedded-database