{"id":835,"date":"2016-06-08T12:27:20","date_gmt":"2016-06-08T12:27:20","guid":{"rendered":"https:\/\/www.lieben.nu\/liebensraum\/?p=835"},"modified":"2016-06-08T12:27:20","modified_gmt":"2016-06-08T12:27:20","slug":"o365anticryptolocker-restores-the-previous-version-of-your-files-in-sharepoint-online-or-onedrive-for-business","status":"publish","type":"post","link":"https:\/\/lieben.nu\/liebensraum\/2016\/06\/o365anticryptolocker-restores-the-previous-version-of-your-files-in-sharepoint-online-or-onedrive-for-business\/","title":{"rendered":"O365AntiCryptoLocker, restores the previous version of your files in Sharepoint Online or Onedrive for Business"},"content":{"rendered":"<p><span style=\"color: #ff0000;\">Note: <a href=\"https:\/\/www.lieben.nu\/liebensraum\/o365undo\/\">O365Undo is also free and can probably help you fix your crytolocker problem more precisely as it is the next version of O365AntiCryptoLocker<\/a><\/span><\/p>\n<p><a href=\"https:\/\/www.lieben.nu\/liebensraum\/wp-content\/uploads\/2016\/06\/O365AntiCryptoLocker.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-840\" src=\"https:\/\/www.lieben.nu\/liebensraum\/wp-content\/uploads\/2016\/06\/O365AntiCryptoLocker.png\" alt=\"O365AntiCryptoLocker\" width=\"880\" height=\"170\" srcset=\"https:\/\/lieben.nu\/liebensraum\/wp-content\/uploads\/2016\/06\/O365AntiCryptoLocker.png 880w, https:\/\/lieben.nu\/liebensraum\/wp-content\/uploads\/2016\/06\/O365AntiCryptoLocker-300x58.png 300w, https:\/\/lieben.nu\/liebensraum\/wp-content\/uploads\/2016\/06\/O365AntiCryptoLocker-768x148.png 768w\" sizes=\"auto, (max-width: 880px) 100vw, 880px\" \/><\/a><\/p>\n<p>At <a href=\"http:\/\/www.ogd.nl\">OGD<\/a> we sometimes\u00a0have to deal with users that got infected with CryptoLockers and have both automated and controlled systems in place to prevent damage or restore data to any fileshares. An infection on Sharepoint Online or Onedrive has not yet happened, but eventually it of course will and\u00a0I\u00a0like to fix things before they break.<\/p>\n<p>As Sharepoint Online and Onedrive for Business natively use versioning on files, you basically have no real risk of losing data to Cryptolockers, your RPO (Restore Point Objective) is 0. However, restoring the previous versions of files is quite a lot of work if done manually, so your RTO (Restore Time Objective) could be weeks or more.<\/p>\n<p>Unless of course, you use Powershell. I&#8217;ve written a\u00a0script that will restore the most current previous version of any file in a given Document Library.<\/p>\n<p>Download:\u00a0<a href=\"https:\/\/www.lieben.nu\/liebensraum\/wp-content\/uploads\/2016\/06\/O365AntiCryptoLocker.ps1\">O365AntiCryptoLocker<\/a><\/p>\n<p>Example usage for a Onedrive site:<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">.\\O365AntiCryptoLocker.ps1 -siteURL&amp;nbsp;&quot;https:\/\/o365mig-my.sharepoint.com\/personal\/test1_o365mig_onmicrosoft_com&quot; -login &quot;mylogin&quot; -password &quot;mypassword&quot; -libraryTitle &quot;Documents&quot;<\/pre>\n<p>Or for a Sharepoint Online Site:<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">.\\O365AntiCryptoLocker.ps1 -siteURL&amp;nbsp;&quot;https:\/\/o365mig.sharepoint.com\/site1&quot;&amp;nbsp;-login &quot;mylogin&quot; -password &quot;mypassword&quot; -libraryTitle &quot;Documents&quot;<\/pre>\n<p>You&#8217;ll need the <a href=\"https:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=42038\">Sharepoint Client Components<\/a> installed, and you&#8217;ll have to have sufficient permissions on the library and its files.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Note: O365Undo is also free and can probably help you fix your crytolocker problem more precisely as it is the next version of O365AntiCryptoLocker At OGD we sometimes\u00a0have to deal with users that got infected with CryptoLockers and have both automated and controlled systems in place to prevent damage or restore data to any fileshares. &hellip; <a href=\"https:\/\/lieben.nu\/liebensraum\/2016\/06\/o365anticryptolocker-restores-the-previous-version-of-your-files-in-sharepoint-online-or-onedrive-for-business\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">O365AntiCryptoLocker, restores the previous version of your files in Sharepoint Online or Onedrive for Business<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[32,34,39,44],"tags":[],"class_list":["post-835","post","type-post","status-publish","format-standard","hentry","category-office-365","category-onedrive-for-business","category-powershell","category-sharepoint-online"],"_links":{"self":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/posts\/835","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/comments?post=835"}],"version-history":[{"count":0,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/posts\/835\/revisions"}],"wp:attachment":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/media?parent=835"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/categories?post=835"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/tags?post=835"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}