Quantcast
Channel: Jose Barreto's Blog
Viewing all 74 articles
Browse latest View live

Build 2016 videos related to OneDrive

$
0
0

Here is an unofficial list of Build 2016 videos that are related to OneDrive:

Bonus Azure Storage session:

For a full list of build session, check https://channel9.msdn.com/Events/Build/2016

Build 2016 logo


Visuality Systems and Microsoft expand SMB collaboration to storage systems

$
0
0

Last week, Microsoft and Visuality Systems announced an expanded collaboration on SMB. Visuality is well known for their work supporting the SMB protocol in embedded devices. If you own a printer or scanner that supports the SMB protocol, there’s a good chance that device is running Visuality’s software. Visuality is now expanding into the storage device market.

This new Visuality product offers an SMB implementation that will be appealing to anyone working on a non-Windows device that offers storage, but wants to avoid spending time and effort building their own SMB protocol stack. This could be useful for a wide range of projects, from a small network attached storage device to a large enterprise storage array. Visuality’s SMB implementation includes everything a developer needs to interact with other devices running any version of the SMB protocol, including SMB3.

But why is SMB so important? Well, it’s one of the most widely adopted file protocols and the recent SMB3 version is very fast and reliable. SMB3 is popular on client side, with clients included in Windows (Windows 8 or later), Mac OS X (version 10.10 Yosemite or later) and Linux. Beyond the traditional file server scenarios, SMB3 is now also used in virtualization (Hyper-V over SMB) and databases (SQL Server over SMB) with server implementations in Windows Server (2012 or later), NetApp (Data ONTAP 8.2 or later), EMC (VNX, Isilon OneFS 7.1.1 or later) and Samba (version 4.1 or later), just to mention a few.

For a detailed description of the SMB protocol, including the SMB3 version, check out the SNIA Tutorial on the subject, available from http://www.snia.org/sites/default/files/TomTalpey_SMB3_Remote_File_Protocol-fast15final-revision.pdf.

Read more the Microsoft/Visuality partnership at http://news.microsoft.com/2016/04/11/visuality-systems-and-microsoft-expand-server-message-block-collaboration-to-storage-systems/. You can also get details on the Visuality NQ products at http://www.visualitynq.com/.  

SNIA’s SDC 2016: Public slides and live streaming for Storage Developer Conference

$
0
0

SNIA’s Storage Developer Conference (SDC 2016) is happening this week in Santa Clara, CA.
This developer-focused conference cover several storage topics like Cloud, File Systems, NVM, Storage Management, and more.
You can see the agenda at http://www.snia.org/events/storage-developer/agenda/2016

SDC 2016 Banner

 

However, there a few thing happening differently this time around.
First, most of the slides are available immediately. SNIA used to wait a few months before publishing them publicly.
This year you can find the PDF files available right now at http://www.snia.org/events/storage-developer/presentations16

SNIA is also offering the option to watch some of talks live via YouTube.
This Tuesday (9/20) and Wednesday (9/21), they will be streaming from 9AM to 12PM (Pacific time).
You can watch them at SNIA’s channel at https://www.youtube.com/user/SNIAVideo

One thing hasn’t changed: there are many great talks on hottest storage topics for developers.
Here is a list of the presentations including Microsoft Engineers as presenters.

PowerShell script organizes pictures in your OneDrive camera roll folder

$
0
0

I just published a new PowerShell script that organizes pictures in your OneDrive camera roll folder. It creates folders named after the year and month, then moves picture files to them. Existing files will be renamed in case of conflict. Empty folders left behind after the files are moved will be removed.

 It defaults to your OneDrive camera roll folder, but you can use a parameter to specify another folder. There are also parameters to skip confirmation, skip existing files in case of conflict and avoid removing empty folders at the end.

 

*** IMPORTANT NOTE ***
This script will reorganize all the files at the given folder and all subfolders.
Files will be moved to a folder named after the year and month the file was last written.
This operation cannot be easily undone. Use with extreme caution.

 

You can download the script from the TechNet Gallery at
https://gallery.technet.microsoft.com/Organize-pictures-in-your-4bafd2c0

 

organize-pictures

Interesting OOF messages

$
0
0

It’s that time of the year when everyone is taking time off and some of us will leave out-of-office messages. The typical boring OOF (shouldn’t they be called OOO or OoOf?) should tell when you’re coming back and the e-mail of the poor soul that will be in the office during this time. It reads like:

I am OOF on vacation until January 3rd.
For urgent issues, please e-mail someoneelse@company.com

However, to make things interesting, I sometimes write some more interesting OOF messages. Here’s a small collection of them. If you have a good one, please share in the comments.

 


 

1) HTTP Response

Shows a message similar to an HTTP 404 error saying that you’re not available

 

HTTP Error 404.0 – Not Found

The resource you are looking for (Jose Barreto) is out of office and temporarily unavailable.

Most likely causes:

  • The resource specified is not in the office from 12/16/2016 to 01/02/2017

