Category: SharePoint-2010
-
Search/Identify blocked file types in SharePoint
In SharePoint 2016 On-Prem, Microsoft has reduced the number of blocked file types from previous versions of SharePoint. It is totally different than the SharePoint 2010 / 2013. In SharePoint 2013, there are 105 default file types that are blocked by default but in SharePoint 2016, this number goes all the way down to 6.…
-
URL Encoded Characters
backspace %08 tab %09 linefeed %0A creturn %0D space %20 ! %21 ” %22 # %23 $ %24 % %25 & %26 ‘ %27 ( %28 ) %29 * %2A + %2B , %2C – %2D . %2E / %2F 0 %30 1 %31 2 %32 3 %33 4 %34 5 %35 6 %36 7…
-
The Bad News
The free version of SharePoint that was offered with SharePoint 2007, 2010 and 2013 is called “Foundation” is gone and will no longer be offered with SharePoint 2016
-
PowerShell Upload File to Style Library & Sub-Path Location
function UploadFile2StyleLibraryLocation($WebUrl, [String] $SourceFilePath, [String] $StyleLibrarySubPath) { # Open web $web = Get-SPWeb $WebUrl $file = Get-Item $SourceFilePath write-host "Started Uploading File…" $file.FullName # Open file $fileStream = ([System.IO.FileInfo] (Get-Item $file.FullName)).OpenRead() # Open Style Library $folder = $web.getfolder("Style Library") # Check whether the file is already exists? $File2Replace = $web.GetFile($folder.Url + $StyleLibrarySubPath + $file.Name) if($File2Replace.Exists…
-
Disable Mobile View on all SPWeb
Param([string]$WebUrl) if($WebUrl -eq ""){ write-host "Please input `$WebUrl` parameter value." -ForegroundColor Red; exit -1 } [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") > $null $WebApp = Get-SPWebApplication $WebUrl foreach($site in $WebApp.Sites){ foreach($web in $site.AllWebs){ $WUrl = $web.Url; Write-Host "Disabling mobile view on web – $WUrl…" -ForegroundColor Gray -NoNewline Disable-SPFeature -identity "d95c97f3-e528-4da2-ae9f-32b3535fbb59" -URL $WUrl -Force -Confirm:$false -ErrorAction SilentlyContinue write-host "done." -ForegroundColor Green…
-
Register Managed Accounts
$account = New-Object System.Management.Automation.PSCredential "READYLAB\sp2013_c2wts", ` (ConvertTo-SecureString "M0dewh1z" –AsPlainText –Force) $managedAccount = New-SPManagedAccount $account
-
Change/Rename Reusable SharePoint workflow template title
When saving a template of SharePoint designer workflow, it creates a pretty ugly title including the site it was created and all. I wanted to change this title to make it standard as our other feature naming conventions: For tools related to repackaging the wsp file, please see my earlier article Here. 1. Copied the…
-
Add/Update SP (SharePoint) Site Quota Template using PowerShell
Please see the reusable script: $ver = $host | select version if ($ver.Version.Major -gt 1) {$host.Runspace.ThreadOptions = "ReuseThread"} if ((Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue) -eq $null) { Add-PSSnapin "Microsoft.SharePoint.PowerShell" } function AddUpdate-SPQuotaTemplate{ <# .Synopsis This advanced function add/update Site Quota Template. .Description This function uses .NET code to instantiate an instance of an SPQuotaTemplate class. An…
-
Cannot get the full name or e-mail address of user
If you are using Claim authentication, make sure to pass the login user name in the format of “@"i:0#.w|readylab\sheriffm"” for calling the method – “SPUtility.GetFullNameandEmailfromLogin” Otherwise you will end up with an error – Cannot get the full name or e-mail address of user. string displayName = ""; string emailAddress = ""; try { SPUtility.GetFullNameandEmailfromLogin(web,…