9/28/16

OneDrive for Business

What is OneDrive for Business?

Let’s start with what OneDrive for Business (ODFB) is not, ODFB is not Microsoft’s service for hosting files in the cloud (OneDrive – previously SkyDrive which is intended for personal storage) that allows users to sync files and later access them from a web browser or mobile device. OneDrive is a completely separate product and has nothing to do with ODFB.
 

Microsoft OneDrive for Business variations

On Premises SharePoint – OneDrive for Business on premises


  • OneDrive for Business is a brand, not a product and it consists of three specific things
  1. SharePoint My Site – a site collection that is created by default for every user
  2. My Documents Library in SharePoint My Site - A document library that every user has and OWNS (key point), in addition it allows users to sync any other document library the user has access to
  3. Synchronization Tool for synchronizing between desktop and Document Library. The OneDrive for Business Windows Sync client installs either with Office 2013 Standard or with Office 2013 Professional Plus. Or you can download the stand-alone OneDrive for Business Windows Sync client
  • ODFB replaces previous Microsoft products Groove (SharePoint 2007) and SharePoint Workspace (Sharepoint 2010)

Prerequisites - To support OneDrive for Business document libraries in SharePoint Server 2013, you must have:

  • Configured the User Profile Service application
  • Configured My Sites
  • For Office 2013 to display the user's My Site as a default save or open location, you must configure SharePoint Server 2013 to use Exchange Autodiscover
  • To support system generated email notifications from SharePoint Server 2013 when a user shares a document with another user, make sure outgoing email is configured for your SharePoint Server 2013 farm

Library quotas

By default, the quota for each user's My Site in SharePoint Server 2013 is 100 MB. If you plan to use the OneDrive for Business document library for users to store their files, you should increase this default quota limit. If your organization uses SharePoint Online, a user's My Site quota is set to 25 GB and is configurable to 50 GB or 100 GB per user.

Library customization

Although the OneDrive for Business document library supports many of the features of a standard document library, a user shouldn't customize the OneDrive for Business document library because it might affect synchronization.
For example, if a user modifies the document library to require that metadata be filled in, the files are synchronized with SharePoint Server 2013, however, the document remains checked out. To check-in the document, the user has to fill in the required metadata either through SharePoint Server 2013 using the browser, or by opening the file with the Office 2013 client.
In addition, keep permission levels at the default settings of Can edit and Can view.
 

Office 365 – SharePoint and OneDrive for Business in the Cloud

  • ODFB provides 1 Terabyte of storage for every user
  • External sharing works out of the box – share with users outside of the SharePoint environment, they’ll get an email and get access to that single document
  • Advantage – users can edit Microsoft Office documents directly from the browser without having Microsoft Office installed on the client
  • Multiple plans available with different storage, encryption and data loss features

Stand alone OneDrive – give users the My Site, the My Site My Documents and the ability to sync

  • Multiple plans available with different storage, encryption and data loss features

Limitations

  • ODFB My Documents library in users My Site has an item limit of 20,000 items that can be synced and downloaded locally for offline usage
  • Additional document libraries within SharePoint can be synced as well but have a limitation of 5,000 items
  • Sync is by document library and not by files or folders
  • 2GB file size limit
  • Character limitations in files and folder names
  • Not available on a Mac – this may have changed
  • Files don’t have a URL directly to them
  • Number of items that can be sync’d

Features

  • The old concept of My Site in SharePoint is going away and being replaced with OneDrive for Business
  • When a user clicks the OneDrive link in the SharePoint 2013 navigation, the user is redirected to what used to be called My Site, now ODFB
  • When a user installs Microsoft Office 2013 it installs a client tool called OneDrive for Business which handles the synchronizations of files between SharePoint and the client desktop
  • There is a Powershell script available to create the ODFB sites for all users programmatically because they are not created by default. By default, when a user first logs in to SharePoint the My Site is created
  • Mapping a drive to OneDrive for Business from the client, make sure the desktop experience feature is installed on the SharePoint server to allow this
 

Hybrid OneDrive for Business - Starting with SharePoint 2013 SP1 you can connect on-premises SharePoint 2013 servers to the cloud and turn on OneDrive for Business

