Tag: FILE
-
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.…
-
Office 365/SharePoint Online – OneDrive File Migration
Currently I am in the process of migrating a file share to SharePoint online libraries. One of the pre-check that I need to run before synchronizing the files is to make sure that these files/folders don’t have illegal characters defined by SharePoint online requirement. The script below function Check-IllegalCharacters ($Path, [switch]$Fix, [switch]$Verbose) { Write-Host Checking…
-
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…
-
Mapping an image to use within SharePoint
Scenario: PWCSTeamSite module has an image file called “TeamSite.gif”, which I would like to use as: http://pwcs.com.au/_layouts/15/images/PWCSTeamSite/TeamSite.gif so ensure the following settings: Physical file location on server: C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\IMAGES\PWCSTeamSite [ ] – {SharePointRoot} [ ] – Template File [ ] – Images\PWCSTeamSite
-
EDITING WSP FILES DIRECTLY / MANUALLY (Re-Packaging, makecab) – How To?
Exported site/web template could not be used to recreate the site: Problem Applying Web Template This web template requires that certain features be installed, activated and licensed. The following problems are blocking application of the template. How to Fix? EXTRACT THE WSP FILE Download a tool like 7-Zip. Right click the file Select 7-Zip >…