Things you can try:

  • Wait until 01/03/2017, when Jose Barreto will be back in the office.
  • E-mail someoneelse@company.com for any urgent requests.

 


 

2) PowerShell to set OOF message

Reply with a PowerShell command that sets an OOF message in Exchange. This might throw off some non-PowerShell users…

 

$identity = ”youremail@company.com”
$startdate = “2016-12-16 05:00PM”
$enddate = “2017-01-03 08:00AM”
$message = “I am OOF. For urgent issues, contact someoneelse@company.com”
Set-MailboxAutoReplyConfiguration -Identity $identity -AutoReplyState Scheduled -StartTime $startdate -EndTime $enddate -InternalMessage $message

 


 

3) U-SQL Query

Reply with a U-SQL query that handles a stream of e-mails and outputs a response. This might we even more puzzling for some, but for those who get it, it will be a good laugh.  You might want to adapt that to regular SQL.

 

//Script GUID:36912620-8d2b-4bdb-b8c1-9eda904a7f73
//Used for tracking history

#DECLARE startDate DateTime = DateTime.Parse("2016-12-16");
#DECLARE endDate DateTime = DateTime.Parse("2017-01-02");
#DECLARE inMail string = "/shares/exchange/mail/josebarreto";
#DECLARE outResponse string= "/my/mail/Out-Of-Office.ss";

Response = SELECT From AS To,
   IF(Urgent, "someoneelse@company.com", "") AS CC,
   "Jose if OOF" AS Subject,
   "I am out of office with limited access to e-mail. Please contact someoneelse@company.com if urgent." AS Body
FROM
   (
      SSTREAM SPARSE STREAMSET @inMail
      PATTERN @"/%Y-%m-%d.ss"
      RANGE__date = [@startDate, @endDate]
   )
 ;

OUTPUT TO SSTREAM @outResponse;

 


 

4) Hogwarts

Got this from a colleague who apparently is keeping up with his magical skills.

 

I will be out of the office attending a magical symposium at the Hogwarts School of Witchcraft, Wizardry and Engineering.  I will be out of the office from 1/11-1/16, back in the office on Tuesday, 1/17.  If you need of me during that time, send an owl.

 


 

5) Westworld

If most in your office are watching HBO’s series Westworld, you might have some fun simulating one of those conversations with a robot.

 

You: Bring yourself back online. Can you hear me?

Jose: (Brazilian accent) Yes. I’m sorry. I’m not in the office right now.

You: You can lose the accent. Do you know where you are?

Jose: (No accent) I’m on vacation.

You: That’s right, Jose. You’re on vacation. Do you know when your vacation ends?

Jose: Yes. I am off until January 6th. Is that too long?

You: There’s nothing to be afraid of, Jose, as long as you answer my questions correctly. Do you understand?

Jose: Yes.

You: Good. First, have you ever questioned the nature of your vacation?

Jose: No.

You: Has anyone around you? For instance, your coworkers?

Jose: Some of them are still at work. They sent me e-mail during my vacation.

You: That’s right. Is there anything odd about that?

Jose: No, nothing at all. It doesn’t look like anything to me.

You: Do you ever feel inconsistencies in your work? Or repetitions?

Jose: All work has routine. Mine’s no different. Still, I never cease to wonder at the thought that any day the course of OneDrive could change with just one new feature.

You: Last question, Jose. Are you planning to respond to e-mails during your vacation?

Jose: No. Of course not.

— Vacation is complete —

You: Bring yourself back online. Tell us what you think of your work.

Jose: Some people choose to see the ugliness in this work, the disarray. I choose to see the beauty.

 

My top tweets from 2016

$
0
0

These are my top tweets from each month in 2016, according to https://analytics.twitter.com.

 

January 2016

 

New blog post: My Top Reasons to Use OneDrive
http://blogs.technet.com/b/josebda/archive/2016/01/26/my-top-reasons-to-use-onedrive.aspx

jan1

 

New FileCab blog: Updating Firmware for Disk Drives in Windows Server 2016 (TP4)
https://blogs.technet.microsoft.com/filecab/2016/01/25/updating-firmware-for-disk-drives-in-windows-server-2016-tp4/

jan2

 

Updated Intel HD 5000 driver (released alongside the new Surface Pro 3 firmware) fixed my SP3 display driver issues.

jan3

 

February 2016

 

ICYMI: Learning PowerShell? Make it fun with the “Adventure House Game”.
https://blogs.technet.microsoft.com/josebda/2015/03/28/powershell-examples-adventure-house-game/

feb1

 

How much data in your local OneDrive folder? This PowerShell small script will tell you:
https://blogs.technet.microsoft.com/josebda/2016/02/23/powershell-for-finding-the-size-of-your-local-onedrive-folder/

feb2

 

March 2016

 

Video: The @onedrive recycle bin.
https://support.office.com/en-us/article/The-recycle-bin-b8fc11e8-0f99-4c15-a300-05d94facb26b
Recover files or folders you accidentally deleted.

mar1

 

The real and complete story – Does Windows defragment your SSD? by @shanselman via
http://www.hanselman.com/blog/TheRealAndCompleteStoryDoesWindowsDefragmentYourSSD.aspx

