Retrieving files from Sharepoint Online based on time stamp using SharePoint Online Management Shell

Hello,
I would like to create a Powershell script to download files based on timestamp (all files updated on a given date or later). I would really appreciate any guidance on which cmdlets/objects I should look at to accomplish this.  I am new to Sharepoint
online and Powershell, though not to programming or scripting.
Thank you for your help!

Hi,
You should start by reading this article : Windows PowerShell for SharePoint Online.
Then have a look at the Windows PowerShell for SharePoint Command Builder, and select "SharePoint Online"
in the dropdown list.
My technical blog on SharePoint ||
My contributions on the TechNet Gallery

Similar Messages

  • I transferred PPT files from a windows based pc (microsoft PPT 2003), at first my macbook was able to run all animations in file, after some time it stopped running it, partly because i "switched on" something since this is my first time to use a mac ?

    i transferred PPT files from a windows based laptop to my macbook, at first it was able to run the animations in the file no problem, its my first time to use a mac also bythe way, so i started downloading freebies like the VLC, FLIP4MAC, and other plug-in players, would it be because of this downloads that my mac now cannot seem to run the powerpoint animations any more ?

    I don't think vlc would affect powerpoint.  What were those "other plug-in players" you downloaded? 
    I'm not that familiar with powerpoint so how are those animations played?  Are they windows media player files?  If so then flip4mac might affect them.

  • How do I retrieve files from a backup hard drive (was backed up using Time Machine) on a different computer

    how do I retrieve files from a backup hard drive (was backed up using Time Machine) on a different computer?

    Please visit Pondini's Time Machine FAQ for help with all things Time Machine.

  • Cannot retrieve files from Time Machine.

    I cannot retrieve files from Time Machine. I can enter it, but the arrows don't seem to function and when I click on a date/time, nothing happens.

    I don't know what you mean by "arrows". After Entering TM, put your pointer over one of the coloured (usually purple) dated bars at the right of the screen. That will bring (usually the desktop) for that date to the front. Navigate in the usual way to find the old file, select it, and press the big Restore button on the bottom left of your screen. As I remember it, a copy of that file will appear beside the current original with something like "Restored" added to is title. When you quit TM (Cancel) that restored file should appear beside its current version. (Or, if it's host folder has been deleted, smewhere else but I can't remember where - search for it.)

  • Store \ Retrieve files from file system

    Hi to all!
    I would like to implement a solution for storing files uploaded via apex user interface to servers file system. As well I would like this files to be retrievable by apex users. I designed the following solution:
    For upload:
    1. Through file browse item user chooses file to be uploaded
    2. File goes to custom table (as BLOB)
    -- so far i would use apex Upload\Download files tutorial
    3. File(BLOB) would then have to be written to file system to some directory and file id would have to be written to some db table which holds pointers to files on file system
    4. delete file(blob) from custom table (from step 2)
    For download:
    1. user chooses link from some report region(based on table giving file pointers to files residing on file system)
    2. file identified with chosen file pointer is then inserted into blob column of some custom table in db
    3. from custom table with download procedure fie is finally presented to user
    4. delete file(blob) from custom table (from step 2)
    Using apex tutorial for Upload\Download files it is straitforward to get the files from db table or into db table using blobs. But i have not seen any example of using BFILE or migrating files from db to file system and vice versa.
    So some Q arise:
    a) How can I implement step 3 under For upload section above
    b) How can I implement step 2 under For download section above
    c) Is there any way to directly upload file to file system via apex user interface or to directly download file from file system via some report region link column?
    Please help!!!
    Regards Marinero
    Message was edited by:
    marinero

    marinero,
    Here is a procedure that will copy an uploaded file to the file system:
      Procedure BLOB_TO_FILE(p_file_name In Varchar2) Is
        l_out_file    UTL_FILE.file_type;
        l_buffer      Raw(32767);
        l_amount      Binary_Integer := 32767;
        l_pos         Integer := 1;
        l_blob_len    Integer;
        p_data        Blob;
        file_name  Varchar2(256);
      Begin
        For rec In (Select ID
                              From HTMLDB_APPLICATION_FILES
                             Where Name = p_file_name)
        Loop
            Select BLOB_CONTENT, filename Into p_data, file_name From HTMLDB_APPLICATION_FILES Where ID = rec.ID;
            l_blob_len := DBMS_LOB.getlength(p_data);
            l_out_file := UTL_FILE.fopen('UPDOWNFILES_DIR', file_name, 'wb', 32767);
            While l_pos < l_blob_len
            Loop
              DBMS_LOB.Read(p_data, l_amount, l_pos, l_buffer);
              If l_buffer Is Not Null Then
                UTL_FILE.put_raw(l_out_file, l_buffer, True);
              End If;
              l_pos := l_pos + l_amount;
            End Loop;
            UTL_FILE.fclose(l_out_file);
        End Loop;         
      Exception
        When Others Then
          If UTL_FILE.is_open(l_out_file) Then
            UTL_FILE.fclose(l_out_file);
          End If;
      end; And here is a procedure that will download a file directly from the file system:
      Procedure download_my_file(p_file In Number) As
        v_length    Number;
        v_file_name Varchar2(2000);
        Lob_loc     Bfile;
      Begin
        Select file_name
          Into v_file_name
          From UpDownFiles F
         Where File_id = p_file;
        Lob_loc  := bfilename('UPDOWNFILES_DIR', v_file_name);
        v_length := dbms_lob.getlength(Lob_loc);
        owa_util.mime_header('application/octet', False);
        htp.p('Content-length: ' || v_length);
        htp.p('Content-Disposition: attachment; filename="' || SUBSTR(v_file_name, INSTR(v_file_name, '/') + 1) || '"');
        owa_util.http_header_close;
        wpg_docload.download_file(Lob_loc);
      End download_my_file;I could put a sample application on apex.oracle.com, but it wouldn't be able to access the file system on that server.

  • How to get the most current file based on date and time stamp using SSIS?

    Hello,
    Let us assume that files get copied in a specific directory. We need to pick up a file and load data. Can you guys let me know how to get the most current file based on date and time stamp using SSIS?
    Thanks
    thx regards dinesh vv

    hi simon
    i excuted this script it is giving error..
       Microsoft SQL Server Integration Services Script Task
       Write scripts using Microsoft Visual C# 2008.
       The ScriptMain is the entry point class of the script.
    using System;
    using System.Data;
    using Microsoft.SqlServer.Dts.Runtime;
    using System.Windows.Forms;
    namespace ST_9a6d985a04b249c2addd766b58fee890.csproj
        [System.AddIn.AddIn("ScriptMain", Version = "1.0", Publisher = "", Description = "")]
        public partial class ScriptMain : Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
            #region VSTA generated code
            enum ScriptResults
                Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success,
                Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
            #endregion
            The execution engine calls this method when the task executes.
            To access the object model, use the Dts property. Connections, variables, events,
            and logging features are available as members of the Dts property as shown in the following examples.
            To reference a variable, call Dts.Variables["MyCaseSensitiveVariableName"].Value;
            To post a log entry, call Dts.Log("This is my log text", 999, null);
            To fire an event, call Dts.Events.FireInformation(99, "test", "hit the help message", "", 0, true);
            To use the connections collection use something like the following:
            ConnectionManager cm = Dts.Connections.Add("OLEDB");
            cm.ConnectionString = "Data Source=localhost;Initial Catalog=AdventureWorks;Provider=SQLNCLI10;Integrated Security=SSPI;Auto Translate=False;";
            Before returning from this method, set the value of Dts.TaskResult to indicate success or failure.
            To open Help, press F1.
            public void Main()
                string file = Dts.Variables["User::FolderName"].Value.ToString();
                string[] files = System.IO.Directory.GetFiles(Dts.Variables["User::FolderName"].Value.ToString());
                System.IO.FileInfo finf;
                DateTime currentDate = new DateTime();
                string lastFile = string.Empty;
                foreach (string f in files)
                    finf = new System.IO.FileInfo(f);
                    if (finf.CreationTime >= currentDate)
                        currentDate = finf.CreationTime;
                        lastFile = f;
                Dts.Variables["User::LastFile"].Value = lastFile;
                Dts.TaskResult = (int)ScriptResults.Success;
    thx regards dinesh vv

  • Can I use my iPad with airport extreme to retrieve files from a USB connected hard drive?

    Can I use my iPad with airport extreme to retrieve files from a USB connected hard drive?

    Yes, I believe so. Please check out the NetPortal app. I don't have an iPad, but I use it on my iPod Touch to access files on my Time Capsule. It is available from the iTunes App Store.

  • I need to retrieve files from my iPad but I forgot my password. I tried to restore it but then it said I had to turn off Find my iPad on my iPad. I can't do this because I can't get into it. What do I do?

    I need to retrieve files from my iPad but I forgot my password. I tried to restore it but then it said I had to turn off Find my iPad on my iPad. I can't do this because I can't get into it. What do I do?

    If the iPad was running iOS 7,  iCloud: Find My iPhone Activation Lock in iOS 7
    http://support.apple.com/kb/HT5818
    How can I unlock my iPad if I forgot the passcode?
    http://www.everymac.com/systems/apple/ipad/ipad-troubleshooting-repair-faq/ipad- how-to-unlock-open-forgot-code-passcode-password-login.html
    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    How can I unlock my iPad if I forgot the passcode?
    http://tinyurl.com/7ndy8tb
    How to Reset a Forgotten Password for an iOS Device
    http://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Device
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    Saw this solution on another post about an iPad in a school environment. Might work on your iPad so you won't lose everything.
    ~~~~~~~~~~~~~
    ‘iPad is disabled’ fix without resetting using iTunes
    Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
    I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
    Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
    1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
    2. Open iTunes with the iPad disconnected.
    3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
    4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
    5. Click ‘Setup as new iPad’ and then click restore.
    6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
    7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
    8. The first stage in the restore process unlocks the iPad, you are basically just cancelling out the restore process as soon as it reactivates the iPad.
    If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
    ~~~~~~~~~~~~~
    Try it and good luck. You have nothing more to lose if it doesn't work for you.
     Cheers, Tom

  • I have a windows 7 desktop with an external hard drive setup on my home network, will i be able to access this on my home network to save and retrieve files from my mac air?

    i have a windows 7 desktop with an external hard drive setup on my home network, will i be able to access this on my home network to save and retrieve files from my mac air?

    Troubleshooting Home Sharing - http://support.apple.com/kb/TS2972

  • I want to retrieve data from p0001-PLANS based on the below condition,

    Hi,
    I want to retrieve data from p0001-PLANS
    based on the below condition
    select stext from hrp1000 where plvar = '01' and otype = 'S' and objid = p0001-plans and begda GE pn-begda and endda LE pn-endda.
    Thanks,
    Rama.

    Hi
    Based on the Query you have specified thoise are stoerdin an Internal table- then
    select stext from hrp1000 into table t_hrp where plvar = '01' and otype = 'S' and objid = p0001-plans and begda GE pn-begda and endda LE pn-endda.
    The check table for this PLANS is T528B .
    if t_hrp[] is not intitial.
    select * from t528B intot table t_528 where plans eq t_hrp-plans.
    endif.
    Now you can get the PLANS data.
    Refer to the Text tbale for PLANS -  T528T
    To get the TEXTS -
    if t_hrp[] is not initial.
    select * from T528T into table t_528T where plans eq t_hrp-plans.
    endif.
    Regards
    Lekha

  • HT4796 Can you transfer files from a window based back up hard Drive to a mac ?, example word files , iTunes, picture files thanks

    Can you transfer files from a window based back up hard Drive to a mac ?, example word files , iTunes, picture files thanks

    Shermanbva,
    Here's an article that details the various ways you can get Windows files onto a Mac:
    Switch Basics: Migrate your Windows files or system to your Mac
    http://support.apple.com/kb/HT2518
    Have a good one,
    - Ari

  • Can I retrieve files from a modern Mac Backup drive to a PPC Mac?

    Can I retrieve files from a modern Mac Backup drive to a PPC Mac?  I have been having problems with my Macbook Pro not starting up.  I need to figure out how to access files with my PPC Desktop; if possible. 
    What type of files can I access and what type I cannot?
    My Macbook Pro: MacBook Pro, OS X Mountain Lion (10.8.3), 750GB HD, 2.2 GHz, 6 GB RAM
    My PPC: Power mac G4/Upgraded 1.2GHZ /800+RAM/3 HD =400+ GB, Mac OS X (10.4.2)
    Thanks in advance,
    God bless 

    You will need software that is compatible with the data files on the backup drive, ie. if they are .doc files you will need Word (or a substitute).
    You don't mention what type of files are on the drive so it is hard to be specific.

  • How do i transfer files from my external HD to time capsule?

    Hi Everyone,
    I've been reading thru the discussions and yet to find a clear answer on how to transfer files from my external HD to time capsule. I am fairly new to Mac computers, pc user for years, but just bought a new MacBook Pro and the 500g time capsule.
    I plan on using the Time Capsule as a back-up and external harddrive to store all of my music so not to overload my laptop.
    Also, i have a pc formatted ipod, which i will have to re-format for my MacBook so I don't mind creating a new library in itunes but is it difficult to point the library to the music file on the Time Capsule? And will it work?
    Thanks a bunch for any info!

    nnigel, Welcome to the discussion area!
    I've been reading thru the discussions and yet to find a clear answer on how to transfer files from my external HD to time capsule.
    If it is directly connected to your Mac via USB or FireWire, Time Machine will include it in the backup.
    ...but is it difficult to point the library to the music file on the Time Capsule?
    iTunes for Windows: Moving your iTunes Music folder

  • Update file date/time stamp using java

    Let me explain you what I am going through:-
    I have created a java based installer using Jexpress tool and after I do the installation of my files, the files takes the current date rather then taking the date when it was created or modified.
    Everything goes into JAR and I heard that Jar file do not retain the date/time stamp of the file.
    I would like to know if we can change the date and time stamp of the files using Java.
    Is there any method to do that or can we do this by writing the java class?
    Thank You
    Mehul

    Did you check it?
    I did.
    $ jar cvf ~/ui *.m3u
    added manifest
    adding: Amollhgv.m3u(in = 42) (out= 24)(deflated 42%)
    adding: Brand1.m3u(in = 56) (out= 27)(deflated 51%)
    adding: Brand2.m3u(in = 42) (out= 24)(deflated 42%)
    adding: Brand3.m3u(in = 42) (out= 24)(deflated 42%)
    adding: Brand4.m3u(in = 42) (out= 24)(deflated 42%)
    adding: Brand5.m3u(in = 42) (out= 24)(deflated 42%)
    adding: Brand6.m3u(in = 42) (out= 24)(deflated 42%)
    adding: Edurhgv.m3u(in = 42) (out= 24)(deflated 42%)
    $ unzip -l ~/ui
    Archive:  /home/ijbalazs/ui
      Length     Date   Time    Name
            0  12-04-03 17:53   META-INF/
           71  12-04-03 17:53   META-INF/MANIFEST.MF
           42  08-26-02 01:03   Amollhgv.m3u
           56  11-22-98 01:15   Brand1.m3u
           42  08-26-02 01:04   Brand2.m3u
           42  08-26-02 01:04   Brand3.m3u
           42  08-26-02 01:04   Brand4.m3u
           42  08-26-02 01:04   Brand5.m3u
           42  08-26-02 01:04   Brand6.m3u
           42  08-26-02 01:04   Edurhgv.m3u
          421                   10 files

  • How do I move folders with subfolders (containing pdf files) from my pc to ipad 3 to use in adobe reader

    How do I move folders with subfolders (containing pdf files) from my pc to ipad 3 to use in adobe reader

    You need to connect the ipad to the computer and open itunes.
    Open the ipad and go into settings, icloud. Tap on "Documents and Data" and turn that on to sync to icloud.
    Now go back into itunes and it should pick up your ipad already and tap on the ipad connection. There will pop up some taps on the center screen for sync options. Go thru each one (summary, info, apps, music, tv shows, podcasts, itunesU, books and photos).....you want to click on "Books".
    To the left click the arrow next to the ipad under Devices.
    The arrow will point down and open the sub menu, click on the "Books" sub menu here. You will see in the center window current books, PDF currently on the ipad.
    Next go to the top and click on "File"  (file, edit, view, controls, store, advanced, help) and click on "add folder to library"...... it will bring up your computer file system in a seperate window. File the folder your looking for and add it. This should get the folder set up to sync onto ipad thru itunes.
    For additional ease in doing things on the middle window of itunes click back on summary, scroll a bit and you will see "Backup", click on "Backup to icloud". Then under "Options", check "Sync with this ipad over WiFi".
    This will allow you to wirelessly sync your itunes and your ipad without having the ipad connected to the computer with a cable. You just have to be on the same wireless network.
    If in itunes you add something like a pdf or photo, when your on your ipad open the Ibooks or Iphoto app and it wull update the file system to match your itunes account. The sync with with anything you do in itunes and it works the other way around also. If you save files, photos, books on the ipad, using the ipad (app store purchases, games, books)....the ipad will update to itunes next time your on the same network.
    FYI - both the ipad and the computer have to be on.
    Itunes updates (changes you make thru itunes), does not need itunes to be open for update content to update to the ipad. This is because it updates to the cloud.
    Updates from the ipad to itunes will need itunes open on the computer. So it can sync with the cloud info.

