Friday, March 15, 2019
Monday, June 19, 2017
The Office 365 Secure Score
Keeping track how secure your Office 365 tenant is can be a bit of a hassle. To make it easier for you, Microsoft created the Office 365 Secure Score.
In this 4-minute overview of Office 365 Secure Score, you will learn about a new tool that helps you to automatically assess the security posture of your Office 365 accounts, data, and devices. You'll discover the security features and best practices available to you to implement based on your overall security and productivity goals.
Wednesday, February 1, 2017
Code Snippet: Load the SharePoint Office PnP Module in PowerShell
How do you load the PowerShell OfficeP PnP module for SharePoint?
Addendum: I've added a try/catch block to the code. This way you can be sure the module is loaded.
# Loading Office Online PnP Module
try {
if((Get-Module "Microsoft.Online.SharePoint.PowerShell" -ErrorAction SilentlyContinue) -eq $null) {
Import-Module Microsoft.Online.SharePoint.PowerShell
Write-Host "PowerShell module Microsoft.Online.SharePoint.PowerShell initialized"
}
else {
Write-Host "PowerShell module Microsoft.Online.SharePoint.PowerShell loaded"
}
}
catch {
throw "PowerShell module Microsoft.Online.SharePoint.PowerShell initialization failed"
exit 3
}
Tuesday, January 17, 2017
Connect to Office365 via Office PnP behind a proxy
How do you connect to your SharePoint Office365 tenant with the PowerShell if you are locked behind a proxy? This hint will probably work for all kind of PowerShell scripts, not only for Office PnP. I tried this with the Microsoft SharePoint Online extensions as well and it worked.
So my problem was, the company I was working for, had a proxy which could not be bypassed. The proxy settings have been set by a GPO and the network settings where fine so far. However the proxy used user authentication to access the internet. Now if I want to use the SharePoint Online tools, I must authenticate my PowerShell session at the proxy so the tools can access the internet too.
The trick to get your PowerShell connected is quite simple. You only need to enter the following line:
[System.Net.WebRequest]::DefaultWebProxy.Credentials = [System.Net.CredentialCache]::DefaultCredentials
Now you should be able to connect to Office365 SharePoint without problems. If you don't want to enter this line every time you open a new PowerShell, you could add it to your PowerShell profile.
ise $PROFILE
then add this to the profile file:
#Set user default credentials for any webrequest "Setting the users default credentials for WebRequests..." | Write-Host -ForegroundColor White [System.Net.WebRequest]::DefaultWebProxy.Credentials = [System.Net.CredentialCache]::DefaultCredentials
Monday, January 2, 2017
How to remove an unsuccessful AutoSPInstaller job
What do you need to uninstall from your server if the installation with AutoSPInstaller wasn’t successful?
Installing a SharePoint Server with the AutoSPInstaller job has become the gold standard for administrators. It’s much easier for large farms and offers a high degree of quality. However, using AutoSPInstaller can be a bit of a hassle. Until you get the xml configuration right, you normally need a few approaches. You can start the installation again, but you need to remove a few things first before it will re-run successfully.
Languages
If you are installing language files with your SharePoint Farm, remove these packages first. Open the Windows Control Panel, go to Programs -> Uninstall a program. Search for any SharePoint Language Package that has been installed and remove them all.
SharePoint Server
Leave the Control Panel open. Search for the SharePoint Server binary installation package and remove that file as well.
Prerequisites
These files must not be removed. They can stay on the server.
Internet Information Server
Open the IIS Management and look for any Web Application that was created during the AutoSPInstaller setup. Remove all of them and the Application Pools as well. Because AutoSPInstaller will create all of them again, I normally delete all Application Pools and Web Applications from IIS. This way I’ll have a clean system after setup. The Web Applications create directories in the VirtualDirectories folder of the IIS working directory. You normally find it here: C:\inetpub\wwwroot\wss Remove the folders from the Web Applications you have deleted from here as well.
Log files
Remove the log files from the ULS logging directory or do a clean up after you sucsessfully installed SharePoint.
Search Index
If the SharePoint Search has been created already, go to the directory where the search index is stored. Delete all GUID directories you find there.
SQL Server
Open the SQL Management Studio and connect with the SQL instance you are using to host the SharePoint databases. Delete any database that has been created by the AutoSPInstaller script. At the prompt to delete the database, you should select to close any connection to the database.
Finally
Now reboot your server. After login back into the server you can restart the installation with AutoSPInstaller. Any traces of previous installations will be gone then.
Thursday, October 29, 2015
Latest release of the SPBestWarmUp Script available
SPBestWarmUp is a PowerShell script that will load all of your SharePoint web sites. By doing so it helps to populate the IIS and the asp.net caches. This will speed up accessing your server and give your users a better overall experience.
Change log:
- Removed the Internet Explorer to fetch webpages and switched instead to the Invoke-WebRequest Cmdlet. IE will be deprecated in the future anyway.
- Collecting all relevant Urls prior fetching them from the server.
- Temporarily removed the ability to use own Urls. Will be added in the future as a parameter and/or as a file. However, if you look at the code, you’ll find it isn’t hard to write your own little patch if you need to.
Feedback is welcome. If you find any issue, please use the issues panel on the Codeplex project site.
Tuesday, August 18, 2015
Kerberos and SharePoint
![]() |
| Inferno, Canto VI, 12-35, Cerberus – From William Blake https://commons.wikimedia.org/wiki/File:Cerberus-Blake.jpeg |
Monday, May 11, 2015
Securing SharePoint 2013 connections via TLS - Part 2
![]() |
| Picture by Ondrej Supitar / unsplash.com |
In part 1 I showed you how to secure a Host Named Site Collection with TLS. But a user can still open the site collection without encryption. To force a secure connection we’ll have to create an automated redirect from http to https.
Leave the unsecure binding
You might think it’s a good idea to remove the http binding from the web application in IIS. But this would break your configuration, so don’t do that. Instead the binding is necessary for IIS to know which web application handles the request. From here the URL Rewrite module we are about to configure will take over.
First things first
To create a redirect we need an IIS extention called URL Rewrite which isn’t part of the regular IIS installation and cannot be found in the Windows installation either. Instead you must open a browser and download it from the official IIS support site http://www.iis.net/downloads/microsoft/url-rewrite
Friday, May 8, 2015
Securing SharePoint 2013 connections via TLS - Part 1
![]() |
| Picture by Ondrej Supitar / unsplash.com |
Using SSL/TLS to secure your webservers has always been a good idea, not only since three letter agencies are eavesdropping on everybody’s Internet communication. Preventing hacking and information lost is also on the IT-Professionals to-do list for a very long time.
Which certificate do we use
There are a few ways to get a new certificate for the Internet Information Server, but all in all in breaks down to the simple question: Do I need a trusted certificate or not.
If you plan to publish your site to the web I’d suggest you get yourself a trusted certificate from a certificate authority. There are a lot of different certification companies out there and all of them are happy to take your money.
If you plan to stay in a local network, you could consider using your own Public Key Infrastructure (PKI). But this however might be shooting a little too high. Especially if you only have a few servers to secure and no other plans to use the PKI.
Wednesday, February 18, 2015
SharePoint Tools: A new CAML Query Designer
Have a look at his blog:
http://praveenbattula.blogspot.de/2015/02/download-caml-query-designer.html
The future of Forms for SharePoint 2016 and Office 365
Well these plans have changed. As it seems Microsoft will not be able to provide FoSL on time for the next SharePoint release. Instead they announced that SharePoint 2016 will indeed have full support for InfoPath Forms for Office 365 and On Premises installations. However, a new version of InfoPath will not be part of the next Office.
Read the full story at:
http://blogs.office.com/2014/01/31/update-on-infopath-and-sharepoint-forms/
Wednesday, January 21, 2015
Code Snippet: Iterating thru all websites
How to iterate thru all SiteCollections and containing the Websites. This script also shows a progressbar on screen:
$sites = Get-SPSite -Limit All
$siteIter = 0
foreach($site in $sites) {
Write-Progress -PercentComplete (($siteIter / $sites.Count) * 100) -Activity "Iteration Sites" -Status $site.HostName
$webIter = 0
# Do something here
foreach($web in $site.AllWebs) {
Write-Progress -PercentComplete (($webIter / $site.AllWebs.Count) * 100) -Activity "Iteration Webs" -Status $web.Title -Id 2
Write-Host $web.Title
$webIter++
# Do something here
}
$siteIter++
}
Code Snippet: Load the SharePoint PowerShell Module
How do you load the PowerShell module for SharePoint?
Addendum: I've added a try/catch block to the code. This way you can be sure the module is loaded.
# Loading SharePoint Module
try {
if ((Get-PSSnapin "microsoft.SharePoint.Powershell" -ea silentlycontinue) -eq $null)
{
Add-PSSNapin Microsoft.SharePoint.Powershell
}
}
catch {
throw "Microsoft SharePoint PowerShell AddIn initialization failed"
exit 3
}
Thursday, November 20, 2014
Remove the performance breaks when using VMWare 5.0 and Windows Cluster services
There are probably a lot of SharePoint Farms that use a Microsoft SQL cluster. Even now with new possibilities like Always-On for SQL 2012. But not only if you use SharePoint might this be of interest for you.
About a year ago, a customer of mine had some very bad performance with his SQL Server. The SQL was version 2008 R2 using the Windows Cluster Service hosted on a VMWare ESX 5.0 private cloud. Nothing unusual and of course the first thoughts were pointing to the VMWare servers. But let’s take a look at the performance test we performed on the cluster.
Wednesday, November 19, 2014
Log Parser Studio 2.2
Log Parser Studio is a Windows Tool that uses LogParser and gives you a GUI to work with. This way it's easier to create adhoc reports of your logfiles. You can export the query as a script and then automate your tasks.
http://gallery.technet.microsoft.com/office/Log-Parser-Studio-cd458765
LogParser
http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=24659
Getting Started with the Log Parser Studio
http://blogs.technet.com/b/karywa/archive/2013/04/21/getting-started-with-log-parser-studio.aspx
Tuesday, October 14, 2014
Fire up those caches
![]() |
| Picture by Caroline Gutman |
Thursday, September 25, 2014
Opening Word file from SharePoint 2010 causes Office to crash
Thursday, July 31, 2014
Creating a bookshelf with the Content Query Webpart in SharePoint
Preparation
Before we can start, we’ll need to step back for a moment and think about the data structure we’ll need in order to support the view we are creating here. There are a few questions you must ask yourself:
- Where and in which document library will you store you eBooks?
- Will you mix different content types in that document library or will you create a new library for every document type?
In my case, I have more documents other than just eBooks. I’ve decided to keep all documents in a single document library and to identify the documents by their content type. Therefore, one of the first steps will be to create the library, the columns and the content type.
Thursday, July 24, 2014
SharePoint 2015 is peeking thru
![]() |
| Wave 16 can already be selected in Office365 |
It seems like Microsoft is already testing Office Wave 16 in the field or at least preparing for it. It is possible to select the Option for SharePoint 2015, but you will get an error that uploading has been disabled by the administrator.
Thursday, July 17, 2014
How to identify which w3wp.exe process belongs to which Application Pool in IIS
- Open the Windows Task Manager by right clicking on the Taskbar and selecting Start Task Manager
- In the Menu, open View / Select Columns…
- Search the list for Command Line and enable the check box
- Look for the w3wp.exe processes and expand the column for the command line
As you can see, the process is started with the name of the Application Pool in the IIS management console
Featured Post
How are Microsoft Search quota consumed?
With Office 365 Search, Microsoft has created a central entry point for the modern workplace. In one convenient spot, users can access all ...