clip_image001
Figure 1


  • In SharePoint Server, you can redirect users to OneDrive for Business stand alone or Office 365 (see figure 2) when they choose OneDrive in the navigation bar (SharePoint Server 2010 and SharePoint Server 2013) or in the app launcher (SharePoint Server 2016). This is known as hybrid OneDrive for Business.
  • If you want to redirect your users to OneDrive for Business in Office 365, you need an Office 365 tenant where your users are licensed and at least Service Pack 1 installed on your farm.
  • To avoid user confusion, keep the following in mind when you turn on hybrid OneDrive for Business:
  1. When you turn on this feature, your users will be directed to OneDrive for Business in Office 365 when they click OneDrive in SharePoint Server. Be sure to plan to migrate your users' content from their old SharePoint Server OneDrive for Business to the new one in Office 365.
  2. Because there's no direct link between OneDrive for Business in SharePoint Server and OneDrive for Business in Office 365, users' Shared with me lists in Office 365 won't display documents that have been shared with them from on-premises SharePoint Server.For example, if a user modifies the document library to require that metadata be filled in, the files are synchronized with SharePoint Server 2013, however, the document remains checked out. To check-in the document, the user has to fill in the required metadata either through SharePoint Server 2013 using the browser, or by opening the file with the Office 2013 client.
  3. Keep permission levels at the default settings of Can edit and Can view
 

image
Figure 2

Windows Explorer view on client desktop


Figure 3

Coming Soon

New sync capabilities include:

  • Ability to sync SharePoint Online document libraries and OneDrive folders shared with you (preview available today)
  • An “activity center” has been added to the OneDrive sync client to allow you to view synchronization and file activity at a glance (preview available today)

New browser capabilities include:

  • Rich thumbnails and previews for over 20 new file types (rolling out before the end of 2016)
  • Ability to access and edit all your files in OneDrive and SharePoint Online from the OneDrive browser client (rolling out before the end of 2016)
  • Capability to download multiple files as a .zip file (rolling out before the end of 2016)

New mobile capabilities include:

  • Notifications to your iOS or Android device when someone shares a OneDrive file with you (available today)
  • Access to SharePoint Online files in the OneDrive app on Android (available today)
  • Multi-page scan enhancements in the OneDrive app on Android (available today)
  • Ability to see over time how many people have discovered and viewed your files in OneDrive for iOS (available today)

New IT capabilities include:

  • Enhancements to integration with Office 2016 (available in First Release)
  • Simple, flexible OneDrive user management in Office 365 (available in First Release)
  • Dedicated OneDrive administration console in Office 365 (rolling out before the end of 2016)




4/18/13

Entity Framework - Introduction (Part 2 of 3)

Entity Framework - Introduction (Part 2 of 3)

(Part 1)(Part 3)



Part 2 Model First

In part one we looked at creating a database fist project and generated a model from our pre-existing database, in part 2 we are going to build a model first and then create the database from the model. To begin this part of the tutorial we'll create a new class library project.

Create a new Visual Studio Class Library Project


Once the new project has been created, right click on the project name and select Add | New Item


Under C# Select Data | ADO.NET Entity Data Model


Select Empty Model and Finish


Building the Model

Next we'll add some entity objects on the design surface and start building our model. Entity objects can be created either by dragging and dropping items from the toolbox to the design surface or right clicking on the design surface and selecting Add | New Item.

Add From Toolbox


Add from Designer Surface


First I'll add a new Entity and call it Movie, notice that by default a new ID property is created with an int32 type and set to an identity.


Next, I'll add two more scalar properties to the Movie entity, title and date. 
Note: The default for a new scalar property is string and non-nullable. Note: the max length attribute of our scalar property will be used when the database is created for the max length of the column.


Change the type of the date property to DateTime


The next Entity will be called Genre, create one scalar property in the Genre called Category with a default type of string. The last Entity I'll create will be called Actor, I'll create one new scalar property called Name with a default type of string.

The Entity diagram should now look something like this


Create the Entity Relationships (Associations)

Right click on Movie and Select Add | Association


Ensure that Movie and Actor are selected in the dropdown boxes, Change the Multiplicity to Many to Many, this is because there can be many actors in a movie and actors can be in many movies. The new association will create 2 new navigation properties, Actors and Movies.


The Design Diagram has been updated showing the new association, many movies to many actors



Next create another association for Movie to Genre, this association will be many to one because movie can only have 1 genre but genre can be associated with many movies.




Generate the Database from the Model

Next we're going to create our SQL database from our model design. 
Note: The database that we are going to create needs to already exist on the SQL Server, just a shell of a database that we can point to. The command to Generate the database from the model actually just generates the schema in the existing database.

Create a new database on the SQL server called MovieLibrary

Before we generate the database from the model, let's take a look at the metadata that describes the database and metadata that describes the mapping between the model and the database.

To view the metadata, right click on the ModelFirst.edmx file in the Visual Studio Solution Explorer and select Open With | XML




