{"id":876,"date":"2016-07-07T14:42:58","date_gmt":"2016-07-07T14:42:58","guid":{"rendered":"https:\/\/www.lieben.nu\/liebensraum\/?page_id=876"},"modified":"2016-07-07T14:42:58","modified_gmt":"2016-07-07T14:42:58","slug":"o365undo","status":"publish","type":"page","link":"https:\/\/lieben.nu\/liebensraum\/o365undo\/","title":{"rendered":"O365Undo"},"content":{"rendered":"<p>O365Undo is a great script you can use to roll back actions of your\u00a0user(s) in Office 365. Most likely, actions your user wasn&#8217;t aware of but were actually done by a CryptoLocker or by RansomWare. These nasty virusses can cause havoc on your mapped or synced Sharepoint Online or Onedrive for Business libraries in the form of file level encryption or file name obfuscation.<\/p>\n<p><strong>O365Undo\u00a0requires that you have <a href=\"https:\/\/www.lieben.nu\/liebensraum\/2016\/06\/do-not-forget-to-enable-the-unified-audit-log\/\">enabled the Unified Audit Log<\/a>\u00a0in Office 365.<\/strong><\/p>\n<p>If you have done so, O365Undo can <em>reverse<\/em> the following actions your user took in Onedrive, Sharepoint or an Office 365 Group up till a given date (max time back is when you enabled the Universal Audit Log):<\/p>\n<ul>\n<li>FileCopy<\/li>\n<li>FileRenamed<\/li>\n<li>FileMoved<\/li>\n<li>FileModified<\/li>\n<\/ul>\n<p><strong>How to use<\/strong><\/p>\n<ol>\n<li>Install the <a href=\"https:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=42038\">Sharepoint Client Components<\/a><\/li>\n<li>Identify the login of the user you wish to target, e.g.: jos.haarbos@lieben.nu<\/li>\n<li>Identity the moment in time you want to go back to (your local time in MM-DD-YYYY HH:MM:SS format)<\/li>\n<li>Do not let the user Modify anything for 15-30 minutes (UA log sync time)<\/li>\n<li>Run the script: .\\O365Undo.ps1 -affectedUserLogin jos.haarbos@lieben.nu -infectionDateTime &#8220;05-13-2016 00:00:00&#8221; -login &#8220;jos.haarbos@lieben.nu&#8221; -password &#8220;Welcome123&#8221;<\/li>\n<li>View the screen and\/or log in %Appdata% for the results<\/li>\n<\/ol>\n<p><strong>What it won&#8217;t (yet) do:<\/strong><\/p>\n<ol>\n<li>restore deleted files from the recycle bin<\/li>\n<li>check files back in when checked out<\/li>\n<li>delete new files<\/li>\n<li>rename \/ move folders<\/li>\n<\/ol>\n<p><strong>Disclaimer<\/strong><\/p>\n<p>I&#8217;m not a real programmer, this code is meant as a Proof Of Concept. I do not guarantee this product will work in your setup, and I offer no dedicated support, I try to help everyone on a best-effort basis but also have to work for a living.<\/p>\n<p><span style=\"color: #ff0000;\">This tool is not actively maintained, make sure you test it before running in a production environment!<\/span><\/p>\n<p><strong>Download<\/strong><\/p>\n<p><a href=\"https:\/\/www.lieben.nu\/liebensraum\/wp-content\/uploads\/2016\/07\/O365Undo_V0.5.ps1\">O365Undo_V0.5.ps1<\/a>\u00a0(right click, save as)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>O365Undo is a great script you can use to roll back actions of your\u00a0user(s) in Office 365. Most likely, actions your user wasn&#8217;t aware of but were actually done by a CryptoLocker or by RansomWare. These nasty virusses can cause havoc on your mapped or synced Sharepoint Online or Onedrive for Business libraries in the &hellip; <a href=\"https:\/\/lieben.nu\/liebensraum\/o365undo\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">O365Undo<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"_crdt_document":"","footnotes":""},"class_list":["post-876","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/pages\/876","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/types\/page"}],"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=876"}],"version-history":[{"count":0,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/pages\/876\/revisions"}],"wp:attachment":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/media?parent=876"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}