Need urgent help with service and file removal

Hi,
I need a powershell script that would stop a windows service ,wait for 2 mins, delete a particular file from C:\documents&settings and then start the service again.Is this possible ?
Thanks

Thanks for the reply chen. May be i was not clear in my query
I plan this because a particular file of configmgr is corrupt on workstations. So the service has to be stopped first before the deletion. I need to run this on many computers remotely. The import file will have the machines that need the script to be run.
The script has to run all the four steps on the machines based on the import file and export to a file with the results.How can i modify ?
The sequence will be as follows
Stop-Service -Name BITS -Verbose
Start-Sleep -Seconds 120
Remove-Item -Path C:\documents&settings\***** -Force -Verbose
Start-Service -Name BITS -Verbose
Regards
Sd

Similar Messages

  • Need Urgent Help with Apache and PHP

    I have been struggling with apache and php for a week now and I finally broke down to post a message.
    I have apache 1.3 running on my mac mini g4 with 10.4.9 and I installed sql. I went to the entropy website and downloaded php5 to install without knowing I already had php4 on the machine. I installed 5 but could not get it to work. I then went back to httpd.conf and tried to install php4 by uncommenting out the loadmodule and addmodule lines. I restarted apache but php still did not work. I tested the phpinfo.php script but all I got was the script in Safari and not the actual page. At the moment, I have php4 and php5 on my machine but can't get either one to work. I am sure there is an easy fix but I don't know it. Please help.

    The problem is not terribly complicated, but Apache will not start with the entropy file in the folder
    /etc/httpd/users/
    Let me experiment on you. Rename the entropy file and then try to start Apache. To do this, open Terminal and paste this command:
    <pre>sudo mv /etc/httpd/users/+entropy.conf /etc/httpd/users/+entropy<pre>
    Now check the Apache configuration:
    <pre>apachectl configtest<pre>
    If it says "Syntax OK", start Apache:
    <pre>sudo apachectl start<pre>
    Since we only disabled the entropy file, you should be able to enable PHP5 with some more advanced configuring.

  • Need urgent help with creating .war file ...

    My boss gave me one day to create an app. that runs on Apache Tomcat 4.0.6. I managed to get it done, but now I'm trying to move it from my machine to the web server. Each time I try to create a .war file I get an error saying "no such file or directory". Am I missing a step here??
    What I do is: go to the webapps/<appname> directory where the app. is located, type in jar cvf * path/to/application/appname.war.
    I then get the "no such file..." message, then a message that says "added manifest" then lines on the screen that say adding: blah blah file. It goes through all the files in my app directory but I get no resulting .war file.
    I'm so frustrated and confused at this point, any help would be greatly appreciated.

    >
    What I do is: go to the webapps/<appname> directory
    where the app. is located, type in jar cvf *
    path/to/application/appname.war. No need to create an intermediate zip file, or to use JDeveloper to create a simple war file.
    You just need to put the WAR name before the list of files.
    jar cvf appName.war *

  • Need urgent help with Ifs1.1 on Solaris

    We have installed IFS 1.1 with Oracle 8.1.7 on a three tier System (two Suns). We use JWS as WebServer. When we start IFS and JWS everything seems to work fine. But after some time (irregulary) we are not able to contact the JSP-Sites via a bowser. After restarting JWS, everything works fine for some time.
    Sometimes it happens (about one times a day), that the whole JWS crashes (JWS-Admin doesn't work). So we have to restart the whole IFS.
    What can be the problem? We need urgent help, because the deadline for our project is Wednesday.
    By the way:
    Where do I have to start CTX on the IFS- or the Oracle-Side?
    null

    Yes, we tried the Oracle HTTP - Server, but we weren4t able to get it to work. We didn4t get our JSP-Files to work with it. But that is another issue. I think it4s not a problem of JWS, but IFS.
    Additionally it is strange, that we are still able to connect to the database via SqlPlus.
    IFS works fine for about 15 minutes, than it crashes, nothing works anymore. We found following errors in the IfsAgents.log:
    maybe it can help?!
    Mon Dec 04 23:12:20 CET 2000
    Server STARTED: IfsAgents(19944) not managed
    Attempting to load agent EventExchangerAgent
    Agent EventExchangerAgent loaded
    Server STARTED: IfsProtocols(19945) not managed
    Attempting to start agent EventExchangerAgent
    EventExchangerAgent: Start request
    Agent EventExchangerAgent started
    Attempting to load agent ExpirationAgent
    Agent ExpirationAgent loaded
    EventExchangerAgent: starting timer
    Attempting to start agent ExpirationAgent
    ExpirationAgent: Start request
    Agent ExpirationAgent started
    Attempting to load agent GarbageCollectionAgent
    Agent GarbageCollectionAgent loaded
    ExpirationAgent: computed initial delay (in ms) is: 10024504
    ExpirationAgent: starting timer
    Attempting to start agent GarbageCollectionAgent
    GarbageCollectionAgent: Start request
    Agent GarbageCollectionAgent started
    Attempting to load agent ContentGarbageCollectionAgent
    Agent ContentGarbageCollectionAgent loaded
    GarbageCollectionAgent: computed initial delay (in ms) is: 11816890
    GarbageCollectionAgent: starting timer
    Attempting to start agent ContentGarbageCollectionAgent
    ContentGarbageCollectionAgent: Start request
    Agent ContentGarbageCollectionAgent started
    Attempting to load agent DanglingObjectAVCleanupAgent
    Agent DanglingObjectAVCleanupAgent loaded
    ContentGarbageCollectionAgent: starting timer
    Attempting to start agent DanglingObjectAVCleanupAgent
    DanglingObjectAVCleanupAgent: Start request
    Agent DanglingObjectAVCleanupAgent started
    Attempting to load agent OutboxAgent
    Agent OutboxAgent loaded
    DanglingObjectAVCleanupAgent: computed initial delay (in ms) is: 5500105
    DanglingObjectAVCleanupAgent: starting timer
    Attempting to start agent OutboxAgent
    OutboxAgent: Start request
    Agent OutboxAgent started
    Attempting to load agent ServiceWatchdogAgent
    Agent ServiceWatchdogAgent loaded
    OutboxAgent: Done processing
    Attempting to start agent ServiceWatchdogAgent
    ServiceWatchdogAgent: Start request
    Agent ServiceWatchdogAgent started
    Attempting to load agent QuotaAgent
    Agent QuotaAgent loaded
    ServiceWatchdogAgent: Initializing ServerWatchdogTable with 9 entries
    ServiceWatchdogAgent: starting timer
    Server STARTED: FtpServer(20082) managed by IfsProtocols(19945)
    ServiceWatchdogAgent: New Server being watchdogged
    Attempting to start agent QuotaAgent
    QuotaAgent: Start request
    Agent QuotaAgent started
    QuotaAgent: starting timer
    Server STARTED: CupServer(20124) managed by IfsProtocols(19945)
    ServiceWatchdogAgent: New Server being watchdogged
    Server STARTED: ImapServer(20130) managed by IfsProtocols(19945)
    ServiceWatchdogAgent: New Server being watchdogged
    Server STARTED: SmtpServer(20150) managed by IfsProtocols(19945)
    ServiceWatchdogAgent: New Server being watchdogged
    ServiceWatchdogAgent: Unlocked Server Detected in checkServer
    ServiceWatchdogAgent: Unlocked Server Detected in checkServer
    ServiceWatchdogAgent: Unlocked Server Detected in checkServer
    ServiceWatchdogAgent: Unlocked Server Detected in checkServer
    ServiceWatchdogAgent: Unlocked Server Detected in checkServer
    ServiceWatchdogAgent: Unlocked Server Detected in checkServer
    ServiceWatchdogAgent: Unlocked Server being investigated
    ServiceWatchdogAgent: Unlocked Server being investigated
    ServiceWatchdogAgent: Unlocked Server being investigated
    ServiceWatchdogAgent: Unlocked Server being investigated
    ServiceWatchdogAgent: Unlocked Server being investigated
    ServiceWatchdogAgent: Unlocked Server being investigated
    ServiceWatchdogAgent: Freeing unlocked server 19687
    ServiceWatchdogAgent: Freeing unlocked server 19666
    Server STOPPED: CupServer(19687) managed by IfsProtocols(19519)
    ServiceWatchdogAgent: Freeing unlocked server 19723
    ServiceWatchdogAgent: Freeing unlocked server 19520
    Server STOPPED: FtpServer(19666) managed by IfsProtocols(19519)
    Server STOPPED: SmtpServer(19723) managed by IfsProtocols(19519)
    ServiceWatchdogAgent: Freeing unlocked server 19519
    Server STOPPED: IfsAgents(19520) not managed
    ServiceWatchdogAgent: Freeing unlocked server 19712
    Server STOPPED: IfsProtocols(19519) not managed
    Server STOPPED: ImapServer(19712) managed by IfsProtocols(19519)
    ServiceWatchdogAgent: Freed Server removed from watchdog list
    ServiceWatchdogAgent: Freed Server removed from watchdog list
    ServiceWatchdogAgent: Freed Server removed from watchdog list
    ServiceWatchdogAgent: Freed Server removed from watchdog list
    ServiceWatchdogAgent: Freed Server removed from watchdog list
    ServiceWatchdogAgent: Freed Server removed from watchdog list
    QuotaAgent: Timer event: 0 active; 0 exceeded
    ContentGarbageCollectionAgent: Freed 5 unreferenced ContentObjects
    QuotaAgent: Timer event: 0 active; 0 exceeded
    ServiceWatchdogAgent: IfsException publishing timer details:
    ServiceWatchdogAgent: oracle.ifs.common.IfsException: IFS-11012: Unable to get events from other services
    java.sql.SQLException: ORA-03114: not connected to ORACLE
    ServiceWatchdogAgent: IfsException in checkForDeadServices():
    ServiceWatchdogAgent: oracle.ifs.common.IfsException: IFS-10651: Unable to begin transaction
    oracle.ifs.common.IfsException: IFS-10603: Unable to set database savepoint
    java.sql.SQLException: ORA-03114: not connected to ORACLE
    ServiceWatchdogAgent: IfsException in handle loop; continuing:
    ServiceWatchdogAgent: oracle.ifs.common.IfsException: IFS-10651: Unable to begin transaction
    oracle.ifs.common.IfsException: IFS-10603: Unable to set database savepoint
    java.sql.SQLException: ORA-03114: not connected to ORACLE
    ServiceWatchdogAgent: IfsException publishing timer details:
    ServiceWatchdogAgent: oracle.ifs.common.IfsException: IFS-10651: Unable to begin transaction
    oracle.ifs.common.IfsException: IFS-10603: Unable to set database savepoint
    java.sql.SQLException: ORA-03114: not connected to ORACLE
    ServiceWatchdogAgent: IfsException publishing timer details:
    ServiceWatchdogAgent: oracle.ifs.common.IfsException: IFS-10651: Unable to begin transaction
    oracle.ifs.common.IfsException: IFS-10603: Unable to set database savepoint
    java.sql.SQLException: ORA-03114: not connected to ORACLE
    ServiceWatchdogAgent: IfsException publishing timer details:
    ServiceWatchdogAgent: oracle.ifs.common.IfsException: IFS-10651: Unable to begin transaction
    oracle.ifs.common.IfsException: IFS-10603: Unable to set database savepoint
    java.sql.SQLException: ORA-03114: not connected to ORACLE
    ServiceWatchdogAgent: IfsException publishing timer details:
    ServiceWatchdogAgent: oracle.ifs.common.IfsException: IFS-10651: Unable to begin transaction
    oracle.ifs.common.IfsException: IFS-10603: Unable to set database savepoint
    java.sql.SQLException: ORA-03114: not connected to ORACLE
    ServiceWatchdogAgent: IfsException publishing timer details:
    ServiceWatchdogAgent: oracle.ifs.common.IfsException: IFS-10651: Unable to begin transaction
    oracle.ifs.common.IfsException: IFS-10603: Unable to set database savepoint
    java.sql.SQLException: ORA-03114: not connected to ORACLE
    null

  • Need urgent help with HSDIO hardware timing

    Hi everyone,
    I need urgent help regarding HSDIO hardware timing. I've been working in a project which generating serial ramp using HSDIO pxie device. 
    I'm using clock rate 40MHz and generating 14 bit of boolean for each step of ramp. And I have to generate simply 256 steps ramp.
    Which means, 256 (steps) x 14 (boolean array) x 25 ns (period of 1 boolean value) = 89,6 ns.
    What I'm doing right now is with using index of FOR loop as my input data (converting the index into 14bit boolean), then write into pxie device in every iteration,
    which means, my data is getting into output in every 1ms time, right? (I'm using windows)
    And I want to be able to generate faster than that. 
    How can I prewrite my 256 steps ramp, then write them all at once into pxie device. I'm really stuck here.
    In the picture can you see how I do the write into device in every iteration of FOR Loop.
    Regards,
    Yan.

    hi, thanks for responding.
    with using example of dynamic generation with script, I can manage to generate the ramp with controllable delay (generate the whole waveform, including delay with script command, then write to the card).
    But I still have 1 question, I can test the output of the generation using oscilloscope and cant see the start delay (I'm writing delay at the start, before generating the ramp). My signal generated at 0 sec.
    How can I check this start delay? is there any good example delivered with Labview to check this generation? Somehow I cant use the "dynamic generation and acquisition" example to see my generation (cant figure out how to capture the generated signal).
    regards,
    Yan.

  • Need ugent help with APC and ICW

    We are upgrading our Inventory and Engineering Applications to 11.5.9 to implement APC. I needed some help with the Item Creation Workflow that is shipped with APC. If someone has extensive experience with this, please send me an email-id to which I can send my questions. Any help is greately appreciated.

    thanks for the response. It is a USR ring.
    On the sonet ring we have 8 ONS 15454 boxes. They have 1 central site and 7 remote sites. Mojority of the Circuits go from the central site to the remote sites. Only a few circuits (STS) go from a so called remote site to a remote site. Also, we have 6500 hooked up behind every ONS box that does the routing. Is this an optinal design??

  • Need Urgent Help With Getting Intl Service from Bangkok

    Before I arrived in Bangkok, I spoke with Verizon CS from the US because I needed Intl Service on my Iphone 4. My boyfriend has an Iphone 5 and was able to add a calling plan in 5 minutes of calling Verizon CS. I then called Verizon CS, and was told that my Iphone 4 cannot be used in Thailand. I told the CS Rep that my boyfriend just added the service on his Iphone 5, and did the same on a trip to Thailand last year with an Iphone 4. She told me that with an Iphone 5 he also cannot use the service in Thailand without a Sim Card or Global Phone? I then put him on the phone with her, and they spoke for ten minutes about this before my plane departed.
    I have been in Bangkok since 04MAR14 trying to reach Verizon by web, Instant Chat, phone, and even called Verizon 611 from my boyfriend's handset. he call Failed! He then gave me this number to call Verizon Global Support: 908-559-4899. I have called this number numerous times from the hotel. The recording does not recognize when I "Press 1" or "Press 2", and proceeded to hang up on me several times. Is there no human at Verizon that help me????? I have spent approx 3 hours now trying to contact Verizon since 04MAR14. I am supposed to be enjoying my vacation here. Can someone please address these questions immediately?
    1. Am I currently being charged to use WIFI in Thailand?
    2. I transited Tokyo on 03MAR, and tried to call Verizon Support from my Handset, which Failed. Am I being charged for that?
    3. What message do my contacts receive when they text me in the US?
    4. Can I activate message response to contacts in the US now telling them that I am out of the country until the evening of 11MAR14?
    Please help me, I am extremely frustrated, as I desparately want Phone service here in Thailand, and I am transiting back to Tokyo on 10MAR14, arriving there at 245pm, and I will need Phone service there as well.
    Sincerely,
    Nancy
    Private info removed as required by the Terms of Service.
    Message was edited by: Admin Moderator

        I'm so sorry you haven't been able to get any service while traveling NancyStuckInThaiWithNoService, as well as for not being able to get a hold of anyone to assist you. I'm happy to answer your questions here. As you mentioned, the iPhone 4 is not a Global phone. Therefore, you can only use on a CDMA network, (not GSM). Thailand is GSM/Global, Japan/Tokyo is CDMA; therefore, you can use phone there. (It could be settings were not set correctly to use in Tokyo.
    1. If you're using WiFi, there is no charge. Its best to turn Mobile Data off in Settings to avoid any International charges.
    2. Japan/Tokyo calls are $1.99/minute. However, if trying to reach Global Support, you will not be charged.
    3. Your contacts don't receive any notification when they text you. They may get some alert days later, that the message was not received by you/ or it has been timed out, but it won't say why.
    4. If you're able to use another phone, and call your mobile number, you can press # when you hear your voice mail greeting, enter password, then # again, to change personal greeting. You're able to update greeting with notification that you're traveling.
    ** When back in Tokyo, you can go to Settings & make sure Airplane Mode is OFF. Also, you can go to General, (from Settings),> Network> Cellular Data- ON> Data Roaming- ON.***
    Here are rates while in Japan/Tokyo http://vz.to/18TRKVE
    Lastly, it may be easier to reach us on Facebook at Verizon Wireless, or on Twitter at @VZWSupport
    Thank you,
    VanessaS_VZW
    Follow us on Twitter @VZWSupport

  • I need some help with AVI and IDX files please.

    Hello there,
    I've just been given a hard drive with a load of media on it that I need to work with in FCP.
    There's a folder with many .AVI clips, and each clip has an accompanying directory file with the extension .IDX
    The format of the AVI files is DV, 720x576, 48kHz.
    For the life of me, I can't get FCP to accept the media. Log and Transfer won't accept them, and if i bring in the AVI files in on their own using File>Import>Files... I get a message saying:
    Media Performance Warning
    It is highly recommended that you either recapture the media or use the Media manager to create new copies of the files to improve their performance for multi-stream playback.
    I can click 'OK' for this message and the media will appear in the browser, but If I place one of these AVI files on a new conformed sequence, the audio needs rendering. (Sequence settings correspond to media settings)
    I tried just changing the wrapper from AVI to MOV, thinking I could fool FCP into accepting them, but I get the same rejection.
    I thought the audio and video signals might be muxed, so I tried MPEG Streamclip to sort that out, but even MPEG Streamclip doesn't accept the media, saying : File open error: Can't find video or audio tracks.
    Could anybody advise me on how to get the most out of these media files please?
    Thanks in advance.
    James.
    Message was edited by: James M.
    Message was edited by: James M.

    yes. I tried transcoding in QT, but they still come in with the same audio rendering required. I'm a bit loath to convert them all though, as there are 1400 clips.
    It's not a huge problem, as they do play in FCP, but I'd like to sort out the audio rendering. I don't understand why it needs rendering as the media and sequence audio settings match, and it's not some weird format or anything, it's bog standard 48kHz stereo.

  • Urgent Help with Date and then email in ASP

    Hii,
    USING ASP AND ACCESS
    I am implementing a classified section for my website and I
    am displaying
    everything successfully.
    When the user posts the classified he selects how many days
    he wants his
    POST like 10 days, 20 days or 30 days and i can successfully
    show the posts
    So if the user posts on says 1st of July 2006 and selects 10
    days for his
    post to be showed on my website
    THEN
    8th July 2006 an email shud go to him saying if he wants to
    keep his POST
    for another 10 days, 20 days or 30 days with 3 links
    and IF YES the 1st july 2006 date must be changed to
    Date of Post + Number of days selected initially + Number of
    days selected.
    I am using two columsn in the DB for this date thing one is
    the strPostDate
    and strAddDate
    So basically the number of days selected for the post to be
    shown on the
    website keeps adding up each time the user clicks on the link
    for 10 days,
    20 days or 30 days with 3 links
    please help need it badly :-)

    I have to disagree with my colleages above - this isn't that
    hard at all. I have done it a number of times successfully. It does
    depend on a "trick", but who cares as long as it works.
    Basically, the "trick" says that your site will receive a
    visit once in a while! It better, or why have the site!
    In ASP, use the global.asa file. In the "Session start"
    section of global.asa, which is fired off every time a new comer
    arrives, you have an opportunity to:
    1. check if it's ok to check who needs an email (in other
    words, you don't want to be checking EVERY time someone comines on
    board every last listing on your site. So what i would do is allow
    it to do the full check once daily, say after midnight.
    2. If its ok to check who needs an email, do so, and send the
    emails out.
    3. After sending out emails, fix it so you will not be
    resending uptil teh next time window. You could also set "flags"
    for any lister where you sent an email 1st round email has been
    sent.
    The above is one way.
    Sometimes i do the very same thing, but i simply tie the
    checking routine into the home page.
    Both schemes work as long as you have a single visitor once
    in a while. if you never had a visitor to teh site, not even one,
    then the emails would never be sent. But as i said if you go days
    without a visit, better start looking for a new vocation!
    www.brunswickdowntown.com is a site i did that has a
    sign-up-to-stay informed email system, its been running for a year
    just fine, all automatically, using the method of #1 (but for
    asp.net, same difference!)
    Rick

  • Need urgent help with database startup

    dear all,
    i am using oracle 10g on windower server 32 bit.
    i try to startup my database today, and it give me error, and it is my production database,
    i need very urgent help from you.(i have no rman backup , and the data is not so necessory, since it is for student practice.)
    SQL> startup open
    ORACLE instance started.
    Total System Global Area  524288000 bytes
    Fixed Size                   790180 bytes
    Variable Size             250343772 bytes
    Database Buffers          272629760 bytes
    Redo Buffers                 524288 bytes
    Database mounted.
    ORA-01110: data file 34: 'G:\ORACLE\DATAFILES_ACADEMY\ACADEMY'
    ORA-01115: IO error reading block from file 34 (block # 1)
    ORA-27070: async read/write failed
    OSD-04016: Error queuing an asynchronous I/O request.
    O/S-Error: (OS 23) Data error (cyclic redundancy check).regards.

    Maahjoor wrote:
    Hi dears,
    i need further assistance from your side, i have restarted the server, but the same problem.
    as there a way to drop and re-create a system tablespace? since the file 34 belong to system tablesapce.
    regardsNo.
    So just create a new database. That will take all of ten minutes. And tell your students to create new tablespaces. That will take them two minutes.

  • Need Urgent help with wl 7 client connecting to secure webservice

    Hi
    I am trying to connect from my ejb client in wl7.0 to a secure web service and
    I am getting the following error..
    <Jun 10, 2004 10:09:54 AM CDT> <Debug> <TLS> <000000> <Exception during handshake,
    stack trace follows
    javax.net.ssl.SSLKeyException: FATAL Alert:BAD_CERTIFICATE - A corrupt or unuseable
    certificate was received.
    My client follows the SimpleSSL example and goes like ..
    System.setProperty("javax.xml.soap.MessageFactory", "weblogic.webservice.core.soap.MessageFactoryImpl");
    // Setup the global JAX-RPC service factory
    System.setProperty( "javax.xml.rpc.ServiceFactory", "weblogic.webservice.core.rpc.ServiceFactoryImpl");
    System.setProperty("java.protocol.handler.pkgs",          "weblogic.webservice.client");
    SSLAdapterFactory adapterFactory = SSLAdapterFactory.getDefaultFactory();
    WLSSLAdapter adapter = (WLSSLAdapter)adapterFactory.getSSLAdapter();
    adapter.setStrictChecking(false);
    adapter.setTrustedCertificatesFile
    adapterFactory.setDefaultAdapter(adapter);
    adapterFactory.setUseDefaultAdapter(true);
    Should I be setting anything else ?
    I don't have problem connecting to the http version of the webs ervice..
    Pls. find attached the weblogic log...
    Help is very much appreciated..
    Thanks
    Gary
    [22.log]

    Hugoc8,
    > am wondering if it's possible to replace the windows 7 login with just
    > the novell client? How it worked in windows xp. We just want the novell
    > login box.
    >
    > So far all I have seen is the windows default login with an option to
    > click for novell login.
    Make sure usernames and passwords match and make the Novell login primary. Thet you'll only see the Novell login.
    To make sure usernames/passwords always match, then use ZCM
    https://www.novell.com/sv-se/product...ionmanagement/
    or AutoAdminLogon
    https://forums.novell.com/novell-pro...ndows-7-a.html
    Anders Gustafsson (NKP)
    The Aaland Islands (N60 E20)
    Have an idea for a product enhancement? Please visit:
    http://www.novell.com/rms

  • Need urgent help with the query - Beginer

    Hello - I need help with a query to populate data in a table.Here is the scenario.
    Source1
    MnthID BranchCod CustID SegCode FXStatus ProfStatus Profit
    200712 B1 C1 20 Y Y 100
    Source2
    MnthID BranchCod CustID ProdCode ProdIndex
    200712 B1 C1 12 1
    200712 B1 C2 12 0
    Destination
    MnthID BranchCod SegCode ProdCode CountSegCust CountProdCust ProfitProdCust
    Condition and Calculations:
    1)Source1 customer are base customers.If Source2 has customers who is not in source1 then that customer's record should not be fetched.
    2)SegCode, FX Status, ProfStatus is one variable in destination table. [ SegCode = SegCode+ FXStatus (if FXStatus = Y)+ ProfStatus (if FXStatus = Y) ]
    3)CountSegCust = CountCustID Groupby MnthID,BranchCod,SegCode Only.
    4)CountProdCust = CountCustID Groupby MnthID,BranchCod,SegCode,ProdCode (when ProdIndex = 1)
    5)ProfitProdCust = Sum of Profit of Customers Groupby MnthID,BranchCod,SegCode,ProdCode (when ProdIndex = 1)
    Apologies for bad formatting.
    Thanks in advance!!

    A total guess indeed.
    It's not clear whether some aggregation can be done (summing counts of grouped data might cause some customers being counted more than once)
    insert into destination
    select mnthid,branchcod,segcode,prodcode,countsegcust,countprodcust,profitprodcust
      from (select s1.mnthid,
                   s1.branchcod,
                   s1.segcode || case s1.fxstatus when 'Y' then s1.fxstatus || s1.profstatus end segcode,
                   s2.prodcode,
                   count(s1.custid) over (partition by s1.mnthid,
                                                       s1.branchcod,
                                                       s1.segcode || case s1.fxstatus when 'Y' then s1.fxstatus || s1.profstatus end
                                              order by null
                                         ) countsegcust,
                   count(case proindex when 1
                                       then custid
                         end
                        ) over (partition by s1.mnthid,
                                             s1.branchcod,
                                             s1.segcode || case s1.fxstatus when 'Y' then s1.fxstatus || s1.profstatus end
                                             s2.prodcode
                                    order by null
                               ) countprodcust,
                   sum(case proindex when 1
                                     then profit
                       end
                      ) over (partition by s1.mnthid,
                                           s1.branchcod,
                                           s1.segcode || case s1.fxstatus when 'Y' then s1.fxstatus || s1.profstatus end
                                           s2.prodcode
                                  order by null
                             ) profitprodcust,
                   row_number() over (partition by s1.mnthid,
                                                   s1.branchcod,
                                                   s1.segcode || case s1.fxstatus when 'Y' then s1.fxstatus || s1.profstatus end
                                                   s2.prodcode
                                          order by null
                                     ) the_row
              from source1 s1,source2 s2
             where s1.mnthid = s2.mnthid
               and s1.branchcod = s2.branchcod
               and s1.custid = s2.custid
    where the_row = 1Regards
    Etbin

  • Need some help with Service Manager Powershell commands

    I am a real noob with SM and often I am asked to grant users access to the SM console. I am typically told to pattern the role membership like another user. Problem is I can't find and easy way to do that. If someone tells me, " I need the same access
    as John Doe", what power shell command can I use to find out all the roles John Doe belongs to. I am guessing its going to be PS because there is no option in the console for this.

    This is the wrong side up when you're thinking about permissions. Nobody gets hired to do "the same job as bob". It doesn't make any more sense to copy permissions for a user then it does to take bob's keychain and copy all of his keys. Just because bob
    needs access to his car, doesn't mean his successor needs the same access.
    The best way to deal with permissions (in Service Manager and in IT in general) is to create job role groups that reflect the rights required to do a given job. When someone is hired into a job, they get added into that group and get the right permissions.
    in service manager, you can put that job role group into all of the SCSM role groups that apply to that job role.

  • Need some help with Firefox and userChrome.css

    As you can see there is some space underneath the tabs. I used the addon 'Classic theme restorer' to hide the adressbar, but unfortnanly it left some space underneath the tabs. I've been trying to fix it with userChrome.css myself, but I really dont know what am I'm doing.
    Does anyone know how to remove it?

    *For Safari (4.0.2)* I just clicked help>installed_plug-ins and get this:
    http://www.easy-share.com/1908259228/Installed Plug-ins.html
    *Firefox (3.5.3)* tools>add-ons>extensions: Ad Block plus
    and tools>add-ons>Plug-ins: http://yfrog.com/6qnag2j
    Message was edited by: Jonnymont
    If I just delete these won't it make things worse? like not being able to go to any flash sites at all (majority of internet these days)
    Message was edited by: Jonnymont

  • Need some help with WRT54G2 and Home Network

    Ok, I've had the WRT54G for a long time and recently updated to the WRT54G2 but now can't access file and print sharing that's running Windows Vista from Windows XP using wireless.
    Here's my set up,
    Desktop running Windows Vista connected to router (This is the computer with Folders and Printers)
    2-Windows XP Laptops connected wirelessly 
    All 3 are set on same workgroup can be seen on Windows XP machine when going to, My Network Places, also all can get on the internet.
    Any ideas what the problem could be? I'm guessing a setting somewhere but I haven't been able to find it.
    Solved!
    Go to Solution.

    Hey Gary...
    I just upgraded my set up to a WRT54GS from an older linksys router that only had A/B. I have two wired desktops and a wireless desktop in my network..all running xp and all sharing files. I had no issues with the file sharing prior to the upgrade but once I changed over the computers could see eachother, access the net but not share files...Chances are it is likely a firewall issues...
    Try turning off windows firewall...that might help..
    Also depending upon your antivirus there might be settings in there that you would have to change to allow for file sharing.
    In my case I did some research and read that if you are running Norton 2009 on the computer that you want to share files from to try uninstalling and reinstalling the program..Had something to do with firewall settings in the program.....I did that and ouila...now all my computers are sharing again...
    Message Edited by redlands on 06-07-2009 06:41 AM

Maybe you are looking for