There are two highlighted sections in the XML file, the first is the storage schema that describes the database and the second is the mapping layer, these sections are currently empty because we have not generated the database from the model yet.


Next go back to the Designer view of the model and right click on the design surface and select Generate Database From Model.

Create a new connection to the SQL server, select the new MovieLibrary database.


Select Next

'

Select Finish and the SQL file will be created that can be run against the SQL Server.



Right click anywhere in the file and select Execute. You'll be prompted from the SQL Server to enter credentials. After credentials have been entered you should get a message in the T-SQL window saying the Command Completed Successfully.

Take a look inside the database and see if the tables created in the model are now in the database.



This completes part 2 of the Entity Framework introduction, in part 3 I will discuss using the newly created models to leverage the Entity Framework.

(Part 1)(Part 3)

4/17/13

Microsoft Entity Framework Intro (Part 1 of 3)


Entity Framework - Introduction (Part 1 of 3)

(Part 2, Part 3)


The following tutorial will explain some basic concepts using the Microsoft Entity Framework, I'll attempt to explain this with a few examples to help demonstrate some of the capabilities.

Recomendations for this tutorial, other versions of these products may work however these are the versions used in this tutorial.

1. Microsoft Visual Studio 2012
2. SQL Server 2008R2
3. AdventureWorks database (2008R2 version) downloaded and installed from http://msftdbprodsamples.codeplex.com/downloads/get/478216

Introduction

The Microsoft Entity Framework (EF) is an object-relational mapper that enables .NET developers to work with relational data using domain-specific objects. It eliminates the need for most of the data-access code that developers usually need to write. This creates, in effect, a "virtual object database" that can be used from within a project to access database objects using C# code instead of having to write a whole lot of SQL queries. In this post we'll add a sample database to our SQL server, create a new Entity Framework model from our existing sample database and try and get an understanding of the model.

Part 1 - Database First

Adding the AdventureWorks Database - If you do not have the demo database attached to your SQL Server you can download the database from the link above. Once downloaded attach the database to SQL Server.

Step 1 - Copy the database files into the correct file locations for your SQL Server. The .mdf file should be copied into the data folder where all the other SQL Databases exist and the .ldf file should be copied into the the Log folder where all the other Log files exist.

Step 2 -From the SQL Server Management Console right click on databases and select Attach.


Step 3 - Select Add and browse to the correct .mdf file located where you copied it on the SQL Server


Step 4 - Select the ellipsis next to the log file and ensure the log file path is correct



Step 5 - Ensure the AdventureWorks database is correctly attached to your SQL Server


Creating the Visual Studio Project - Next we'll create a Visual Studio Project to demonstrate some of the Entity Framework capabilities.

Note: If you are using a version of Visual Studio other than 2012, you may not have the Entit

In this example I'll create a new class library project, I'll be able to add or reference this project in any new solution that I create in order to leverage the Entity Framework.

Create a new class library and name it EFModel


Right click on the project name and select add, add a new ADO.NET Entity Data Model



Create an Entity Data Model From a database



Create a new connection to your database


rename the connection settings AWEntities


Select Tables and Views to be populated from the database into our new Entity Model and select Finish


We can now see a new Entity Framework model has been created called EFModel, this will be instantiated in our project when we want to leverage the Entity Framework.


The designer view of the Entity Model will be displayed, we can view all of the relationships or associations in the designer. Notice the relationship between Customer and SalesOrderHeader is a one to many relationship (depicted by the 1 on customer and the asterisks on SalesOrderHeader)



In our project an App.Config file has been created, within this file an Entity connection string can be found.


If we right click on the white space in the designer view of our Entity Model and select Mapping Details, then select one of the entities in the diagram, the database column to class property mapping can be viewed or modified.


The mapping details shows the relationships between the database columns and the model properties, these are also customize-able.


Conclusion

This wraps up part one of the introduction to the Entity Framework, we covered getting a sample database installed on our SQL Server 2008R2 Database Server, Creating a new Class Library project, adding an Entity Framework model created from our existing AdventureWorks database and briefly looking at our completed Model. In part two we'll cover creating a SQL database from an existing model.

(Part 2, Part 3)








10/25/12

SharePoint, Office 2013 RTM - MSDN

Microsoft has just added SharePoint 2013, Office 2013, Visio 2013, Project 2013 and Exchange 2013 to MSDN for subscribers to download.


8/23/12

Microsoft MSDN .img file



Microsoft seems to have switched file formats from .iso to .img for some of the software available on MSDN.

