Help what am doing wrong.

Hi,
I need to get the count of two tables and if they are different, i can’t proceed.
For that i had written first a query . While executing is says error. can anyone
figure it out why this error is coming OR am making any wrong, Please advice.
Version : Oracle8i Enterprise Edition Release 8.1.7.4.0 - 64bit Production
Query:
select count(*) over(),a.*,Row_Number() over(partition by PROCESS_D order by 1) from  EC a
minus
select count(*) over(),b.*,Row_Number() over(partition by PROCESS_D order by 1) from  b_p.EC@prd00 b;
Note :   Table b is from other schema.thnaks in advance

Hi,
Count the number of records in the EC transaction table vs. the number of transactions in the b_p table on the ack database.
Then if they are different, I need to stop processing it.
For this am writing a query. is the approach correct. please advice

Similar Messages

  • I just purchased a complete series on itunes... Im trying to watch the episodes but its only showing 20 seconds.. can some one help me know what Im doing wrong?

    I just purchased a complete series on itunes... Im trying to watch the episodes but its only showing 20 seconds.. can some one help me know what Im doing wrong?

    Hi bibisandoval,
    Thanks for visiting Apple Support Communities.
    If the movie has completely downloaded, I recommend deleting the movie and downloading it again from your list of purchased movies. See this article for the steps:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/ht2519
    If you are still not able to play the movie, you can report an issue with this purchase using the steps in this article:
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase
    http://support.apple.com/kb/ht1933
    Regards,
    Jeremy

  • HT4352 appletv - the airplay window on iphone 4gs and ipad gen2 does not show the mirroring slider? any one know what im doing wrong?

    appletv - the airplay window on iphone 4gs and ipad gen2 does not show the mirroring slider? any one know what im doing wrong?

    ccooper52
    check out the tips and video at the bottom of this link and see if any of it helps
    http://www.allabouthomeelectronics.com/apple-tv-airplay.html
    Apple policy requires we mention we might benefit or profit somehow by your visit
    please let us know if this helped

  • Itunes document manager pro will not open a document with .cwk extension. It will catch the document then error message states that it cannot open document. Can anyone tell me what Im doing wrong?

    Itunes document manager pro will not open a document with .cwk extension. It will catch the document then error message states that it cannot open document. Can anyone tell me what Im doing wrong?

    Forgive my ignorance but I have never hear of iTunes Document Manager Pro. If you mean Document Manager Pro, i was able to find that. Back to your problem, have you tried opening one of those files in the iOS iWorks apps? Form the quick read that I did about this, .cwk files can be opened by Pages, Numbers or Keynote, depending on what type of document that it is and those files can be read by Document Manager Pro, after properly saving them. I don't see that you can go directly from the .cwk file in Document Manager Pro without converting them first.
    I took a very quick look at the app, so I may be a missing something about its capability.

  • My I phone doesn't allow me to update my billing information. call somebody tell me what I doing wrong.

    My I phone 4S doesn't allow me to update my billing information. When I entered the new information he keep the old one. After I finished entered the data I press DONE and  I still have the old data.
    Does not accept my new credit card information. Can somebody tell me what I doing wrong and how to fix it.
    Thanks for your assistance.
    papasam 1969

    Did you follow these instructions:
    http://support.apple.com/kb/ht1918

  • Ok so i was wondering what im doing wrong here

    i have one driver class and 2 objects that im trying to read into it. the RightArrow and LeftArrow compile but the demo class gives me these errors
    F:\ArrowDemo1.java:25: setTail(int) in RightArrow cannot be applied to ()
                   RightArrow.setTail();
                   ^
    F:\ArrowDemo1.java:29: setArrowheads(int) in LeftArrow cannot be applied to ()
         LeftArrow.setArrowheads();
         ^
    F:\ArrowDemo1.java:30: setTails(int) in LeftArrow cannot be applied to ()
         LeftArrow.setTails();
         ^
    4 errors
    what am i doing wrong here.
    public class ArrowDemo1
       public static void main(String[]args)
            Scanner keyboard = new Scanner(System.in);
            System.out.println("Do you want your arrow to point right or left");
            System.out.println("Type right or left");
            String rightLeft = keyboard.nextLine();
            if  (rightLeft.equalsIgnoreCase("right"))
                      RightArrow.setArrowhead();
                      RightArrow.setTail();
            if (rightLeft.equalsIgnoreCase("left"))
                 LeftArrow.setArrowheads();
                 LeftArrow.setTails();
    public class LeftArrow extends Figure
         Scanner keyboard = new Scanner(System.in);
         private int base;
         private int head;
         private int tail;
         public void setArrowheads(int headsUp)
              System.out.println("Please enter a head length for your arrow");
              headsUp = keyboard.nextInt();
              if (headsUp < 1)
                      System.out.println("Sorry the head length must be larger than 0");
                      System.exit(0);
              if (headsUp >= 3)
                 int oddTest = (headsUp%2);
                 if (oddTest == 0)
                      System.out.println("Sorry you must enter an odd number of 3 or higher");
                      System.exit(0);
           head = headsUp;
        public void setTails(int tail)
                   System.out.println("Please enter a tail length for your arrow");
                   tail = keyboard.nextInt();
                   if (tail < 1)
                           System.out.println("Sorry the tail length must be larger than 0");
                           System.exit(0);
    public class RightArrow extends Figure
        Scanner keyboard = new Scanner(System.in);
         private int base;
         private int head;
         private int tail;
         public void setArrowhead(int heads)
              System.out.println("Please enter a head length for your arrow");
              heads = keyboard.nextInt();
              if (heads < 1)
                      System.out.println("Sorry the head length must be larger than 0");
                      System.exit(0);
              if (heads >= 3)
                 int oddTest = (heads%2);
                 if (oddTest == 0)
                      System.out.println("Sorry you must enter an odd number of 3 or higher");
                      System.exit(0);
           head = heads;
        public void setTail(int tails)
              System.out.println("Please enter a tail length for your arrow");
              tails = keyboard.nextInt();
              if (tails < 1)
                      System.out.println("Sorry the tail length must be larger than 0");
                      System.exit(0);
            tail = tails;
    }

    duffymo wrote:
    How do you ever expect to understand Java when you can't read English?
    Did you read the error messages?This is one of the things that frustrates me the most. People see an error message, and they freak out. "OMFG! I don't know enough Java to understand these mysterious runes! I need to find someone to tell me what magic spell to type (since programming is, of course, all about memorizing what to type) to make it go away!"
    I know some of the messages are kind of cryptic, but many of them--this one being a prime example--are very explicit if you just take a few seconds to read it. Are people so bloody afraid to even try to engage their brains? Does nobody even have the most basic concept of observing a problem, taking a moment to study what's happening, using a tiny bit of knowledge, logic, and guesswork to come up with a potential solution or two, and then trying it out? Is everybody really so fuckityfucking helpless? Is simple analysis a lost art, doomed to go the way of [Damscus steelmaking|http://en.wikipedia.org/wiki/Damascus_steel]?
    </rant>
    Edited by: jverd on Mar 29, 2008 12:56 PM

  • Just installed new Time Capsule, wifi now very slow, what amI doing wrong?

    Just installed new Time Capsule, wifi now very slow, what am I doing wrong?

    It's possible the reason it seems so slow, is that a backup might be in progress - and since it's the first backup everything on the disk is something that Time Machine is backing up and is being transferred across the WiFi at the same time as you're trying to use your Internet. So you're competing with Time Machine data flying across your WiFi along with your internet stuff. So if this is indeed what is happening (look at Time Machine to see if a backup is in progress), either pause the backup to a more convienent time or live with the slowness till the backup is done this first time, and after that you probably will not notice the "competition" on your WiFi. I like to schedule the Time Machine backups to late at night rather than once an hour (the default), but that schedule should be whatever you feel most comfortable with.
    There is a handy free utility called "TimeMachine Editor" that you can get from http://timesoftware.free.fr/timemachineeditor/ that lets you create your own customized backup schedule. You can create several schedules to fit your working conditions. I've used it for several years with never a problem. I don't have anything to do with the company - just a happy user.
    Good luck...

  • Hi i have just purchased a mac pro. ive installed word for mac as i wanted to transfer word documents from a windows pc, which are ona usb stick. however i cannot open the usb stick. can anyone tell me what im doing wrong!

    Hi, I've bought a mac pro and installed word for mac, as i wanted to transfer word documents to the new pc. I saved the documents ona usb stick but I cannot open the documents from the stick. What am i doing wrong?
    thanks

    Welcome to the Apple Support Communities
    First of all, check that you are looking for your USB drive in the correct place. To do it, first connect the USB drive. Then, open a Finder window (press the left icon of Dock) and choose your USB drive on the Finder sidebar, under "Devices". Finally, just copy the documents you need to the internal disk.
    If you want to show the USB drive in Desktop, open Finder menu (on the menu bar) > Preferences > General, and tick "External drives"

  • Please help, I am trying to download itunes onto my windows 7 32bit desktop, but keeps coming up with error message:This installation package could not be opened. Verify that the package exists. Any ideas on what im doing wrong

    Please help
    I am trying to download itunes on windows 7 32 bit, everytime I go to open download it comes up with a green screen then a error message.
    This installation package could not be opened. Verify that the package exist.
    Please help Me

    Hi gump68,
    Thanks for visiting Apple Support Communities.
    You may find the steps in this article helpful if iTunes is not installing on your PC:
    Issues installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/HT1926
    All the best,
    Jeremy

  • Office 2013 "Help" -- What Executables Does it Call?

    The help function in Office 2013 applications running under 64-bit Windows 7 Professional SP1 is blocked by my Software Restriction Policy (e.g.,.http://www.mechbgon.com/srp/).  Neither clicking "?" in the upper right of the application window
    nor pressing F1 appears to do anything at all (not even generate a group-policy message) when SRP is turned on.  It does not help to limit the restrictions to executables (ignoring DLLs and other libraries).  I think this means that Help calls some
    executable that resides outside the usual C:\Program Files or C:\Program Files (x86) directory trees.
    I would really like to run an SRP but need to create a specific Path (or other) exception in order to do so.  No answer to this from answers.microsoft.com.  Does anybody here know what program(s) "help" is running behind the scenes that
    reside in unusual locations or how to find out? -- JCW2

    CLVIEW.EXE might be the file you want:
    C:\Program Files\Microsoft Office 15\root\office15\CLVIEW.EXE
    Thanks.
    Tony Chen
    TechNet Community Support

  • I can't figure out what im doing wrong with my File I/O program lol

    I'm new to the java language and was wondering if anybody could help me with the program i an writing. I don't quite understand file I/O but I've given it my best and I'm stuck. I'm supposed to write a program that will read in a file of student academic credit data and create a list of students on academic warning. The list of students on warning will be written to a file. Each line of the input file will contain the
    student name (a single String with no spaces), the number of semester hours earned (an integer), the total quality points earned (a double). The program should compute the GPA (grade point or quality point average) for each student (the total quality points divided by the number of semester hours) then write the student information to the output file if that student should be put on academic warning. A student will be on warning if he/she has a GPA less than 1.5 for students with fewer than 30 semester hours credit, 1.75 for students with fewer than 60 semester hours credit, and 2.0 for all other students. The instructions are :
    1. Set up a Scanner object scan from the input file and a PrintWriter outFile to the output file inside the try
    clause (see the comments in the program). Note that you’ll have to create the PrintWriter from a FileWriter,
    but you can still do it in a single statement.
    2. Inside the while loop add code to read the input file—get the name, the number of credit hours, and the
    number of quality points. Compute the GPA, determine if the student is on academic warning, and if so
    write the name, credit hours, and GPA (separated by spaces) to the output file.
    3. After the loop close the PrintWriter and Scanner objects in a finally block.
    4. Think about the exceptions that could be thrown by this program:
    • A FileNotFoundException if the input file does not exist
    • A InputMismatchException if it can’t read an int or double when it tries to – this indicates an error in the
    input file format
    • An IOException if something else goes wrong with the input or output stream
    Add a catch for each of these situations, and in each case give as specific a message as you can. The
    program will terminate if any of these exceptions is thrown, but at least you can supply the user with useful
    information.
    5. Test the program. Test data is in the file students.txt. Be sure to test each of the exceptions as well.
    My source code is:
    // Warning.java
    // Reads student data from a text file and writes data to another text file.
    import java.util.*;
    import java.io.*;
    public class Warning
    // Reads student data (name, semester hours, quality points) from a
    // text file, computes the GPA, then writes data to another file
    // if the student is placed on academic warning.
    public static void main (String[] args)
         int creditHrs; // number of semester hours earned
         double qualityPts; // number of quality points earned
         double gpa; // grade point (quality point) average
         Scanner scan=null;
         PrintWriter outFile=null;
         String name, inputName = "students.txt";
         String outputName = "warning.txt";
         try
              // Set up Scanner to input file
              scan=new Scanner(new FileInputStream(inputName));
              // Set up the output file stream
              outFile = new PrintWriter(new FileWriter(outputName));
              // Print a header to the output file
              outFile.println ();
              outFile.println ("Students on Academic Warning");
              outFile.println ();
              // Process the input file, one token at a time
              while (scan.hasNext())
                   // Get the credit hours and quality points and
                   // determine if the student is on warning. If so,
                   // write the student data to the output file.
                   name=scan.next();
                   creditHrs=scan.nextInt();
                   qualityPts=scan.nextDouble();
                   gpa=qualityPts/creditHrs;
                   if ((gpa < 1.5 && creditHrs < 30) || (gpa < 1.75 && creditHrs < 60) || (gpa < 2.0 && creditHrs >= 60))
                        outFile.print(name + " ");
                        outFile.print(creditHrs + " ");
                        outFile.print(qualityPts + " ");
                        outFile.print(gpa);
              //Add a catch for each of the specified exceptions, and in each case
              //give as specific a message as you can
    catch (FileNotFoundException e)
    System.out.println("The file " + inputName + " was not found.");
    catch (IOException e)
    System.out.println("The I/O operation failed and " + outputName + " could not be created.");
    catch (InputMismatchException e)
    System.out.println("The input information was not of the right type.");
              //Close both files in a finally block
    finally
         scan.close();
         outFile.close();
    The txt file is:
    Smith 27 83.7
    Jones 21 28.35
    Walker 96 182.4
    Doe 60 150
    Wood 100 400
    Street 33 57.4
    Taylor 83 190
    Davis 110 198
    Smart 75 292.5
    Bird 84 168
    Summers 52 83.2
    The program will run and then terminate without creating warning.txt. How can I get it to create the warning .txt file? Any help that you could give would be greatly appreciated.

    Alright, here is my code reposted:
    // Warning.java
    // Reads student data from a text file and writes data to another text file.
    import java.util.;
    import java.io.;
    public class Warning
    // // Reads student data (name, semester hours, quality points) from a
    // text file, computes the GPA, then writes data to another file
    // if the student is placed on academic warning.
    public static void main (String[] args)
    int creditHrs; // number of semester hours earned
    double qualityPts; // number of quality points earned
    double gpa; // grade point (quality point) average
    Scanner scan=null;
    PrintWriter outFile=null;
    String name, inputName = "students.txt";
    String outputName = "warning.txt";
    try
    // Set up Scanner to input file
    scan=new Scanner(new FileInputStream(inputName));
    // Set up the output file stream
    outFile = new PrintWriter(new FileWriter(outputName));
    // Print a header to the output file
    outFile.println ();
    outFile.println ("Students on Academic Warning");
    outFile.println ();
    // Process the input file, one token at a time
    while (scan.hasNext())
    // Get the credit hours and quality points and
    // determine if the student is on warning. If so,
    // write the student data to the output file.
    name=scan.next();
    creditHrs=scan.nextInt();
    qualityPts=scan.nextDouble();
    gpa=qualityPts/creditHrs;
    if ((gpa < 1.5 && creditHrs < 30) || (gpa < 1.75 && creditHrs < 60) || (gpa < 2.0 && creditHrs >= 60))
    outFile.print(name " ");
    outFile.print(creditHrs " ");
    outFile.print(qualityPts " ");
    outFile.print(gpa);
    //Add a catch for each of the specified exceptions, and in each case
    //give as specific a message as you can
    catch (FileNotFoundException e)
    System.out.println("The file " inputName " was not found.");
    catch (IOException e)
    System.out.println("The I/O operation failed and " outputName + " could not be created.");
    catch (InputMismatchException e)
    System.out.println("The input information was not of the right type.");

  • I have 2 airport express base stations that I am trying to use to extend my wifi. I have windows 7 and downloaded the airport utility but it wont pick up my airport express. Does anyone know what im doing wrong and how to get them to work?

    I have 2 Airport Base stations that I am trying to use to extend my WiFi but I cant get them to work. I downloade Airport Utility to windows 7 and it doesnt recognize any devices. I have them plugged in and they have a solid yellow light. Does anyone know what I need to do to get them to work. Your help would be appreciated.

    Thanks for providing the model information.
    I would recommend that you start by performing a "factory default" reset on all of your AirPort base stations. Once completed power them all down. While powered-down, temporarily connect both Express base stations to an open LAN port on the Extreme using separate Ethernet cables.
    Once connected, power up the Extreme; wait five minutes, and then, power up each of the Express base stations. Which you power-up first doesn't matter.
    Now start up the AirPort Utility on the PC. It should now "see" all three base stations. If so, go ahead and configure your extended network.
    Please post back your results.

  • Automatic license provisioning, what im doing wrong?

    Im admin on a Internet Cafe. I have problems with customers installing viruses, keyloggers, crap, password stealers and such on our computers.
    To maximize the security, I did decide to set up a iSCSI server, with one central image ("golden master image") and 20 "cow" images that are deleted each reboot of the actual computer. The computers boots using gPXE and the computers
    are completely diskless.
    This also makes it easier to update, only one computer needs to be updated (in "personell mode" or "admin mode") and then every computer is updated since every computer boots the exact same read-only image. All writes are redirected to
    the "cow" image, which are subsuquently deleted when the computer is shutdown, causing the PC to reset to a pristine state.
    Now to the bizarre licensing problem:
    I have 20 legally valid and purchased WINDOWS 7 license keys - NON VOLUME KEYS, ONE SINGLE KEY PER COMPUTER.
    Since each computer boots the exact same image, the licenses must be "provisioned" into the computer
    after the initial boot. This must happen
    each reboot because the computes do not have write rights, so pc1 gets its license files and activation files that belong to pc1, pc2 gets its activation files and so on.
    So what I have done:
    I have activated each PC one by one. For each activated PC, I copyed:
    C:\Windows\ServiceProfiles\NetworkService\Appdata\Roaming\Microsoft\SoftwareProtectionPlatform\tokens.dat
    C:\Windows\System32\spp\tokens\pkeyconfig\pkeyconfig.xrm-ms
    C:\Windows\SysWOW64\spp\tokens\pkeyconfig\pkeyconfig.xrm-ms
    to the server (192.168.1.2) and ask it to serve the "correct" tokens.dat and pkeyconfig.xrm-ms, and correct Windows License Key, based on the IP adress doing the request, so if 192.168.1.101 ask for licenses, I serve them the license files
    "coming" from PC1, if 192.168.1.102 ask for license, I serve them the files for PC2 and so on.
    the FSO.GetTempName is a attempt from me to prevent caching by making sure the URL is unique each time.
    VBSCRIPT:
    ' [VASA GAMING AB] PROVISIONING SCRIPT FOR WINDOWS LICENSES AND GAME LICENSES '
    ' SINCE ALL TWENTY PCS BOOT FROM THE EXACT SAME READ-ONLY IMAGE, WE NEED TO PUT THE '
    ' CORRECT LICENSE FILES AND PRODUCT KEYS INTO THE CORRECT PC __AFTER__ THE PC '
    ' HAS BOOTED, BECAUSE BEFORE THE PC HAS BOOTED, WE HAVE NO WAY TO KNOW WHICH PC IT IS.'
    ' WRITTEN BY: Sebastian Nielsen '
    On Error Resume Next
    Dim objService, g_objWMIService, colListOfServices, objsppService, fso, oXMLHTTP, oStream, WshShell
    Set g_objWMIService = GetObject("winmgmts:\\.\root\cimv2")
    Set objNetworkSettings = g_objWMIService.Get("Win32_NetworkAdapterConfiguration")
    ' iPXE Adds some bogus routes to preserve iSCSI connection to the master image during
    ' Windows boot. This causes regular internet access to cease
    ' Clear the bogus routes, we don't need them when Windows has finished booting.
    objNetworkSettings.ReleaseDHCPLeaseAll()
    WScript.Sleep 500
    objNetworkSettings.RenewDHCPLeaseAll()
    Set colServices = g_objWMIService.ExecQuery("SELECT Version FROM SoftwareLicensingService")
    For each objService in colServices
    Exit For
    Next
    Set colProducts = g_objWMIService.ExecQuery("SELECT ID, ApplicationId, PartialProductKey, LicenseIsAddon, Description, Name FROM SoftwareLicensingProduct WHERE PartialProductKey <> null")
    For Each objProduct in colProducts
    'Flush the old license, it propably belongs to some other of the 20 PCs. (Because 20 different PCs boot this same HDD image)
    objProduct.UninstallProductKey()
    Next
    'Forcefully deactivate windows, since we shouldn't really run this PC with a license belongning to some other of our PCs..
    objService.RefreshLicenseStatus()
    Set fso = CreateObject("Scripting.FileSystemObject")
    Set oXMLHTTP = CreateObject("MSXML2.XMLHTTP.3.0")
    ' Check if we can reach the license provisioning server, else retry indefinity until we can reach.
    Do
    WScript.Sleep 500
    oXMLHTTP.Open "GET", "http://192.168.1.2/licenseserverpresent.txt?temp=" & fso.GetTempName & fso.GetTempName & fso.GetTempName, False
    oXMLHTTP.Send
    Loop Until (Mid(oXMLHTTP.responseText, 1, 22)="LicenseServerIsPresent")
    WScript.Sleep 1000
    'Fetch the correct Windows 7 Product Key from the server, and install it.
    oXMLHTTP.Open "GET", "http://192.168.1.2/provisioning.cgi?license=a&temp=" & fso.GetTempName & fso.GetTempName & fso.GetTempName, False
    oXMLHTTP.Send
    objService.InstallProductKey(Mid(oXMLHTTP.responseText, 1, 29))
    WScript.Sleep 2000
    objService.RefreshLicenseStatus()
    Set colListOfServices = g_objWMIService.ExecQuery("Select * from Win32_Service Where Name = 'sppsvc'")
    For Each objsppService in colListOfServices
    'Stop the license service, we need to get to its files and they are writeprotected while sppsvc is running.
    objsppService.StopService()
    Next
    'Forcefully deactivate windows, since we shouldn't really run this PC with a license belongning to some other of our PCs..
    objService.RefreshLicenseStatus()
    Set oStream = CreateObject("ADODB.Stream")
    'Delete the old license files belongning to a "incorrect" PC.
    fso.DeleteFile("C:\Windows\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform\Cache\cache.dat")
    fso.DeleteFile("C:\Windows\ServiceProfiles\NetworkService\Appdata\Roaming\Microsoft\SoftwareProtectionPlatform\tokens.dat")
    fso.DeleteFile("C:\Windows\System32\spp\tokens\pkeyconfig\pkeyconfig.xrm-ms")
    fso.DeleteFile("C:\Windows\SysWOW64\spp\tokens\pkeyconfig\pkeyconfig.xrm-ms")
    'Fetch the correct license activation files, which belongs to the correct PC, from the server.
    oXMLHTTP.Open "GET", "http://192.168.1.2/provisioning.cgi?license=d&temp=" & fso.GetTempName & fso.GetTempName & fso.GetTempName, False
    oXMLHTTP.Send
    oStream.Open
    oStream.Type = 1
    oStream.Write oXMLHTTP.responseBody
    oStream.SaveToFile "c:\Windows\ServiceProfiles\NetworkService\Appdata\Roaming\Microsoft\SoftwareProtectionPlatform\tokens.dat"
    oStream.Close
    oXMLHTTP.Open "GET", "http://192.168.1.2/provisioning.cgi?license=b&temp=" & fso.GetTempName & fso.GetTempName & fso.GetTempName, False
    oXMLHTTP.Send
    oStream.Open
    oStream.Type = 1
    oStream.Write oXMLHTTP.responseBody
    oStream.SaveToFile "C:\Windows\System32\spp\tokens\pkeyconfig\pkeyconfig.xrm-ms"
    oStream.Close
    oXMLHTTP.Open "GET", "http://192.168.1.2/provisioning.cgi?license=c&temp=" & fso.GetTempName & fso.GetTempName & fso.GetTempName, False
    oXMLHTTP.Send
    oStream.Open
    oStream.Type = 1
    oStream.Write oXMLHTTP.responseBody
    oStream.SaveToFile "C:\Windows\SysWOW64\spp\tokens\pkeyconfig\pkeyconfig.xrm-ms"
    oStream.Close
    WScript.Sleep 1000
    For Each objsppService in colListOfServices
    'Start the license service again
    objsppService.ChangeStartMode("Manual")
    objsppService.StartService()
    Next
    WScript.Sleep 1000
    'Fetch the correct Windows 7 Product Key from the server, and install it.
    oXMLHTTP.Open "GET", "http://192.168.1.2/provisioning.cgi?license=a&temp=" & fso.GetTempName & fso.GetTempName & fso.GetTempName, False
    oXMLHTTP.Send
    objService.InstallProductKey(Mid(oXMLHTTP.responseText, 1, 29))
    WScript.Sleep 3000
    objService.RefreshLicenseStatus()
    For Each objsppService in colListOfServices
    'Start the license service again
    objsppService.StopService()
    WScript.Sleep 500
    objsppService.StartService()
    Next
    'Windows Antipiracy has removed the desktop wallpaper. However, the problem is now solved and windows is activated since we have installed
    'the correct product key and activation files.
    'Windows does not automatically revert to the old wallpaper when windows is reactivated after being in "piracy mode".
    'Lets fix it by setting the wallpaper.
    oXMLHTTP.Open "GET", "http://192.168.1.2/provisioning.cgi?license=f&temp=" & fso.GetTempName & fso.GetTempName & fso.GetTempName, False
    oXMLHTTP.Send
    oStream.Open
    oStream.Type = 1
    oStream.Write oXMLHTTP.responseBody
    oStream.SaveToFile "C:\Provisioning\vg_desktop.bmp"
    oStream.Close
    Set vobjShell = CreateObject("Shell.Application")
    set vobjFolder=vobjShell.NameSpace("C:\Provisioning\")
    set vobjFolderItem=vobjFolder.ParseName("vg_desktop.bmp")
    set vcolVerbs=vobjFolderItem.Verbs
    for each vobjVerb in vcolVerbs
    if vobjVerb="Använd som skriv&bordsbakgrund" then
    vobjVerb.DoIt
    WScript.Sleep 1000
    exit for
    end if
    next
    WScript.Sleep 1000
    objService.RefreshLicenseStatus()
    Now to the problem:
    When the computer boots, it tell me that the windows needs to be reactivated in 3 days because its run on different hardware.
    Checking the "PRODUCT ID", it reveals that the windows are running on the license belongning to the PC that the system was last set in "ADMIN" mode on. (eg the last license that was permanently written to disk)
    If I run the above script again, then windows become fully activated.
    Now checking the "PRODUCT ID", it reveals that the correct license are being used.
    It seems that windows licensing are caching something, but what? Or im doing something in the incorrect order.
    Im are deleting "C:\Windows\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform\Cache\cache.dat" but still it caches something somewhere.
    Whats the problem?

    Hi,
    It may be the issue with your script.
    In order to get better solution, I recommend you go to MSDN scripting forum. They can provide you with more valuable suggestions.
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=scripting
    Thanks for your understanding!
    Regards,
    Ada Liu
    TechNet Community Support

  • What im doing wrong in the loop?

    Mistyped
    Edited by: 794018 on Sep 20, 2010 5:11 AM

    >
    How I can change this code
    to have the output like this
    >
    Well you need to look at your output and see where the first line of output is wrong.
    This is the first line of output
    >
    3          120
    >
    If that line is not correct ask yourself where those values came from.
    The output is done by this line
    System.out.format ("%s\t\t%s\n",i,dist);So the 3 came from 'i' and the 120 came from 'dist'.
    Is the 3 correct? If not then 'i' is not correct.
    So look at your code one line at a time and try to figure out why the first value of 'i' is not correct.
            for (int i = numberOfhoursTraveled; i < milePerhour; i++) {
               dist = (int) convertDistanceTraveled(milePerhour, numberOfhoursTraveled);What is the value of 'i' the first time through the loop? It is numberOfhoursTraveled which is 3. Is that what you want?

  • HT1386 i got a used ipod touch and when I connect it - it doesn't show up on my computer. I have an Itunes account and it does not show my device at all. any clue what I', doing wrong? The ipod is on and plugged in

    I am having trouble - when I turn on my ipod touch - the only thing on the screen is a usb cable with an arrow pointing to the itunes logo. I got it from a friend who cleared all of his stuff off of it. I can't get any of the stuff I downloaded on it. maybe it didn't sync with my computer. it doesn't show up when I go to the itunes store on the top bar next to the library tab either. HELP ! lol

    iOS: Device not recognized in iTunes for Windows
    or
    iOS: Device not recognized in iTunes for Mac OS X

Maybe you are looking for