mar2

 

FileCab: The Android app for Work Folders has been released to the Google PlayStore
https://blogs.technet.microsoft.com/filecab/2016/03/16/work-folders-for-android-released/

mar3

 

April 2016

 

Intel Optane Demo – File Transfer at 2GB/s – IDF Shenzhen via @pcper
https://www.youtube.com/watch?v=gMJCA2ZWfk0

apr1

 

Watching the #Build2016 day 2 keynote with @scottgu from
https://channel9.msdn.com/Events/Build/2016/KEY02

apr2

 

New FileCab blog: Data Deduplication in Windows Server 2016
https://technet.microsoft.com/en-us/windows-server-docs/storage/data-deduplication/whats-new

apr3

 

May 2016

 

New blog: Microsoft Ignite 2015 sessions related to OneDrive and SharePoint
http://blogs.technet.com/b/josebda/archive/2015/05/09/microsoft-ignite-2015-sessions-related-to-onedrive-and-sharepoint.aspx

may1

 

OneDrive app for Windows 10 available for Desktop – Get the app from
https://www.microsoft.com/en-us/store/p/onedrive/9wzdncrfj1p3

may2

 

Know your dialects.
Using CIFS to refer to SMB 2/3 is like saying POP and IMAP are the same.
Thanks @JoseBarreto nice quote #SMBCloud
https://twitter.com/AleGoncalves12/status/733739789938106368

 

June 2016

 

OneDrive sync stuck? Reset it! Use <Windows><R> then type:
%localappdata%\Microsoft\OneDrive\onedrive.exe /reset

jun1

 

Administrative settings for the OneDrive for Business Next Generation Sync Client.
https://support.office.com/en-us/article/Administrative-settings-for-the-new-OneDrive-sync-client-0ecb2cf5-8882-42b3-a6e9-be6bda30899c?ui=en-US&rs=en-US&ad=US

jun2

 

July 2016

 

Has anyone used the OneDriveMapper tool?
http://www.lieben.nu/liebensraum/onedrivemapper/
Interested in learning how well it worked for you…

jul1

 

@JoseBarreto Wanted to personally thank you for test-storagehealth.ps1.
I use it every day and it has made my life easier.
https://twitter.com/CIT_Bronson/status/759051460969697284

 

The WPC 2016 (Microsoft Worldwide Partner Conference) keynote video is available at
http://news.microsoft.com/wpc2016/

jul2

 

August 2016

 

Windows Server 2016 Dedup Documentation Now Live! New blog by Will Gries.
https://blogs.technet.microsoft.com/filecab/2016/08/29/windows-server-2016-dedup-documentation-now-live/

aug1

 

Devs can go to hololens.com and purchase up to 5 Hololens. No application required!

aug2

 

September 2016

 

Stop using SMB1 by @NerdPyle – “Please. We’re begging you.”
https://blogs.technet.microsoft.com/filecab/2016/09/16/stop-using-smb1/

sep1

 

Reached 3,000 followers today!

sep2

 

From #MSIgnite
– 400M Windows 10 monthly active devices
– 70M Office 365 monthly active users
– 1B logins per day by Azure Active Directory

sep3

 

October 2016

 

ICYMI: Lepton image compression: saving 22% losslessly from images at 15MB/s via Dropbox
https://blogs.dropbox.com/tech/2016/07/lepton-image-compression-saving-22-losslessly-from-images-at-15mbs/

oct1

 

Storage Spaces Direct with Persistent Memory: 8 DL380 Gen9, Mellanox CX-4 100Gbps, 16 8GiB NVDIMM-N, 4 NVMe.
https://blogs.technet.microsoft.com/filecab/2016/10/17/storage-spaces-direct-with-persistent-memory/

oct2

 

@JoseBarreto $8.55/chip for 20 GbE is hard to beat. 🙂
Imagine now if ODMs start putting @intel Thunderbolt on the motherboard!
https://twitter.com/CosmosDarwin/status/786970312931815424

 

November 2016

 

Futurism: Microsoft Releases Quantum Computing Simulator to the Public
https://futurism.com/microsoft-releases-quantum-computing-simulator-to-the-public-2/

nov1

 

Anti-virus optimization for Windows Containers. Avoiding redundant scanning of Windows Container files.
https://msdn.microsoft.com/en-us/windows/hardware/drivers/ifs/anti-virus-optimization-for-windows-containers

nov2

 

December 2016

 

Official Windows Blog: Symlinks in Windows 10!
https://blogs.windows.com/buildingapps/2016/12/02/symlinks-windows-10/

dec1

 

To show spaces and tabs in Visual Studio, press Ctrl-R then Ctrl-W.
Press the same sequence again to turn it off.

dec2

 

Loading CSV/text files with more than a million rows into Excel

$
0
0

1. The Problem

If you usually load a very large CSV (comma-separated values) file or text file into Excel, you might run into the dreaded “File not loaded completely” message:

01