What is an .img file? At first I thought I had to use Nero to burn the image to a disk and then install, but I noticed that in Windows 8 you can natively mount .iso and .img formats.

Since I don't plan on installing these .img files on Windows 8 or Server 2012 yet, you can simply rename the file from .img to .iso and then use the file as you would normally use an .iso


8/22/12

Sharepoint 2013 Preview


Sharepoint 2013 is just around the corner, full of new features to take the platform to the next level




Here are some of the new features


  • Visual Experience
    • Metro Interface
    • To brand a SharePoint site, designers just create a site design as they typically would, by implementing HTML, CSS, and JavaScript. Designers can create these files by using their design tool of choice, whether that is Adobe Dreamweaver, Microsoft Expression Web, or some other HTML editor. You don't have to use SharePoint Designer or Visual Studio 2013 to brand a SharePoint site
  • App Store
    • Everything in Sharepoint 2013 is an App, lists, workflow, site pages, remote web apps, etc.
    • Make your apps available to everyone to try and buy through the public Store or only available to your employees through the corporate catalog
  • Social Networking
    • The introduction of Community Sites offers a forum experience to categorize discussions around subject areas, and connect users who have knowledge or seek knowledge about subject areas
    • My Sites for micro-blogging, allows likes, hash tags and news feed functionality following content, people and sites.
  • Integration
    • Organize all your projects and tasks to get visibility into upcoming deliverables across SharePoint, Outlook and Microsoft Project
    • Sync your content in SharePoint to your desktop with SkyDrive Pro
  • Development
    • Based on common web standards like HTML, CSS, and JavaScript. Furthermore, implementation relies on established protocols like the Open Data protocol (OData), and OAuth
    • Support for the newly developed web-based tool "Napa" Office 365 Development Tools for developing apps
    • Visual Studio 2012 now includes a new app project template in the Apps folder named Apps for SharePoint 2013
    •  In addition to the use of Representational State Transfer (REST) endpoints for web services, there is a broad new API for both server and client development. Remote event receivers and now supported in addition to client-side rendering
  • Cloud
    •  Improved and enhanced to support the new cloud-based architecture and app-driven development framework
    • Full support for development against the Windows Azure Workflow platform
  • Content
    • Many new features for videos and using videos on pages. A new video content type is added, and the video upload process is improved for content authors
    • Content authors can insert an iframe element into an HTML field on a page. This lets content authors embed dynamic content from other sites, such as videos or map directions
    •  Support for image renditions. Image renditions let you display different sized versions of an image on different pages
    • Cross-site publishing lets you store and maintain content in one or more authoring site collections, and display this content in one or more publishing site collections
    • Designate any library or list as a catalog. After the Cross-Site Collection Publishing feature is enabled for a site collection, you can designate any library or list within that site collection as a catalog so that content can be reused on publishing site collections
  • Localization
    • Built in integrated translation service that lets content authors select content for export for human translation or specify content for machine translation.



These are only a subset of all of the new and improved features and functionality in the Sharepoint 2013 Preview, for more information check out Microsoft's official Sharepoint 2013 sites at

http://technet.microsoft.com/en-us/library/cc303422(v=office.15)
http://msdn.microsoft.com/en-us/library/jj162979(v=office.15)


Download the preview at:
http://technet.microsoft.com/en-US/evalcenter/hh973397

8/15/12

Microsoft System Center Service Manager 2012 Gotchas


I have attempted to install SCSM 2012 unsuccessfully multiple times and learned a few things that I'll share that will hopefully save someone hours of time hunting down solutions for these issues.

The first issue I ran into was during the SCSM Data warehouse management server installation, during this install you will be asked for multiple database names, rather than selecting the default names, I chose to append '2012' to all the database names. The install will fail with 2012 in the database names, I tried this in three separate environments and it failed in all three.

The next issue was the SQL instance name, if you create a new instance besides the default MSSQL and include 'MSSQL' in the name of the new instance, the installation will fail. Tried this in a couple of different environments and always a failed installation.

The last issue is during an upgrade from SCSM 2010 to SCSM 2012, about three quarters of the way through the installation it will attempt to make changes to the SSRS server, if there is a web folder on the site with the name 'Data Sources' the installation will fail. This failure will be a catastrophic failure and require a disaster recovery scenario to rebuild/reinstall. The horrible thing about this issue is that if you have been creating reporting solutions using the SQL Business Intelligence Development Studio, when you publish your projects to the SSRS server I believe it will automatically create the Data Sources Folder. For the upgrade, rename this folder, run the upgrade and the change the name back after it succeeds.