HT2513 iCal string of events repeat and end on a given date?

Is there a way to have any given string of events repeat and end on a given date?
Example, I have a different training regiment for each day leading up to an event/date and then will have the same training regiment again leading up to another event. I want each day's training regiment to show up as an event per day... but don't want to have to post each days repeat string of training prior to each event... and they don't nessecarily repeat monlthy or regularly... I want to set an end date and all the training fill in from that date backwards. Is this possible??

Does this work any better? New-jobtrigger requires a datetime object.
$csv6=Import-Csv D:\Lzero\Coll_Schd\Dependent_List.csv
foreach($cs in $csv6)
{$sys=$cs.CI
[datetime] $schd=$cs.RebootSchedule
$user="Domain\username"
$paswd=ConvertTo-SecureString -String "P@ssWord" -AsPlainText -Force
$Credential=New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $user,$paswd
Register-ScheduledJob -Name System_Restart -ScriptBlock {
Restart-Computer -ComputerName $sys -Force -wait} -Trigger (New-JobTrigger -At $schd -Once) -ScheduledJobOption (New-ScheduledJobOption -RunElevated) -Credential $Credential

Similar Messages

  • Is there a way to enter an event time in Calendar as a reminder for me and NOT have Calendar erase it in the info as it reads it into the event start and end times?

    Calendar can recognize and derive event start and end times from the text description entered.  However, when it seizes on a time (start and/or end) and automatically enters it as the start and/or end time, it also (sigh) deletes the time from the text.  I enter the times as reminders for me, how can one prevent them from being deleted by Calendar??

    I am having the same darn problem. I really dislike this auto feature in Calendar.
    Can anyone help us please?

  • How to get LASTDAY for each and every month between given dates..

    Hi Friend,
    I have a doubt,How to get LASTDAY for each and every month between given dates..
    for ex:
    My Input will be look like this
    from date = 12-01-2011
    To date = 14-04-2011
    And i need an output like
    31-01-2011
    28-02-2011
    31-03-2011
    is there any way to achieve through sql query in oracle
    Advance thanks for all helping friends

    Here's a 8i solution :
    select add_months(
             trunc(
               to_date('12-01-2011','DD-MM-YYYY')
             ,'MM'
           , rownum ) - 1 as results
    from all_objects
    where rownum <= ( months_between( trunc(to_date('14-04-2011','DD-MM-YYYY'), 'MM'),
                                      trunc(to_date('12-01-2011','DD-MM-YYYY'), 'MM') ) );
    The above two query is worked in oracle 11GActually the first query I posted is not correct.
    It should work better with
    months_between(
       trunc(to_date(:dt_end,'DD-MM-YYYY'),'MM'),
       trunc(to_date(:dt_start,'DD-MM-YYYY'),'MM')
    )Edited by: odie_63 on 12 janv. 2011 13:53
    Edited by: odie_63 on 12 janv. 2011 14:11

  • Find month and year of a given date

    Hi,
    How to find the month and year of a given date.
    month ( sy-datum)  year ( sy-datum )
    --Bala

    hi
    DATA: EDAYS LIKE VTBBEWE-ATAGE,
    EMONTHS LIKE VTBBEWE-ATAGE,
    EYEARS LIKE VTBBEWE-ATAGE.
    PARAMETERS: FROMDATE LIKE VTBBEWE-DBERVON,
    TODATE LIKE VTBBEWE-DBERBIS DEFAULT SY-DATUM.
    Call Function 'FIMA_DAYS_AND_MONTHS_AND_YEARS'
      exporting
        i_date_from          = FROMDATE
        i_date_to            = TODATE
      I_FLG_SEPARATE       = ' '
      IMPORTING
        E_DAYS               = EDAYS
        E_MONTHS             = EMONTHS
        E_YEARS              = EYEARS.
    WRITE:/ 'Difference in Days   ', EDAYS.
    WRITE:/ 'Difference in Months ', EMONTHS.
    WRITE:/ 'Difference in Years  ', EYEARS.
    INITIALIZATION.
    FROMDATE = SY-DATUM - 60.
    Using teh abiove u can get difference but when u pass previous year u wont get the exact.
    There is no seperate FM for this, u have to use three FM.
    If possible using these three FM code u can create an FM.
    For years and months between two days:
    DATA:   EYEARS  LIKE VTBBEWE-ATAGE.
    PARAMETERS: FROMDATE LIKE PREL-BEGDA,
                     TODATE   LIKE PREL-BEGDA DEFAULT SY-DATUM.
    CALL FUNCTION 'COMPUTE_YEARS_BETWEEN_DATES'
      EXPORTING
        first_date                        = fromdate
      MODIFY_INTERVAL                   = ' '
        second_date                       = todate
    IMPORTING
       YEARS_BETWEEN_DATES               =  EYEARS
    EXCEPTIONS
      SEQUENCE_OF_DATES_NOT_VALID       = 1
      OTHERS                            = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Write:/ eyears.
    DATA:       EMONTHS LIKE VTBBEWE-ATAGE.
    PARAMETERS: FROMDATE LIKE SY-DATUM,
                TODATE   LIKE SY-DATUM
    DEFAULT SY-DATUM.
    CALL FUNCTION 'MONTHS_BETWEEN_TWO_DATES'
      EXPORTING
        i_datum_bis         = fromdate
        i_datum_von         = todate
      I_KZ_INCL_BIS       = ' '
    IMPORTING
       E_MONATE            = emonths
    write:/ emonths
    CALL FUNCTION 'DAYS_BETWEEN_TWO_DATES'
    EXPORTING
    I_DATUM_BIS = x_faede-zfbdt
    I_DATUM_VON = p_fdat
    I_KZ_EXCL_VON = '0'
    I_KZ_INCL_BIS = '0'
    I_KZ_ULT_BIS = ' '
    I_KZ_ULT_VON = ' '
    I_STGMETH = '0'
    I_SZBMETH = '1'
    IMPORTING
    E_TAGE = dias_v.
    IF SY-SUBRC <> 0.
    ENDIF.
    x_faede-zfbdt -> 20050915
    p_fdat -> 20050811
    dias_v = 4
    try this and let me know.
    regards
    ravish
    <b>plz dont forget to reward useful points</b>

  • It says iCal will default events with no end time to one hour..and mine used to..but since I upgraded to Lion it doesn't.  Any suggestions as to how I can get it to default events to one hour?

    My iCal used to default to one hour when I posted an event with a start time and no end time.  The user guide says it will default to one hour.  Since I started using OS Lion, my calendar doesn't do that.  Can anyone suggest a way for me to get the calendar to default to one hour again?  Thanks.

    Dana,
    Here are some iCal data entry tips from iCal Help:
    Enter a name, date, and time duration for the event, and then press Return.
    For example, you can enter “Super Bowl Party Feb 5,” “Movie with Rebecca on Friday at 7pm,” “Soccer Game on Saturday from 11am-1pm,” or “Breakfast with Jon,” and then press Return.
    If you don’t enter a time duration for the event, iCal sets the event’s duration to 1 hour.
    If you don’t enter any time information for the event, iCal makes the event an all-day event.
    If you enter “breakfast” or “morning,” iCal sets the event to start at 9 a.m.
    If you enter “lunch “ or “noon,” iCal sets the event to start at 12 p.m.
    If you enter “dinner” or “night,” iCal sets the event to start at 8 p.m.

  • Scanning an ascii string for a start and end character

    I would like to watch data lines on a com port and pick off a part of a
    line that starts with a "$" and ends with a CR. I would like the
    felxibility to select different start and end characters also. Is this
    doable with LabView? I have the com port monitoring done I need to
    separate incoming strings. I can't count chacters because the data
    lines varies in length each time the data line comes in. Thanks in
    advance fir the help.
    [email protected]

    If you don't want to mess with having to decide whether or not you need to pre-pend a "\" to the character you are feeding into the match-pattern function then you could just do it all with byte arrays like in the attached example. The example also shows various ways that ASCII controls & indicators can be configured to allow you to more easily handle non-visible characters (just right-click on the front panel control/indicator and select normal, \ codes, hex or password).
    As far as your question about the error code meaning, you can right-click on a front-panel error cluster and select the "explain error" option to see all the known causes of the error. You have to then interpret this in the context of what you were doing. When I drop an error cluster on a front panel, set status to Error and code to 85, I can right click on it, select "explain error" and get this:
    "Error 85 occurred at an unidentified location
    Possible reason(s):
    LabVIEW:  Scan failed."
     ...and that sounds to me like (as a WAG) you might be trying to use the Scan From String function with input data that does not match the format string.
    Attachments:
    String Subset.vi ‏53 KB

  • Lookup DSO in Start Routine and End Routine to update date

    Hi Gurus,
    I need a Start Routine & help, while loading the data from DSO to Info Cube.
    In the DSO ( /BIC/AZSD_O0300 ) & in the InfoCube I have a common fields are
    0DOC_NUMBER ( DOCUMENT NUMBER), 0S_ORD_ITEM ( Sales Document Item Number ), 0SCHED_LINE ( Schedule Line ) and 0MATAV_DATE ( Material Available Date ).
    Data in DSO is as follows
    0DOCNUMBER_ 0SORD_ITEM_ 0SCHEDLINE_ 0MATAVDATE_
    1001 10 1 05/21/2011
    1001 20 2 05/26/2011
    1001 10 2 05/22/2011
    1001 20 1 05/18/2011
    1002 20 1 05/20/2011
    1002 10 1 05/24/2011
    1002 10 2 05/28/2011
    Data should load in the InfoCube as below.
    0DOCNUMBER    0S_ORD_ITEM     0SCHED_LINE    0MATAV_DATE
    1001          10    1   05/21/2011
    1001          20    2   05/18/2011
    1001          10    2   05/21/2011
    1001          20     1  05/18/2011
    1002         20     1  05/20/2011
    1002         10    1   05/24/2011
    1002         10     2   05/24/2011  
    When ever schedule line is 2 for the record we have to check both Document number and 0S_ORD_ITEM are same change the Material moving date to the date schedule line is 1 for the same document and same order item number.
    Your help is really appreciated.
    Thanks
    Ganesh Reddy.

    Thanks Parth and Raj. I have written code almost as you suggested just little changes.
    Start Routine
    TABLES:/BIC/AZSD_O0300.
    DATA:ITAB_DSO LIKE /BIC/AZSD_O0300.
    TYPES: BEGIN OF ITABTYPE,
    DOC_NUM TYPE /BI0/OIDOC_NUMBER,
    SAL_DOC_NUM TYPE /BI0/OIS_ORD_ITEM,
    SCHED_NUM TYPE /BI0/OISCHED_LINE,
    MAT_AV_DATE TYPE /BI0/OIMATAV_DATE,
    END OF ITABTYPE.
    DATA : ITAB TYPE STANDARD TABLE OF ITABTYPE
           WITH HEADER LINE
           WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
    data: wa_itab type ITABTYPE.
    SELECT DOC_NUMBER S_ORD_ITEM SCHED_LINE MATAV_DATE
      FROM /BIC/AZSD_O0300
      INTO TABLE ITAB
      WHERE SCHED_LINE = '1'.
    Field Routine.
    if SOURCE_FIELDS-S_ORD_ITEM <> '1'.
          read table itab into wa_itab with key    doc_num =
          SOURCE_FIELDS-DOC_NUMBER
                                             SAL_DOC_NUM =
                                             SOURCE_FIELDS-S_ORD_ITEM.
          if sy-subrc = 0.
          RESULT = wa_itab-MAT_AV_DATE.
        endif.
      endif.
    I haven't check how the data is coming. But for now I am closing this issue.
    Thanks Again
    Ganesh Reddy.

  • HT2513 Why do some events sync and others don't?

    I have an iMac 27" running OSX 10.6.8 and a latest model iPod Touch which I have syncing with the iMac and is running iOS 6.1.2.
    I first noticed that they weren't syncing reliably when I lined up some Apple Store classes.
    I DLed the iCal events and double clicked on them. They show up in the desktop iCal but some do and some don't on the iPod Touch.
    The same happens with events I create myself. Some Sync and some don't. I did these all in the same session, so can't understand what is the difference.
    I have all Callendars checked in the iPod's Calendars app.
    I have tried restarting both the desktop and Mac apps and even restarting both devices completely.
    The missing events just stubbornly refuse to show up.
    Can anyone else think what else to try.
    To be frank looking at the whole process of importing events from the Apple Store, down to the adding of my own events and then syncing them is a tedious shambles. Certainly not something that "just works".

    Hopefully, your question will get a response soon.
    Similar issue.
    I too am running 10.6.&amp;.
    iOS is 6.1.2 (iPhone 4S).
    In my case, there are far more events that fail to sync than sync properly. But there is no rhyme or reason to any of it that I can see.
    Russ

  • ICal Misbehaving - deleted events reappear and editing buggy

    My iCal is not behaving properly—every time I try to delete an event it
    re-appears a moment later and every time I try to edit an event it makes the
    change, but leaves a duplicate of the original.
    My iCal is not behaving properly—every time I try to delete an event it re-appears a moment later and every time I try to edit an event it makes the change, but leaves a duplicate of the original.
    I tried looking for a downloadable version (I am currently using version 4.0.4) to re-install it, but I cannot find a version that will install.
    iCal seems to work fine in other accounts, restarting / logging off and returning to my account doesn't help.

    Are you syncing with anything?
    AK

  • SCSM 2012 Change form issue - Scheduled start and end times default to 12:00:00

    I have a report that the Change Form in SCSM 2012 is not allowing users to set the scheduled start and end times.  The date stays correct, but the time reverts back to 12:00:00, and the user has to save to the initial form,  then re-open and
    change the times.
    I checked in the authoring tool, the time/date field is set to full date and time. (I think these are custom fields)
    I am not sure where else to look to adjust any settings as needed.
    Thanks for any assistance.
    Joshua Fuente

    Hi Joshua,
    Is this situation on all consoles or few ones? Check the time format on the user's PC. 24h or 12h could affect the DateTime control's behavior.
    Cheers,
    Marat
    Site: www.scutils.com  Twitter:
      LinkedIn:
      Facebook:

  • Function Module for getting Payroll start date and end date

    Hi Gurus,
      If I give one date then is there any function module to find the payroll period start date and enddate for that given date?
    Points will be awarded
    Thanks
    Ravi

    Hi,
      Try these FMs
    HR_PAYROLL_PERIODS_GET
    HR_BEN_PAY_GET_PAYROLL_PERIODS
    HR_PAYROLL_PERIOD_GET
    HR_P06I_GET_PAYROLL_PERIOD
    Regards,
    PRashant

  • "All Day" events repeating a million times on iCal app on the same day.

    I have a few events on my iCal app that are repeating a countless number of times. They are not associated with any of the individual "calendars" I have either. When I sync my phone to my macbook, they dont appear on the calendar on my computer so I dont know where they are coming from... 2 are peoples birthdays and another is showing up as an anniversary.  Does anyone know how to delete these.  Each time I do delete one Im not even sure it even deletes.

    Jason L wrote:
    Since the iPhone is updated and disabling Time Zone Support does not affect the calendar events it, the issue is most likely related to Outlook/Exchange.
    That logic seems somewhat flawed. Outlook displays it fine. Exchange displays it fine. Other phones display it fine. iPhone displays it wrong.
    To me, issue is most likely related to iPhone?
    Jason L wrote:
    Did you run into any errors or problems when trying the tips in the Resolution or Additional Information sections of the article you linked above?
    No errors, Outlook was already set to my timezone, so I forced it to re-change it to my timezone again. It scanned through my appointments and then gave the message "No appointments, meetings or reminders were found that needed to be moved to the new time zone."

  • Nokia and iCal: all-day events

    Whenever I use iSync to sync iCal and my E65, all-day events are sent to the phone as "meetings" that last from from 12:00am to 11:59pm instead of being synced as "notes". This is very annoying! Does anyone know of a solution? Here are my software versions:
    Mac OS X: 10.4.10
    iSync: 2.4
    iCal: 2.0.5

    I researched and researched, and it looks like Mac users are out of luck on this issue. Everything seemed to go wrong when Nokia changed to SyncML to sync their calendar and address book databases. Seems like Nokia & Apple would have resolved this issue by now. From what I've heard, it's been a problem for a long time.
    So, I'm giving up for now until someone has an answer. I'm only going to put calendar events on my phone and just use that as my main calendar.
    If anyone's interested, there is new software for S60 called "Handy Calendar" by Epocware. It is an amazing replacement for the built-in Nokia calendar app. The one big improvement is that you can make all-day events repeat, unlike on Nokia's calendar. It uses the same database as Nokia's calendar, so you can switch between the 2 with no problems. It also has a nice, clean, good-looking interface. Unfortunately it uses Nokia's SyncML as well, so it doesn't help with iCal.
    Oh, well... waiting for a fix...

  • E65 and iCal: all-day events

    Whenever I use iSync to sync iCal and my E65, all-day events are sent to the phone as "meetings" that last from from 12:00am to 11:59pm instead of being synced as "notes". I've tried everything I can think of, including syncing to Google Calendars online instead. I get the same issue. This is very annoying! Does anyone know of a solution? Or does anyone know of a different calendar program I can use?
    Here are my software versions:
    Mac OS X: 10.4.10
    iSync: 2.4
    iCal: 2.0.5
    E65: 2.0633.65.01

    I researched and researched, and it looks like Mac users are out of luck on this issue. Everything seemed to go wrong when Nokia changed to SyncML to sync their calendar and address book databases. Seems like Nokia & Apple would have resolved this issue by now. From what I've heard, it's been a problem for a long time.
    So, I'm giving up for now until someone has an answer. I'm only going to put calendar events on my phone and just use that as my main calendar.
    If anyone's interested, there is new software for S60 called "Handy Calendar" by Epocware. It is an amazing replacement for the built-in Nokia calendar app. The one big improvement is that you can make all-day events repeat, unlike on Nokia's calendar. It uses the same database as Nokia's calendar, so you can switch between the 2 with no problems. It also has a nice, clean, good-looking interface. Unfortunately it uses Nokia's SyncML as well, so it doesn't help with iCal.
    Oh, well... waiting for a fix...

  • Ical loses event name and time

    Dear communitiy,
    i got a serious problem with ical syncing with an SBS 2008 Exchange Server. It often happend lately that I created a new event via right-mouse-click on my calender (which is on the Exchange account). Let's say at 16.15 pm. Then I normaly change the events name and time. After a day (can't tell exactly, most times after a reboot) I find that event having changed its name back to "new event" and the time back to 16.15 pm. I'm absolutely sure I saved the event after changing it. For your Information: The Exchange account syncs with my iPhone and my Macbook at home. OSX is 10.7.2, the iPhone is iOS 5.0.
    Any help would be great.
    Regards
    Philipp

    Yes, I have the same problem and cannot resolve. The only common theme that I can establish is that this only appies to repeating events. Did you find a solution?

Maybe you are looking for