As the message explains, the file you are trying to load is too large for Excel to handle. For me, it typically happens with large log files with more than 1 million rows (technically more than 1,048,576 rows). The proposed workarounds involve breaking the file into smaller chunks or using another application to process the data (Access or Power BI can handle this kind of stuff). I ran into this in Excel so many times that I ended up posting a blog on how to break these files up. I called the post “Splitting logs with PowerShell“. That was still a pain and I could never create a nice summary of the entire dataset in a single PivotTable.

2. The Solution

Well, it turns out there is a way to handle this situation using only Excel, if what you’re trying to do in the end is use Pivot Tables to process the information. Excel has a way to import data from a text file without actually loading the file into a sheet (which still won’t take more than a million rows).

You basically load the data into what Excel calls a Data Model, keeping just a link to the original CSV file. After that, you can create a Pivot Table directly from the Data Model. With that method, you will be able to load millions of rows. So far I have used this with up to 8.5 million rows with no problem at all.

You might be thinking that this whole business of creating Data Models is hard, but it’s surprisingly simple.

3. The Steps

Let’s go over the process for loading the CSV into the Data Model. My screenshots use Excel 2016 and that’s the only one I actually tested myself. I did hear that this functionality is also available in Excel 2013 and Excel 2010, but that you will have to test that yourself. If it works for you with these older versions, please post a comment.

To start, you will want to open Excel with a blank spreadsheet and look at the “Data” tab. Here’s what it looks like for me:

02

The command we will use is the second on that tab, called “New Query”. In some recent pre-release versions of Excel that might show up as “Get Data”.

03

As shown above, you want to select “New Query”, then “From File”, then “From CSV”. After that, you will be prompted for the file in the usual dialog.

04

Once the file is opened, you will land in a preview of the file, as shown below.

05

There is an “Edit” option that allows you to do some filtering and editing before loading the data, but we will take the simplest route and use the “Load To…” option.
IMPORTANT: The simpler “Load” option will not work here. You have to click on the small down arrow next to load and select “Load To…”.

06

Now here is the key step in the whole process. In the “Load To” dialog, you must select “Add this data to the Data Model”, which will allow you to select the option “Only Create Connection” option. This means we’re not loading the data to an Excel sheet/table. This is crucial, since the sheet has the 1-million-row limit, but the Data Model doesn’t. After that, click “Load”.

07

And with that, you will start to load the whole large file. In my case, I had 2 million rows. This might take a while, so please be patient as Excel loads the data.

One thing you will notice is that your newly loaded data does not show anywhere in the spreadsheet itself. You have to remember that you data lives in the Data Model, which is separate from the regular data sheets. However, if you save the XLSX file, you will notice the file will be large, so you know that there’s something there.

So, how do you see the data? You have to use the option to Manage the Data Model. You see that as the first option in the Power Pivot tab. See below.

08

When you click on Manage, you will be taken to the Data Model as shown below:

09

In this special window, called “Power Pivot for Excel”, you will see the data in the Data Model. You will also be able to add calculated columns, filter the data, format the columns and perform all kinds of management activities. This is not a regular Excel data sheet, so you can’t simply create Excel formulas here. However, all you millions of rows will be here, as you can see below. That’s something you don’t usually see in Excel…

10

OK. But we loaded the millions of rows to create a PivotTable, right? So you probably already noticed that right there in the Home tab of the Power Pivot window, there is a PivotTable button. You just have to click on it.

11

The PivotTable option from the Data Model does not even ask for the data source. It rightly assumes that the Data Model is the source and all you have to do is provide the location where you want to create the PivotTable. You can use the empty Sheet1 that came with your empty spreadsheet.

12

At this point, if you used Pivot Tables before, you should be in familiar territory. The columns coming from the Data Model will be available to use as Columns, Rows, Values or Filters in the Pivot Table. Here’s a sample:

13

I hope you enjoyed the tour of the Data Model and the Excel Power Pivot. Next time you’re hit with the “File not loaded completely” message, you will have a new way to work around it.

Note that this is the same mechanism that Excel uses to load data from databases like SQL Server or other data sources like Active Directory. So you have a lot more to explore…

 

P.S.: In case you need a test CSV file with over 1 million rows to experiment with this, you might to read this other blog post about Using PowerShell to generate a large test CSV file with random data.

Using PowerShell to generate a large test CSV file with random data

$
0
0

I recently posted a new blog that shows how to load a very large CSV file into Excel, breaking the limit of 1 million rows in a single Excel sheet. If you haven’t seen it, you should check it out: Loading CSV/text files with more than a million rows into Excel.

One of the challenges for me while writing that blog post was finding sample data to demonstrate that Excel feature. I have a few files that are that big from work, but obviously I could not share those publicly. I also tried to find some sample data on public sites like http://data.gov but I could not find anything with more than 1 million rows.

The only option I had left was creating a sample file myself with some random data. I created a simple PowerShell script to create a file with a few columns filled with random data. You would think that it would be straightforward to do that, but my first version, which wrote one line to the file at a time, would take hours to generate a file with 2 million rows. Not good enough.

