Office 365: How to add support to # and % characters in SPO and ODFB!

By default, it’s not possible to upload files to SharePoint Online (SPO) and OneDrive for Business (ODFB) that contains # and % characters on their names:

image

Fortunately, by means of PowerShell we can add support to those characters by running the following PowerShell Script (Note: Bear in mind that you will need to have installed latest version of the SharePoint Online Management Shell available in the following link  https://www.microsoft.com/en-us/download/details.aspx?id=35588 )

$sUserName="jcgonzalez@nuberosnet.onmicrosoft.com"
$sMessage="Type your Office 365 Credentials"
$O365Credentials = Get-Credential -UserName $sUserName -Message $sMessage
$SPOAdminUrl="https://nuberosnet-admin.sharepoint.com"
Connect-SPOService -Credential $O365Credentials -Url $SPOAdminUrl

$O365SPOTenant=Get-SPOTenant
$O365SPOTenant.SpecialCharactersStateInFileFolderNames 

Set-SPOTenant -SpecialCharactersStateInFileFolderNames Allowed

If you run the Script, wait some time and try to upload again files using # and % characters, you will successfully upload those files by using SPO and ODFB UI.

image

Office 365: Como añadir el soporte de los caracteres # y % en SPO y ODFB (I)!

Por defecto, no es posible cargar archivos que utilicen los caracteres  # y % en SharePoint Online (SPO) y OneDrive for Business (ODFB):

image

Afortunadamente, a través de PowerShell podemos añadir soporte a estos caracteres ejecutando el siguiente Script que os funcionará de forma correcta siempre y cuando tengáis instalada al menos la siguiente versión del SharePoint Online Management Shell: https://www.microsoft.com/en-us/download/details.aspx?id=35588 

$sUserName="jcgonzalez@nuberosnet.onmicrosoft.com"
$sMessage="Type your Office 365 Credentials"
$O365Credentials = Get-Credential -UserName $sUserName -Message $sMessage
$SPOAdminUrl="https://nuberosnet-admin.sharepoint.com"
Connect-SPOService -Credential $O365Credentials -Url $SPOAdminUrl

$O365SPOTenant=Get-SPOTenant
$O365SPOTenant.SpecialCharactersStateInFileFolderNames 

Set-SPOTenant -SpecialCharactersStateInFileFolderNames Allowed

Si ejecutáis este script y probáis de nuevo (tras esperar un tiempo prudencial) a cargar un archivo con caracteres # y %, veréis que ahora se carga sin problema en la interfaz de usuario.

image