No snap-ins have been registered for Windows PowerShell

Problem:
Scenario: Win 7 Prof 64-bit PowerShell 4.0, SQL Server 2014

Step 1: psdrive - no sqlserver drive
Step 2: I added the following two cmdlets in profile.ps1 in the ...\Documents\WindowsPowerShell folder:
      Add-PSSnapin SqlServerCmdletSnapin100
      Add-PSSnapin SqlServerProviderSnapin100

Then I got the error:
     No snap-ins have been registered for Windows PowerShell 

Solution:
In the profile.ps1 file, use the following cmdlet:
     import-module sqlps –DisableNameChecking