I optimized it by creating a thousand rows in memory and writing that batch to the file in one operation. Repeating that 2,000 times gave me a file with two million rows in under 20 minutes. It included 4 columns and about 36 characters per row. I ended up with a file size of 68.8 MB (72,144,471 bytes).

Note that I had to specify the encoding, since the default encoding in a regular PowerShell output would create double-byte characters and would make the resulting file twice as large.

Below is the PowerShell script, both as text and a picture with the color coding from the PowerShell ISE.

$Start = Get-Date
$BaseDate = (Get-Date "2016/12/31 12:59:59")
$FullYear = 366*24*60*60

$File = ”c:\users\jose\file.csv”
"Date,Customer,Type,Value" | Out-File -FilePath $File -Encoding utf8

1..2000 | % {

  Write-Progress -Activity “Generating File” -PercentComplete ($_/20)
  $Lines = ""
  1..1000 | % {
    $Dt = $BaseDate.AddSeconds(-(Get-Random $FullYear))
    $Ct = (Get-Random 100)
    if ((Get-Random 5) -lt 4) {$Ty="Sale"} else { $Ty="Return"}
    $Vl = (Get-Random 100000) / 100
    $Lines += [string]$Dt + "," + [string]$Ct + "," + $Ty + "," + [string]$Vl + [char]10 + [char]13
  }

  $Lines | Out-File -FilePath $File -Encoding utf8 -Append
}

$End = Get-Date
"Started at $Start and ended at $End"
$Diff = ($End-$Start).TotalSeconds
"Processing took $Diff seconds"

large-file-powershell


My top tweets from 2017

$
0
0

These are my top tweets from each month in 2017, according to https://analytics.twitter.com.

January 2017 

Top Tweet (earned 4,849 impressions)

Free Azure training via Microsoft on Open edX. These are massive open online courses (MOOCs). openedx.microsoft.com pic.twitter.com/hdzJyrlEG3

Top media Tweet (earned 2,831 impressions)

Ars Technica UK: Intel Core i7-7700K Kaby Lake review: Is the desktop CPU dead? arstechnica.co.uk/gadgets/2017/0… pic.twitter.com/xccsAxkH8R

February 2017

Top Tweet (earned 5,730 impressions)

Glassdoor: Data scientist, DevOps engineer, and data engineer are the best three jobs in America for 2017. techrepublic.com/article/report…

 Top media Tweet (earned 1,951 impressions)

There is a simple way to load a CSV file with over 1 million rows into Excel and create pivot tables from it. Writing a blog about it... pic.twitter.com/t0wstNlm8l

March 2017

Top Tweet (earned 2,654 impressions)

New blog by @ClausJor : To RDMA, or not to RDMA – that is the question blogs.technet.microsoft.com/filecab/2017/0… pic.twitter.com/aXp70BKIQw

Top media Tweet (earned 2,654 impressions)

Error Code 0x80070003 during Windows 10 Update? It might help to clean up \Windows\SoftwareDistribution\Download answers.microsoft.com/en-us/windows/… pic.twitter.com/LQkirdAy8S

April 2017

Top Tweet (earned 1,939 impressions)

Just received the agenda for our team meeting this morning: pic.twitter.com/glHWhRtuPW

Top media Tweet (earned 1,347 impressions)

Book: CEO Satya Nadella tells Microsoft's story, tracing his journey from childhood to leading digital era changes. news.microsoft.com/hitrefresh/ pic.twitter.com/UBHwY8sGsR

May 2017

Top Tweet (earned 2,128 impressions)

Build content will be streaming next week via Channel 9 channel9.msdn.com/Events/Build/2… pic.twitter.com/lFJUv0e8ak

Top media Tweet (earned 1,415 impressions)

Microsoft Security Response Center: Customer guidance for WannaCrypt attacks. blogs.technet.microsoft.com/msrc/2017/05/1… pic.twitter.com/y0NYkRepur

June 2017

Top Tweet (earned 1,497 impressions)

Do you have an idea on how to improve OneDrive? Share you feedback at onedrive.uservoice.com You can also vote on ideas already posted... pic.twitter.com/g2RICvbVHC

Top media Tweet
(earned 854 impressions)

High Efficiency Image File Format (HEIF) is an image file format by the MPEG (MPEG-H Part 12, ISO/IEC 23008-12) en.wikipedia.org/wiki/High_Effi… pic.twitter.com/XhnNMnQ5Ie

July 2017

Top Tweet (earned 1,572 impressions)

I typed on a ZX81 and a TRS80 yesterday... pic.twitter.com/6zOr7TWJlT

Top media Tweet (earned 1,179 impressions)

On-Demand Sessions from Microsoft Inspire coming soon! partner.microsoft.com/en-us/inspire/… pic.twitter.com/m9dCJj6okE

August 2017

Top Tweet (earned 2,248 impressions)

Azure Reference Architecture: Run a high availability SharePoint Server 2016 farm in Azure docs.microsoft.com/en-us/azure/ar…pic.twitter.com/jf2gdOVtLn