Maybe you are looking for

  • Decimal Value display in ALV Field display

    Hi Expert, I need to dispaly one ALV Field "Routine Work Hour" value up to 2 decimal place in ALV output i.e if value is 2.5 then it should display as 2.50.The field which refers to this is ISMNW and the database table is AFRU.Now if this value is ma

  • Converting Smartform in Crycllic languages into PDF format

    Hi All, I have a smart form that needs to be converted into PDF and  sent by mail as an attachment. I have a problem with Cyrillic Languages (Bulgarian). When i use FM convert OTF to PDF its giving some garbage characters insteading of printing cyril

  • ADDING PHOTOS TO AN ALBUM

    I have followed the User's Manual instruction regarding adding a photo to an existing album....without success. After I select the photo, then tap "add to", the screen changes to show all albums, however, they are all greyed out. Any suggestions?

  • Photos already added in album

    hi all, i've started this app new and tried to import new photo's to my mediathek. so at this point no problem. my issue is, that i'm not sure from time to time, if i already add some photo's to new or existing album's. or if they are just added but

  • Weirdest disk size problem...

    MacBook Pro (13-inch, Early 2011) I had 256 GB ADATA SSD, SP900, which was working just fine, until a couple of days ago when I suddenly started to get "Startup disk full" message. I copied 20-30 GB onto external drive, twice that day, deleted those