Here is a PowerShell script to add "Profile Sync" account in Active Directory to "Default Domain Context" and "Configuration Context"... The outcome is the same as you would add…
Today I'm preparing a migration of SharePoint Server 2016 to 2019. On Premisses, of course. Now I was ready to attach the old content databases. In doing so, I got an unexpected…
For some time now, when reinstalling SharePoint Server (2019 or Subscription Edition), I have noticed that after creating the ConfigDB and Central Administration content database,…
To push a large repository to GitHub is's one approach to do it step by step: Only some commits at a time. Here is how I do it using Powershell: The name of the remote respository…
Currently I investigate a problem. A SharePoint Server 2019 page showed me an Internal Server Error 500. SharePoint Server 2019 is installed on Windows Server 2022. The August…
On my Debian 11 VM, the 'exit' command in a PowerShell script does not work as expected. The script stops working, but the process does not exit either. Now I use this to exit…
I just found out that on my Debian 11 VM in PowerShell the key combination Ctrl+C does not work. The script is not terminated by this, unlike expected. I added the following code…
Today I could solve a wired problem. It belongs to User Profile "AD Import" on SharePoint Server 2019. The profile overview of a person stated two different information: At the…
Almost exactly four years ago I started developing the software kenaflow . The project started as a workflow engine for SharePoint. Meanwhile the software can do a lot more, e.g.…
It has been a problem for me to work with SQL backup and restore for SharePoint with Powershell... Issuing the commands is no problem. A simple SQL Server connection is required.…
On every SharePoint or IIS server I need the following script: Short Version, e.g. for Windows Task Scheduler powershell command “get childitem path c:\inetpub\logs\logfiles…
During configuration of a new SharePoint 2019 farm I got an error in PowerShell Cmdlet New SPConfigurationDatabase . The given key was not present in the directory. I found some…
It has been described lots of times before. It's just for the records... This code sets the used TLS version for secure HTTP connections to version 1.2…
A little bit outdated. I know. But customers not always have the latest server versions running. Today a customer asked me how to create a self signed SSL certificate with…
In Microsoft Edge the default behaviour of "new tab" is it to open a customizable page with Microsoft Bing and other content. The content can be disabled but there is no way to…
This is more "for the record" than it makes real sense. But why not? For a few years "PS2EXE" was represented on Technet and has over 90.000 downloads to date. That is super…
In the last couple of months I got several times the following error: The Managed Metadata Service Application was not accessible in the Central Administration. I checked all know…
One of my customers has a SharePoint 2013 farm with content migrated from SharePoint 2010. In the past on SharePoint 2010 they have had the Microsoft SQL Server 2008 R2 Reporting…
Today I had to figure out how to query a SharePoint 2013 REST service from another domain. It took a while to find the correct settings. ; ) There was no list on the internet so I…
Today I want to show you a small PowerShell snippet that I created for a webinar for AvePoint. It’s a webinar in German language about the DocAve module “Content Manager”. The…
In my last post I wrote about a supported approach to create a user profile sync connection in SharePoint 2010 using PowerShell and Internet Explorer automation. In the meanwhile…
Before we start… 1\. It’s not supported to create a User Profile Sync connection by script or code using the server object model. We will NOT do this here! 2\. The script in this…
This is just a short note on this topic. I could not find a script in the net. I’m not sure this is part of some SharePoint “config frameworks” like “AutoSPInstaller”. I do not…
http://blogs.technet.com/b/heyscriptingguy/archive/2013/03/30/weekend scripter run c code from within powershell.aspx Link to “C Script”: http://gallery.technet.microsoft.com/C…
On Codeplex user redpark asked for “Single Thread Apartment” mode (http://ps2exe.codeplex.com/discussions/435946)… Here it is… Please see v0.4 on CodePlex:…
Some time ago I’ve written a little tool called “PS2EXE” that creates .EXE files from PowerShell script files. As mentioned in earlier posts this is no conversation of PS to EXE!…
Last Thursday I wrote about “Exporting SharePoint 2013 Design Packages with PowerShell”. Today I’d like to show you the import function. This functions can be used to handle with…
Last night I search for “export import sharepoint 2013 design packages powershell”. No luck there. – So I created two functions for this purpose. It works nicely : ) The functions…
In preparation for a deployment project I wrote some PowerShell functions to write messages to the SharePoint ULS. You can download the PowerShell script here:…
About this topic there are several guides. I can’t say that I have to add anything new ; ) But… as always… this blog is a kind of notebook for me. So I post this small guide. 1.…
Today I got an error while creating a Search Service Application for SharePoint 2013: PS C:\\ $SearchSA = New SPEnterpriseSearchServiceApplication –Name “Enterprise Search Service…
In some small dev projects in the last months I was looking for a source control system. I liked to use Microsoft’s Team Foundation Services. But I was and I am not able to use…
In 02/2011 I created a PowerShell script to set / get / remove SQL Server aliases: https://blog.kenaro.com/2011/02/09/enumerate add update and remove sql server aliases by using…
This days I did some migration work. For experimental purpose I configures my old MOSS 2007 demo machine to use ASP.NET SQL FBA including MySites and profiles for the FBA users.…
As you know the SharePoint Farm Account must have privileges to logon locally for getting “User Profile Service Application” to work. Today I created a PowerShell script that adds…
It’s a nightmare to create users for FBA, isn’t it? – There are several tools out there, but some does not work as expected oder you need to install .NET 4 on a server just to run…
The last days I’ve created a PowerShell script that enables you to import a whole file system folder into a SharePoint document library using the SharePoint Content Migration API.…
Today I tried to configure a new SharePoint farm. I got this error: “The process does not passess the ‘SeSecurityPriviledge’ priviledge which is required for this operation.” –…
(Download link below!) If you set up a MS Learning Classroom with Hyper V and the images provided by MS at the MCT download page you need to deploy the VHD files (and the other VM…
SharePoint Server 2010 and Foundation too has a namespace “Microsoft.SharePoint.Utilities.Cab”. In this namespace there are all functions you need to create CAB=WSP files. I have…
(Original article: https://blog.kenaro.com/2011/06/21/ps2exe tool for converting powershell scripts to standalone exe files/) I have implemented some new switches for PS2EXE: \…
I got this error messages a thousand times: Solution 1: I added the root certification authority certificates and the intermediate certification authority certificates of all SSL…
There are several tools out there to minify JavaScript files. – You don’t know “minification”? Look here: http://en.wikipedia.org/wiki/Minification\ (programming)) Common tools…
For development and some related tasks I use PowerShell, of course. – I store the PowerShell scripts in my projects as part of them. They are part of the source code and they are…
Today I’ve had the error: Application Server Administration job failed for service instance Microsoft.Office.Server.Search.Administration.SearchServiceInstance (150CA1DD 02E3 47C0…
During a migration project from MOSS 2007 to SharePoint 2010 we got a strange error that took some hours to resolve. For an automated migration tasks I tried to create a…
A customer of mine has the problem that he wants to remove a Web Content Type but SharePoint says the content type is still in use. Therefore I created a tool for enumerating all…
Starting at 12th of September 2011 I'll be freelancer. – In August I had some vacation days to spend. – So I created a new project for me – and for you. I call it "Web based…
In my project RoboPowerCopy (http://robopowercopy.codeplex.com) I’ve implemented a basic set of classes and methods for use with files and directories with long paths. NTFS…
Today my second guest blog article on “Hey, Scripting Guy!” was published: http://blogs.technet.com/b/heyscriptingguy/archive/2011/08/21/clean up your powershell environment by…
I’ve created a new project that combines my two primary technical passions: SharePoint 2010 and PowerShell. The project “SharePoint PowerShell Timer Jobs” lets you create, modify…
In January 2011 I published a SharePoint Warm Up script based on PowerShell. Some days ago blog reader Tamas published an comment: https://blog.kenaro.com/2011/01/27/sharepoint…
The folks of Quest released PowerGUI 3.0 ! http://powergui.org It's a famous tool for PowerShell development. Useful for complex scripts like "RoboPowerCopy" : ) On live server…
Yesterday I changed the Access mode of a SharePoint Web Application to "Only SSL". On the Web Application are some browser enabled InfoPath forms. Some of them consume a…
There is a short review of my “RoboPowerCopy” tool on the PowerScripting blog: http://powerscripting.wordpress.com/2011/06/27/episode 151 jeremy kelly announces script explorer/…
In the last days I created the tool “PS2EXE”. It is able to “convert” PowerShell scripts to “standalone” EXE files. Project site here: http://ps2exe.codeplex.com – It’s ALPHA in…
UPDATE 2021 07 23: Because of the Codeplex shutdown I have archived the project here: https://github.com/ikarstein/robopowercopy Today I want to announce my latest development…
At first: This is a common problem. Using the "Organization Browser" Web Part on another page than on the MySite host web application results in an empty view. This means, the…
I’ve created a PowerShell script for adding, updating, enumerating und removing SQL Server aliases. – You can use the script to create/remove/enumerate both 32bit und 64bit…
Every SharePoint farm needs a warm up After giving the IIS 7.5 Application Warmup a chance… I had to do it in another way… I created a warmup script in PowerShell. Here it is……
I took me hours and hours to get to User Profile Service Application working. These are the steps I’ve done in some scenarios. Especial to migrate an SharePoint 2007 profile…
I’ve created a script for uploading user pictures to the SharePoint 2010 User Profile system. For me it worked very well. But: Use it at your own risk! Here is the script:
I needed to change some properties of user profiles of my SharePoint 2010 farm. Of cource I wanted to do this with PowerShell! Before you can execute the following script, be sure…
I created a simple tool extension for Visual Studio for extracting the full qualified name of an .NET assembly. Like this: http://msdn.microsoft.com/en us/library/ee539398.aspx…
There are some mysterios errors on my SharePoint farm. After reading tons of log files I found some hints to problems with the “Session State Service” of SharePoint 2010. I found…
“Is there a way to enumerate all SharePoint 2010 databases in PowerShell like the page /\ admin/DatabaseStatus.aspx" /\ admin/DatabaseStatus.aspx" http://<centra\ administration…
Sometimes you may need to create instances of generic classes in PowerShell. Like this (in C ): There is a generic class used in the code above: System.Collection.Generic.List. If…
For the execution of SharePoint PowerShell scripts I need to check the execution environment of my PowerShell session to be sure that PowerShell runs as x64 application. This was…
If you want to set the SharePoint 2010 Enterprise Search Service Application "Default Content Access Account" by using PowerShell you can use this script: $searchapp \= Get…
I have had the problem to set the SharePoint Sevice Account of "SharePoint Server Search" to a special user account during a automatic setup. In other words: I want to automate…
When you receive this error …and you have done the exchange of farm certificates than you forgot this step: (Technet: http://technet.microsoft.com/en us/library/ff700211.aspx) See…
For a current project I want to create a “master script” that contains another compressed PowerShell script. This compressed script contains some informations server names,…
If you want to install windows features by script you have to use one of the tool OCSETUP oder DISM. E.g. start /w ocsetup <component name or dism /online /enable…
I tried to create a new SharePoint Server 2010 farm by using PowerShell cmdlet “New SPConfigurationDatabase” in one of the first steps. I got this error: New…
If you load an CSV file with import csv you will end up with an object of type System.Management.Automation.PSCustomObject . It’s an array. In such a case I liked to use such an…
Here is a script I used to add some web.config modifications with PowerShell. In this case I want to add a custom authentication provider. The following script I used for setup…
After updating the SharePoint Foundation 2010 Server of our company to SharePoint Server 2010 I got this error in the Event Viewer: I could solve this error by re enabling the…