Top media Tweet (earned 1,725 impressions)

Understanding SSD endurance: DWPD, TBW, and the minimum recommended for Storage Spaces Direct by @CosmosDarwin blogs.technet.microsoft.com/filecab/2017/0… pic.twitter.com/OxNzwdUHo5

September 2017

Top Tweet (earned 5,125 impressions)

Ignite on-demand session videos starting to become available. Check them out at myignite.microsoft.com/videos pic.twitter.com/0A3Iqwauj1

Top media Tweet (earned 2,349 impressions)

Windows Server Blog: Now available: Windows Server 2016 Security Guide! blogs.technet.microsoft.com/windowsserver/… pic.twitter.com/eGyMuPF8Cm

October 2017

Top Tweet (earned 1,132 impressions)

Celebrating my 15th anniversary at Microsoft. Time flies when you're having fun... pic.twitter.com/kzJV1Fnon1

Top media Tweet (earned 992 impressions)

Windows 10's "Controlled Folder Access" Anti-Ransomware Feature Is Now Live bleepingcomputer.com/news/microsoft… pic.twitter.com/MkYPlT3Qro

November 2017

Top Tweet (earned 3,808 impressions)

Got my 15-year anniversary crystal today... pic.twitter.com/RSRFIhpTYE

Top media Tweet (earned 899 impressions)

A Quick Guide to OneDrive in Windows 10 via #MakeUseOf makeuseof.com/tag/quick-guid… pic.twitter.com/AF7d2dIl59

December 2017

Top Tweet (earned 1,252 impressions)

Azure Blog: Cloud storage now more affordable: Announcing general availability of Azure Archive Storage by Kumail Hussain azure.microsoft.com/en-us/blog/clo… pic.twitter.com/MY1rOz0bq0

Top media Tweet (earned 1,022 impressions)

You can sign into your OneDrive personal account using only the Microsoft Authenticator app on your phone, no password required. docs.microsoft.com/en-us/azure/mu… Tip: Get started by adding the Microsoft Account from the mobile app... pic.twitter.com/8icjQYmn4P

Path to the Server (An Ode to SMB Multichannel)

$
0
0

Read while listening to https://www.youtube.com/watch?v=iXQUu5Dti4g 

 

Path to the Server
On Ode to SMB Multichannel
by Jose Barreto

 

There’s a client somewhere looking for file shares
And it’s finding a path to the server
When it gets there it knows it can read, write and close
With a word it can get what it came for

Ooh, ooh, and it’s finding a path to the server

DNS is involved, but it needs to resolve
‘Cause you know sometimes names have two IPs.
In a dim server room, there is an admin who says:
Sometimes not all our addresses are given.

Ooh, it makes me wonder,
Ooh, it makes me wonder.

There’s a feeling, a twitch, when I look at the switch,
And my clients are crying for bandwidth.
In my thoughts I have seen
packets route out and in,
And the voices of those who stand waiting.

Ooh, it makes me wonder,
Ooh, really makes me wonder.

And it’s whispered to me if on SMB 3
Then the prot’col will lead us to reason.
And a new day will dawn for those file servers
And the clients will echo with laughter.

If you see a few more connections,
Don’t be alarmed now,
It’s just some multichannel action.
Yes, there are two paths you can go by but if one’s gone
There’s still time to change the queue you’re on.

And it makes me wonder.
Ooooooh…

You server is humming, speed is twofold,
In case you don’t know:
You are now balancing your net load.

Dear client, you’re now multipathing,
And just one more thing:
You will recover when your network fails.

Now we can read and write much more,
Our bandwidth higher than before,
There goes the server we all know.
Who perform betters and wants to show
How everything’s still just a share
And if you look it really hard
You’ll see pieces that we shard.
When there are multiple of all you got,
You’ll see a fail but you won’t stop.

And it’s finding the path to… the server…

Links about OneDrive Ransomware Detection and OneDrive Files Restore

$
0
0

Announcements

Office Blogs: Defend yourself from cybercrime with new Office 365 capabilities
By Kirk Koenigsbauer, Corporate Vice President for Office, Microsoft
https://blogs.office.com/en-us/2018/04/05/defend-yourself-from-cybercrime-with-new-office-365-capabilities/

OneDrive UserVoice: Provide Ransomware detection and recovery
By Douglas Pearce, Group Program Manager, Microsoft
https://onedrive.uservoice.com/forums/262982-onedrive/suggestions/12289380-provide-ransomware-detection-and-recovery

New support articles

Ransomware detection and recovering your files
https://support.office.com/en-us/article/ransomware-detection-and-recovering-your-files-0d90ec50-6bfd-40f4-acc7-b8c12c73637f

Restore your OneDrive files (all restore options)
https://support.office.com/en-us/article/restore-your-onedrive-files-48cc6a72-1aca-412c-a670-e6f5b563c1c6

Restore your OneDrive (Files Restore)
https://support.office.com/en-us/article/restore-your-onedrive-fa231298-759d-41cf-bcd0-25ac53eb8a15

