How to Query remote PC's registry by OU for 2 values and export to CSV file.

I'm new to scripting and to Powershell but this is what I have managed to put together so far. Of course it fails. We have two custom entries in the registry that I want to query remote workstations for these values, Monitor 1 and Monitor 2. Output to a
CSV along with the workstations name. Because of our AD structure I figured its just easier to input the OU individually as seen in the script. That portion of the script seems to work. I get the following error in bold when I run the script: I've Google'd
and tinkered with this for a week now with no resolution and seem to be going in circles.  And yes, I had help to get this far.
Exception calling "OpenRemoteBaseKey" with "2" argument(s): "The network path was not found.
At C:\utils\RegMonitor2.ps1:33 char:5
+     $regKey = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey($Hive,$result.pro ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : IOException
Exception calling "OpenRemoteBaseKey" with "2" argument(s): "The network path was not found.
At C:\utils\RegMonitor2.ps1:33 char:5
+     $regKey = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey($Hive,$result.pro ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : IOException
# 1) Searches Active Directory for all Computers under said OU
# 2) Searches remote registry of those machines for the mentioned Monitor and Monitor2 subkeys.
# 3) Exports CSV (Can be opened and saved as excel format later) with ordered columns Computername, Monitor1 value, monitor2 value.
# ================================================================
$SearchPath = "OU=XXX,OU=XXX,OU=XXX,DC=XXX,DC=XXX,DC=XXX"
$objSearcher = New-Object System.DirectoryServices.DirectorySearcher
$objSearcher.SearchRoot = New-Object System.DirectoryServices.DirectoryEntry("LDAP://$SearchPATH")
$objSearcher.PageSize = 1000
$objSearcher.Filter = "(objectClass=computer)"
$objSearcher.SearchScope = "Subtree"
$colProplist = "name"
$colResults = $objSearcher.FindAll()
$Store = @()
$Hive = [Microsoft.Win32.RegistryHive]"LocalMachine";
foreach ($result in $colResults)
# Use $result.properties.name to retreive ComputerName
$obj = New-Object PsObject
$obj | Add-member -type noteproperty -name "Computername" -Value $result.properties.name
$regKey = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey($Hive,$result.properties.name);
$ref = $regKey.OpenSubKey("SYSTEM\CurrentcontrolSet\control\Session Manager\Environment");
$obj | Add-member -type Noteproperty -name "Monitor1" -value $ref.OpenSubKey("Monitor")
$obj | Add-member -type Noteproperty -name "Monitor2" -value $ref.OpenSubKey("Monitor2")
$store += $obj
$store | Select-Object Computername,Monitor1,Monitor2 | Export-CSV -noTypeInformation -Path "Pathtosave.csv"
People are always promising the apocalypse. They never deliver.
Ok, I have modified the end of the script a bit, and no more error: Instead I get an unexpected output.
foreach ($result in $colResults)
    # Use $result.properties.name to retreive ComputerName
    $obj = New-Object PsObject
    $obj | Add-member -type noteproperty -name "Computername" -Value $result.properties.name
    $regKey = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey($Hive,$result.properties.name);
    $ref = $regKey.OpenSubKey("SYSTEM\CurrentcontrolSet\control\Session Manager\Environment");
    $obj | Add-member -type Noteproperty -name "Monitor1" -value $ref.OpenSubKey("Monitor")
    $obj | Add-member -type Noteproperty -name "Monitor2" -value $ref.OpenSubKey("Monitor2")
    $store += $obj
$store | Select-Object Computername,Monitor1,Monitor2 | Export-CSV -noTypeInformation -Path "C:\Utils\Data.csv"
Unexpected output:
"Computername","Monitor1","Monitor2"
"System.DirectoryServices.ResultPropertyValueCollection",,
"System.DirectoryServices.ResultPropertyValueCollection",,
"System.DirectoryServices.ResultPropertyValueCollection",,

Hi,
What do your registry values look like in the Monitor and Monitor2 subkeys?
EDIT: This might help:
# Retrieve list of computers using Get-ADComputer and process each
Get-ADComputer -Filter * -SearchBase 'OU=Test PCs,DC=domain,DC=com' | ForEach {
# Verify PC is alive
If (Test-Connection $_.Name -Quiet -Count 1) {
# Connect to registry
$remoteHive = [Microsoft.Win32.RegistryHive]“LocalMachine”;
$regKey = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey($remoteHive,$($_.Name))
# Open the Environment key
$ref = $regKey.OpenSubKey('SYSTEM\CurrentcontrolSet\control\Session Manager\Environment')
# Create an ordered hashtable with the data from string values named 'String Value One/Two' in Monitor and Monitor2 subkeys
# You'll need to adjust these values based on your actual data
# If you are running v2, remove [ordered] below (so the line reads $props = @{)
$props = [ordered]@{
Computer=$_.Name
Monitor =$ref.OpenSubKey('Monitor').GetValue('String Value One')
Monitor2=$ref.OpenSubKey('Monitor2').GetValue('String Value Two')
# Create a custom object based on the hashtable above
New-Object PsObject -Property $props
} | Sort-Object Computer | Export-Csv .\MonitorRegistryCheck.csv -NoTypeInformation
# The line above sorts the output object by the computer name and then exports the object to a CSV file
Don't retire TechNet! -
(Don't give up yet - 12,575+ strong and growing)

Similar Messages

  • How can I get the apps that I paid for on iTunes and the app store I don't have a computer I paid for them using my ipad and everytime I try to redownload them it asks for my card number and when I put the number in it tells me that the number is not a wo

    Ok can anyone tell how I can get the apps that I paid for on iTunes and the app store using my I pad because I don't have a computer and when I try to redownload the apps it keeps asking me for my card number and when I give it my card info it says that it's an invalid number when I know that it's not

    If you are getting an 'invalid security code' message then is the address on your iTunes account exactly the same (format and spacing etc) as on your credit card bill : http://support.apple.com/kb/TS1646 ? If it is then you could try what it says at the bottom of that page :
    If the issue persists, contact your credit card company and verify that they and any company they use to process credit card authorizations have the correct information on file.
    And/or try contacting iTunes support : http://www.apple.com/support/itunes/contact/ - click on Express Lane, then iTunes > iTunes Store

  • How to create  a datasource for 0COSTCENTER to load data in csv file  in BI

    how to create  a datasource for 0COSTCENTER to load data in csv file  in BI 7.0 system
    can you emil me the picture of the step about how to  loaded individual values of the hierarchy using CSV file
    thank you very much
    my emil is <Removed>
    allen

    Step 1: Load Required Master Data for 0CostCenter in to BI system
    Step 2: Enable Characteristics to support Hierarchy for this 0Cost Center and specify the External Characteristic(In the Lowest Node or Last Node) while creation of this Characteristic InfoObject
    Step 3: On Last Node of Hierarchy Structure in the InfoObject, Right Click and then Create Hierarchy MANUALLY by Inserting the Master Data Value as BI dosent Support the Hierarchy load directly you need to do it manually....
    Step 4: Mapping
    Create Text Node thats the first node (Root Node)
    Insert Characteristic Nodes
    Insert the Last Node of the Hierarchy
    Then you need to create a Open hub Destination for extracting data into the .csv file...
    Step1 : Create the Open Hub Destination give the Master Data table name and enter all the fields required....and create the transformations for this Open Hub connecting to the External file or excel file source...then give the location on to your local disk or path of the server in the first tab and request for the data...It should work alright let me know if you need anything else...
    Thanks,
    Sandhya

  • How to save down from InDesign Creative Cloud version to CS5? Have exported as .idml file but still get messages that plug-ins are missing although CS5 confirms it is fully updated.

    How to save down from InDesign Creative Cloud version to CS5? Have exported as .idml file but still get messages that plug-ins are missing although CS5 confirms it is fully updated.

    Yes. Thanks. I misled myself based on another post. Successfully did this by selecting "File," "Save a copy ..." then choosing "for CS4 or later (IDML)"
    It required some patience and several tries, but I think that was due to hardware (memory) being overloaded by CC Cloud version or something. It was a 50 MB, 500-page file and took 17 minutes to convert/save,
    Re-capping: from CCloud to CS5, don't use "Export" (to IDML); use "Save as" or "Save a copy" and select "for CS4 or later (IDML)".
    Advice much appreciated.

  • Latest version of Lightroom will not download RAW files from my D750. How does one get around this? Bought Lightroom for it's ability to manage RAW files and now very disappointed.

    Latest version of Lightroom will not download RAW files from my D750. How does one get around this? Bought Lightroom for it's ability to manage RAW files and now very disappointed.

    Here is the contents of a batch file which will convert whatever raws you drop on it:
    "C:\Program Files (x86)\Adobe\Adobe DNG Converter" -cr7.1 -dng1.4 -p0 %*
    Once you download the latest converter (release candidate from adobe labs, if necessary), and save the appropriate contents of the batch file (change path to match your system, and parameters to match your druthers, if applicable), the procedure is:
    1. Drop raw files on bat file.
    2. Import as usual (the DNGs).
    Not too bad once you're set up (if DNG converter supports your raws).
    Documentation:
    http://wwwimages.adobe.com/content/dam/Adobe/en/products/photoshop/pdfs/dng_commandline.pd f
    Note: on Mac, you may need to use "$@" (with the double-quotes) instead of %* (which is dos batch syntax), and you will need to use the full path to the converter executable file, e.g.
    “/Applications/Adobe DNG Converter.app/Contents/MacOS/Adobe DNG Converter”
    If too much, just use the GUI instead of the bat file.
    Rob

  • How to get sql query data and write into csv file?

    I am writing to seek help, in how can I create bat. script which can execute the following logic:
    connection to the database
    run sql query
    create CSV file
    output query data, into CSV file
    save the CSV file
    osql
    -S 84.18.111.111
    -U adw
    -P rem
    -i "c:\query.sql"
    send ""
    sed -e 's/,\s\+/,/g' MCI_04Dec2014.csv > localNoSpaces.csv
    -o "c:\MCI_04Dec2014.csv"
    This what i have so far, and I am little struggling with the logic after creating CSV file. I am unable to get the above script to work, please advice further, where I may be going wrong. 
    Can you create if statement logic within window's script, to check for null parameters or data feeds?
    Any hints would be most appreciated. 

    Thank you for your reply. 
    Apology for posting the code irrelevant to the forum, as I am still novice scripting user.  
    My goal is to create window's script which can compute the above logic and send the final output file (csv), to FTP folder. 
    Can this logic be implemented via bat. script, if so, is there a example or tutorial i could follow, in order to achieve my task. 
    Any help would be much appreciated. 

  • Query registry with powershell for certain value

    Hi,
    Ever since Windows 7 we are having trouble with USB-printers. For some reason they get disabled ever so often.
    The only solution we have then, (that works) is to fully remove and re-install the device.
    However, we give our printer a specific name "loketprinter". If you remove the printer, some values with "Loketprinter" remains in the registry. These are located in various locations troughout the registry.
    Therefore i'm looking for a fast way to query and delete values or keys that contain "loketcomputer".
    I want to search the whole register.
    Could you please get me on my way?

    after some googeling and reading the help file i've created the following: 
    Get-ChildItem HKCU:, HKLM: -Recurse -Include *Loket* -ErrorAction SilentlyContinue | Select-Object -ExpandProperty Name
    This only find parts of it, but at least its something.
    Its really slow though

  • How to pivot using pivot clause of sqlserver 2005 for three values

    Dear all
                Is it possible to formulate the query using pivote clause of sqlserver 2005.
    ( Table name is) BridgeHawra
    ReportDate,                 , Pole, DiameterCost,Flag,OuterDiaCost
    01 jan 2014,               ,1     ,   4.5      ,yes,6
    01 jan 2014,               ,2     ,   4.5        ,no,6
    01 jan 2014,               ,3    ,  5.5         ,no,6
    02 jan 2014,               ,4     ,  5.5        ,no,5.9
    02 jan 2014,               ,5     ,  5.5        ,no,6
    1)Pole Col will have unique value.
    o2)One pole will have one DiameterCost, but n number of DiameterCost can be there.
    I have to show a report which should show , count of poles and cost(DiameterCost* pole count of the day of each DiameterCost) for each date and DiameterCost.
    as following
    DateOfReport            ,  PoleCountofDiameterCost4.5, DiameterCost4.5, PoleCountOfDiameterCost5.5,DiameterCost5.5
    01 jan 2014              , 2                                      
          ,(2*4.5)                        ,1                                   
    ,(1*5.5)
    02 jan 2014              , 0/null                                      ,0/null
                              ,2                                
       ,(2*5.5)
    yours sincerely

    Yes it is possible though you need to use dynamic pivot technique. Dynamic pivot allow you to select/display column names dynamically.
    Below example does not use dynamic pivot,
    --create table #temp(ReportDate datetime,Pole int, DiameterCost decimal(5,2),Flag varchar(3),OuterDiaCost decimal(5,2))
    --insert into #temp values('01 jan 2014',1,4.5,'yes',6)
    --insert into #temp values('01 jan 2014',2,4.5,'no',6)
    --insert into #temp values('01 jan 2014',3,5.5,'no',6)
    --insert into #temp values('02 jan 2014',4,5.5,'no',5.9)
    --insert into #temp values('02 jan 2014',5,5.5,'no',6)
    ;with cte as (
    select ReportDate,
    DiameterCost * PoleCount as DiameterCost,
    PoleCount ,
    'PoleCountofDiameterCost'+cast(DiameterCost as varchar) column1,
    'DiameterCost'+cast(DiameterCost as varchar) column2
    from (
    select ReportDate,DiameterCost,Count(Pole) as PoleCount from #temp
    group by ReportDate,DiameterCost
    ) x
    ),cte1 as (
    select * from cte
    pivot( max(PoleCount) for column1 in ([PoleCountofDiameterCost4.50],[PoleCountofDiameterCost5.50])
    ) pvt
    pivot( max(DiameterCost) for column2 in ([DiameterCost4.50],[DiameterCost5.50])
    ) pvt1
    select ReportDate,
    Max([PoleCountofDiameterCost4.50]) [PoleCountofDiameterCost4.50],
    Max([DiameterCost4.50]) [DiameterCost4.50],
    Max([PoleCountofDiameterCost5.50]) [PoleCountofDiameterCost5.50],
    Max([DiameterCost5.50]) [DiameterCost5.50] from cte1
    group by ReportDate
    Regards, RSingh

  • How to  find the Open sale orders till date for  given plant and material ?

    Hi experts,
                     I have a requirement to calculate the open sale orders for a given plant and material. I have tried in VA05 wherein i can get only for the material and sales area combination. From the document nos obtained from VA05 i can then find the plant. But my question is how do i get the output of VA05 into my progra. (can i use submit for a module pool report ).
    Also if ther is some other standard table or Function module to find the open sale orders till a given date ,it will be even more helpful....in which case i can drop the VA05 route.
    Kindly help
    Thanks in advance
    Ashwin

    Hi Ashwin,
        You can use SAP Tables VBAK and VBUP to get to know if the document is complete or not.
       VBUK-GBSTK is the field that will give you the status of the Sales Order .
      VBUK is used at header level , whereas VBUP is used for Item level.
      So in your case what I would do is :
      Get the Sales Orders that satisy the plant and material criteria from VBAP table , take this Sales Document numbers and go to VBUK or VBUP table to get the Sales Order Status. 
       If I need to find the open quantity as well I will link to VBFA table based on the document number.
      Reward if helpful.
    Thanks,
    Imran

  • How can I use two single-dimensional arrays-one for the titles and array

    I want to Use two single-dimensional arrays-one for the titles and one for the ID
    Could everyone help me how can i write the code for it?
    Flower
    public class Video
    public static void main(String[] args) throws Exception
    int[][] ID =
    { {145,147,148},
    {146,149, 150} };
    String[][] Titles=
    { {"Barney","True Grit","The night before Christmas"},
    {"Lalla", "Jacke Chan", "Metal"} };
    int x, y;
    int r, c;
    System.out.println("List before Sort");
    for(c =0; c< 3; ++c)
    for(r=0; r< 3; ++ r)
    System.out.println("ID:" + ID[c][r]+ "\tTitle: " + Titles[c][r]);
    System.out.println("\nAfter Sort:");
    for(c =0; c< 3; ++c)
    for(r=0; r< 3; ++ r)
    System.out.println("ID:" + ID[c][r]+ "\tTitle: " + Titles[c][r]);

    This is one of the most bizarre questions I have seen here:
    public class Video
    public static void main(String[] args) throws Exception
    int[] ID = {145,147,148, 146,149, 150};
    String[] Titles= {"Barney","True Grit","The night before Christmas", "Lalla", "Jacke Chan", "Metal"};
    System.out.println("List before Sort");
    for(int i = 0; i < Titles.length; i++)
       System.out.println("ID:" + ID[i]+ "\tTitle: " + Titles);
    System.out.println("\nAfter Sort:");
    for(int i = 0; c < Titles.length; i++)
    System.out.println("ID:" + ID[i]+ "\tTitle: " + Titles[i]);
    Generally you don't use prefix (++c) operators in you for loop. Use postfix (c++).
    Prefix means that it will increment the variable before the loop body is executed. Postfix will cause it to increment after.

  • How to restrict users from printing documents and exporting to local file

    Hi SAP gurus,
    I have two questions.
    1. How can I restrict users from printing a document? i.e. billdoc? I would like to know if I could block it though authorization. If yes, what auth obj to use?
    2. How to restrict certain users from exporting to local file? the System> List>Save-->Local File. I have tried restricting it using auth object S_GUI but it seems it is only applicable to older versions of SAP. im on ecc6.
    Thank you in advance.

    Hi,
    Check this:
    Create your own gui status and attach it to the list in the event START-OF-SELECTION.
    In the menu painter extra -> adjust template.
    Make it a list status and you will see all the standard list options appear including list->download
    Deactivate the ones you don't want. 
    If you just want to prevent users from downloading the list you can achieve this with authorization object S_GUI, activity 61. Menu option will still be there though.
    Please note that if you remove authorisation for S_GUI activity 61 then all downloads will not be possible. 
    If you just want to disable downloads only for a particular report, you can try this test program:
    Code:
    REPORT ztest. 
      DATA: PROGNAME LIKE SY-CPROG value 'Z_CHECK_AUTH', 
            FORMNAME LIKE SY-XFORM value 'F_CHECK_AUTH'.
    START-OF-SELECTION. 
        CALL FUNCTION 'SET_DOWNLOAD_AUTHORITY' 
             EXPORTING 
                  FORM    = FORMNAME 
                  PROG    = PROGNAME 
             EXCEPTIONS 
                  OTHERS  = 1.
      WRITE: / 'TEST'.
    You also need this:
    Code:
    PROGRAM z_check_auth.
    FORM f_check_auth USING pe_result TYPE i. 
      pe_result = 5. 
    ENDFORM.
    Also have a look at the exit SGRPDL00.
    Hope this helps you.
    Rgds,
    Raghu

  • How to invoke and receive from csv file

    I have an employee.csv file which contains empid and empname deatils,
    I want to fetch corresponding empid by giving input as empname from the employee.csv file and write empid into DB
    I had created an read file for employee.csv, but for the receive activity only one variable is created
    how to give input(empname) to the file and to get the empid from that file.
    Please help me from this issue

    In receive activity output file will contain the information of the entire list of empid and emp names. Wrive java code in java embedded activity to fetch the details of your desired output then use assign activity to continue your flow.
    try {                
    oracle.xml.parser.v2.XMLText text =(oracle.xml.parser.v2.XMLText)getVariableData("OnMessage_composeAndDistributeMQ_InputVariable","payload","/client:composeAndDistributeRequest/client:ControlInformation/client:SystemID/text()");
    String SystemID = text.getNodeValue();
    Calendar cal = Calendar.getInstance();
    SimpleDateFormat justDateTime = new SimpleDateFormat("yyyyMMddHHmmss");
    String DateTimeString = justDateTime.format(cal.getTime());
    SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss:SSS");
    Date now = new Date();
    addAuditTrailEntry("Now = " + df.format(now));
    long timeInMilli = now.getTime();
    addAuditTrailEntry("Date() - Time in milliseconds: " + now.getTime());
    String DRI = SystemID + "003" + DateTimeString + timeInMilli + "0000001";
    setVariableData("Invoke_RequestMQ", "body", "/ns2:DocumentRequests/ns2:DocumentRequest/ns2:MailItemInfo/ns2:DocumentRequestId", new String(DRI));
    catch (Exception e) {                
    e.printStackTrace();
    }

  • How do I expand a ActiveDirectorySubnetCollection so I can view all elements and export to a CSV file?

    Hello,
    In the following, I list SiteName, Location, Subnets, and Severs, however I don't see all the servers or the subnets, presumably because Subnets are an ActiveDirectorySubnetColletion and Servers are a ReadOnlyDirectoryServerCollection.  So I want to
    expand this property so I can see all the elements of the collection, or array.  I've tried the Select-Object -ExpandProperty, but I get an error due to -ExpandProperty looking for a string.
    Any suggestions on how to expand both the Subnet and Server collections so I can see all elements and I can export to a CSV file?
    [cmdletbinding()]
    param()
    $MyArray = @()
    $Sites =[System.DirectoryServices.ActiveDirectory.Forest]::GetCurrentForest().Sites
    foreach ($Site in $Sites) {
    $obj = New-Object -Type PSObject -Property (
    "SiteName" = $Site.Name;
    "SiteLocation" = $Site.Location;
    "SubNets" = $Site.Subnets;
    "Servers" = $Site.Servers
    $Obj | Sort $Site.Name | FL
    $MyArray += $obj
    $MyArray | export-csv -path $env:HOMEPATH\SitesSubs.csv -NoTypeInformation
    Thanks for your help! SdeDot

    I've got a script that might help you out:
    http://gallery.technet.microsoft.com/scriptcenter/Convert-OutoutForCSV-6e552fc6
    Blog reference:
    http://learn-powershell.net/2014/01/24/avoiding-system-object-or-similar-output-when-using-export-csv/
    Boe Prox
    Blog |
    Twitter
    PoshWSUS |
    PoshPAIG | PoshChat |
    PoshEventUI
    PowerShell Deep Dives Book

  • How to merge adjustment layers to several layers and export layers to files

    Hi!
    I have now exactly the same problem as below with over 1000 images, I have saved them in .psd that has over 100 layers each. On top of those there is curves and levels layer that affects every layer below. I want to save all images to .jpg for videoedit with those curves at least. I don't want to merge same curves 100 times. Is there a solution in phothoshop cs5 or cs6 available? Would save alot of working hours. All I have got by this far is blank white images of adjustment layers and non adjusted jpg-files.
    This discussion was opened in 2010 and I quess this is same problem:
    How to merge adjustment layers to hundreds of layers?
    Jul 28, 2010 10:38 AM
    Say I have a photoshop File with 100 layers.  And say I created 3 adjustment layers on top of those 100 layers to get the adjustments that i want for those layers.   I'm happy with the adjustments but Then I NEED to merge those 3 adjustment layers to ALL those 100 layers.   Is there a way to easily permanently apply the adjustments to each of those layers without having to do it manually?     I absolutely need to merge the adjustments to the seperate layers because of how the layers are being used in a seperate 3d program.   
    So far what I've been doing is duplicating the adjustment layers for each layer and merging them to said layers separately.. Anyone have a better way? I wish I could just right click the adjustment layer and Tell it to merge to everylayer it affects  or apply to every layer underneath it!
    Anyone?
    Thanks!
    Thanks alot if u solve this!
    -Anne

    first
    doing action on one photo only with any effects or filtters .
    second
    doing Droplet  = File > Automate > Create Droplet.
    for more details with pictures here
    http://www.absba.org/showthread.php?t=1172143

  • How to save and open Text/csv file over APS

    Hi,
    I want to save(and open later) data from database block in text/csv file format over Application server, I did a lot of search here on Forms but didn't found a reasonable solution, Some one plz help me.
    Thanks and Regards, Khawar.

    As long as you are using the Report Generation Toolkit, there is no need to use ActiveX for the purpose of saving the Excel file -- Save Report will do that for you.  You can then export (as text) all of the Excel data and use the Write Spreadsheet File to make the .CSV file.  Here is how I would rewrite the final bits of your code --
    I cleaned up the wires around Excel Easy Table a bit.  You'll see I made a VI Icon for Replace Filename, which does (I think) a nicer job of self-documenting than showing its Label.  To make the filename, add the correct extension (.xlsx for Excel, .csv for CSV), use Build Path to combine Folder and Filename, and wire to Save Report.
    The next two functions add the Extract Everything and Write to Spreadsheet, using a Comma as a separator, which makes a CSV copy for you.
    Bob Schor

Maybe you are looking for

  • ITunes 10.5 won't open error

    When I open iTunes I get the same error The procedure entry point kCMByteStreamNotification_AvailableLengthChanged could not be located in the dynamic link library CoreMedia.dll. and iTunes was not installed correctly. Please reinstall iTunes Error 7

  • Receiving Notifications via email

    I have a user who is not receiving an email notification when a requisition is forwarded to her for approval. Can anyone tell me what could be wrong?

  • Remove drm activation

    Please remove DRM activation from all my devices My Adobe Id is [email protected]

  • Help with rotating circular menu

    Hi there. With help from a few tutorials, I've made a menu with 5 buttons that rotate around a central Clip. So far so good. Except I need to add a lightning that will point toward the center whenever a button is activated. Much like picture below: E

  • Is it possible to create a script that would convert 1/1/2013 (m/d/yy) to 01/01/2013 (mm/dd/yyyy)?

    Thanks in advance. Based on the feedback that I have received on my forms, I have found that users get frustated with the alert regarding the date not being formatted as mm/dd/yyyy. Is there a way to convert their entry of m/d/yy to mm/dd/yyyy? Thank