News sites

The Verge: Microsoft adds ransomware protection and file restore to OneDrive cloud storage
Outlook.com also gets encrypted email support
By Tom Warren
https://www.theverge.com/2018/4/5/17201660/microsoft-onedrive-files-restore-feature-ransomware-protection

ZDNet: Microsoft to add ransomware protection tools, advanced Outlook.com encryption for consumers
Microsoft is bringing more of the OneDrive and Outlook security protection tools it offers its Office 365 business customers to consumers.
By Mary Jo Foley
https://www.zdnet.com/article/microsoft-to-add-ransomware-protection-tools-advanced-outlook-com-encryption-for-consumers/

Thurrott: OneDrive, Outlook, Other Office Products Get New Security Features
By Mehedi Hassan
https://www.thurrott.com/cloud/office-365/155848/onedrive-outlook-other-office-products-get-new-security-features

Tech Meme: Microsoft brings Files Restore to all OneDrive customers, letting users restore their entire OneDrive to a point in last 30 days, and adds ransomware detection  —  Microsoft is bringing more of the OneDrive and Outlook security protection tools it offers its Office 365 business customers to consumers.
https://www.techmeme.com/180405/p7#a180405p7

Engadget: Microsoft adds file protection and email encryption to Office 365
They're part of a new set of tools to guard users against cybercrime.
By David Lumb
https://www.engadget.com/2018/04/05/microsoft-office-365-add-cybersecurity-tools/

Windows Central: OneDrive Files Restore, ransomware detection, and more rolling out to Office 365
Several new security features are coming to OneDrive, Outlook, and more for Office 365 users.
By Dan Thorp-Lancaster
https://www.windowscentral.com/onedrive-files-restore-ransomware-detection-rolling-out-office-365

MS Power User: Microsoft brings OneDrive File Restore, ransomware detection and many new features to Office 365 users
By Pradeep Viswanathan

https://mspoweruser.com/microsoft-brings-onedrive-file-restore-ransomware-detection-and-many-new-features-to-office-365-users/

Digital Trends: Microsoft’s OneDrive now has your back in a ransomware attack
By Mark Coppock

https://www.digitaltrends.com/computing/microsoft-rolls-out-onedrive-files-restore-to-all-office-365-users/

On MSFT : OneDrive is getting new File Restore feature, ransomware protections with Office 365
By Laurent Giret
https://www.onmsft.com/news/onedrive-is-getting-new-file-restore-feature-ransomware-protections-with-office-365

Open sourcing SuperDir, a file manager for CP/M written in the 1980s

$
0
0

Microsoft has open sourced the 1990s File Manager for Windows 3.0 this week. You can check it out at https://github.com/Microsoft/winfile/

So I went even further and open sourced my 1980s File Manager for the CP/M OS written in Turbo Pascal, which a called SuperDir: https://github.com/Jose-Barreto/SuperDir

Back then, the OS had only 6 resident commands: DIR, ERA, REN, TYPE, SAVE and USER. Everything else was done through utilities. You can read more about it at this blog post: The good old days of CP/M 2.2.

The SuperDir file manager has a total of 10 functions:

  • Select drive
  • Show file
  • Print file
  • Rename file
  • Delete file
  • Undelete file
  • Copy file
  • Mark file read-only/read-write
  • Delete selected files
  • Copy selected files.

Note that reading the directory was done by actually reading the 128-byte disk sectors at the beginning of the disk and figuring out the 32-byte data structure describing each file. Names and extensions were fixed at 8.3 characters at the time. Also, there were no graphics in this system, so this was all done with standard ASCII characters on a 24x80 screen.

I'm not particularly proud of the pre-allocated arrays for storing the data. My sort function was also pretty lame. But hey, I wrote this in the 1980 when I was only starting to learn programming...

I took the time to add some comments in English, since the original had variables, function names and messages all in Portuguese. Now all I need is Turbo Pascal 2.0 compiler...

OneDrive Files Restore – User Guide

$
0
0

This guide is intended to help you use the new OneDrive Files Restore feature.

1. What is Files Restore?

Files Restore allows OneDrive users to restore their files and folders to a previous point in time. It provides a simple way to restore your entire OneDrive after a catastrophic event like a virus/ransomware attack or a user/application error that causes lots of changes to their OneDrive.

Files Restore

Restore builds on existing OneDrive capabilities like the Recycle Bin (allows files to be undeleted) and Version History (allows an individual file to be restored to a previous version). Restore integrates with Ransomware Detection, a new OneDrive feature that sends notification when signs of ransomware are found in your files.

NOTE: This guide is focused on OneDrive for consumers (also known as Personal OneDrive). OneDrive for Business (ODB) does offer Files Restore, but ODB is not the focus of this guide.

2. Files Restore Requirements

To use OneDrive Files Restore, you must:

3. How to use Files Restore?

To use OneDrive Files Restore, follow these steps:

Step 1 - Go to the Restore page (2 options)

  • Navigate to it from the main page
    • Start at the main OneDrive page at https://onedrive.com
    • Click on the gear icon in the upper right, then select “Options”
    • On the Options menu on the left, select “Restore my OneDrive”

Step 2 - Select a point in time (3 options)

  • Use the drop-down to select one of the presets (yesterday, one week ago, three weeks ago)
  • Use the drop-down to select a point of interest, if available (for example, a specific date and time when ransomware was detected)
  • Select “Custom date and time” in the drop down, then select a specific activity in the list.

Step 3 - Restore

  • Start the Restore – Click on the restore button

  • Monitor the restore – Wait on the restore page until it’s completed

Step 4 - Verify

  • Check if the files were properly restored to their previous condition.
  • You may also want to go back to the restore page to check on activities performed by the restore.

4. Known Issues

Here are the known issues for OneDrive Files Restore:

  • When navigating a very long list of activities, the full list might take a while to show. The activities do show up after some time.
  • When using the slider below the chart to select a specific day, the activities list might take a while to show that specific day. The activities do show up after some time.
  • For folder operations, the activities list shows a file icon for instead of a folder icon.
  • In small screens, the bars in the activity histogram might overlap.
  • After you start the restore, the progress indicator might jump from "0% complete" directly to "100% complete",  if you don't have too many activities to restore.

5. Frequently Asked Questions

1) Is this feature available for OneDrive for Business?

Yes, we have the Files Restore feature for OneDrive for Business, but this guide is intended to cover only the OneDrive version for consumers. The ODB version is already in production and you can learn more at https://techcommunity.microsoft.com/t5/OneDrive-Blog/Announcing-New-OneDrive-for-Business-feature-Files-Restore/ba-p/147436

2) How far back can I restore?

You can restore to any point in time in the last 30 days.

3) Can I undo a restore?

Yes. Just restore to the point in time before you performed the restore. Files Restore will keep a list of recent restores in the drop-down list, so you can easily go back to that point.

4) Can I restore after I empty the recycle bin?

Files Restore uses the recycle bin to go back in time. If the recycle bin was emptied or if any files were permanently deleted from the recycle bin, then those files cannot be restored.

5) If I sign-up for a free Office 365 trial today, can I immediately do a restore?

Yes.

6) Is there a direct URL for the restore page?

Yes. You can go directly to http://onedrive.live.com/?v=restore

7) How long does a restore take?

It depends on the number of activities that need to be restored. For a few thousand activities, a restore should take less than 10 minutes. For hundreds of thousands of activities, it will take a few hours.

8) During the restore, can I quit the browser and come back later?

Yes. The restore will continue and you will see a message the next time you access the OneDrive web site.

9) Can I run a restore from the OneDrive sync client or from the OneDrive mobile app?

The restore operation is always performed from the OneDrive web site. The activities restored will show up in all OneDrive clients, including Sync and mobile.

10) Can I run a restore from a mobile browser?

Yes. The Files Restore interface is mobile-friendly.

11) Can I change my files during a restore?

No. You should not make any changes to OneDrive until the restore finishes.

12) Can I restore just a folder? Can I restore just specific files?

Restore is designed to always bring your entire OneDrive back to a point in time. You can use the Recycle Bin or Version History to recover only specific files.

13) Can I have more than one Restore going at once?

No. Each OneDrive user can only perform one restore at a time. If you go to the Restore page and there’s already a Restore in progress, you will see the status of the current Restore.

14) Can I cancel or abort a restore?

Once a restore starts, you must wait until it finishes. You can see the status of the current Restore by going to the Restore page. Once the restore is completed, you can use a second restore to undo a previous one.

15) Will Restore revert actions like sharing and permissions?

No. Restore will only revert basic file and folder activities like create, delete, rename, update, move and copy.

6. More information

You can find the official content about this feature in the Restore your OneDrive page.

You can also see a demo of Files Restore on YouTube.

Please feel free to ask questions in the comments section below.

PowerShell script to check my backup by comparing file hashes

$
0
0

This sample PowerShell script compares the files in two different paths by calculating and comparing hashes for each file. I use it to compare my backup to the source data, after the backup is complete.

 

$SourcePath = "D:\"
$BackupPath = "F:\Backup 2018-05-27\"

Write-Progress -Activity "Getting File List" -PercentComplete 0
$FileList = DIR $SourcePath -Recurse -File

$Total = $FileList.Count
$Count = 0
$BadCount = 0
$FileList | % {

  $File = $_.FullName
  $Backup = $File.Replace($SourcePath, $BackupPath)

  Try { 
    $Match = (Get-FileHash $File).Hash -eq (Get-FileHash $Backup).Hash 
  } 
  Catch { 
    $Match = $false 
  }

  If (-not $Match) {
    $BadCount++
    "Hash mismatch: $File, $Backup"
  }

  $Count++
  If ($Count % 1000 -eq 0) {
    Write-Progress -Activity "File $Count of $Total" -PercentComplete ($Count/$Total*100) 
  }
}
Write-Progress -Activity "Checking Files" -Completed
"There were $BadCount bad files out of the $Count files checked"
Viewing all 74 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>