Archive

Archive for the ‘Windows’ Category

Creating custom service application proxy groups

February 15th, 2012 No comments

In SharePoint 2010 every webapplication can be connected to the default service application connection group. It is also possible to use the custom group which allows you to choose which service applications need to be connected to the webapplication. In this post I will show how you can create a custom group, connect service applications to this group and how you connect you webapplication to your custom group.

So first let us see where we will find the connection group in Central Administration. Go to Central Admin and then to Manage Webapplications. Select a webapplication and select Service Connections

We see that this webapplication is connected to the “Default Proxy Group’

We can only change this to the custom value and choose each Service Application.

There is no place in the GUI where we can create our own group and connect Service Applications. So Powershell to the rescue.

In my example I am going to create a new group called “My Custom Service Group”.  I will add the the Search Service Applications to the group

This is the script that I ran.

</code>

$groupName = 'My Custom Service Group'

Remove-SPServiceApplicationProxyGroup -Identity $groupName -Confirm:$false -ErrorAction SilentlyContinue

$newProxyGroup = New-SPServiceApplicationProxyGroup -name $groupName
 Write-Host New Proxy Group: $groupName created  -foregroundcolor cyan

$searchProxy  = Get-SPServiceApplicationProxy | Where{$_.DisplayName.StartsWith("Search Service")}

Add-SPServiceApplicationProxyGroupMember -identity $newProxyGroup -member $searchProxy
 Write-Host ServiceApplication proxy $searchProxy.DisplayName connected to proxy group $groupName  -foregroundcolor cyan

<code>

Download script here

So now we see that out own group is shown

Categories: Powershell, Sharepoint, Sharepoint 2010 Tags:

Prevent windows being maximized when moved to top or side off screen

November 12th, 2010 No comments

Do you also hate that Windows 7 or Server 2008 automatically maximizes your windows when you move them to the top or side of the screen? You can disable this with the following option. Go to the Ease of Access center in control panel.

Select option make mouse easier to use. Disable the following option:

Categories: Windows, Windows 7, Windows Server 2008 Tags:

Installing Sharepoint 2010 on Windows 2008 (R2) domain controller installs SQLExpress

November 12th, 2010 No comments

When installing Sharepoint server on a Windows 2008(R2) server that has the role of domain controller the installer skips the step in which you can choose what type of installation you want. The stupid thing is that Sharepoint installs a stand alone installation. In my case I already have SQL server 2008 R2 installed so I want a farm installation. The trick is tp pass a config file to the Sharepoint executbale. Take these steps for a correct famt install

  • Start setup.exe and install prerequisites ( autorun DVD)
  • Exit the setup screen
  • Open a command window and navigate to your DVD folder
  • Start the setup and with the following param

Where e: is the drive containing your Sharepoint DVD

e:\setup.exe /config e:\Files\SetupFarm\config.xml

This will install a farm installation. After installation you can configure a new or existin farm

Sharepoint 2010 User Profile Synchronization hangs on starting

November 12th, 2010 No comments

After installation off Sharepoint 2010 I tried to start the User Profile Synchronization service. After pressing start the service stayed on the status starting for ever. See screenshot:

When trying to manage synchronization form user profile management screen I got the alert:

Cannot navigate to the requested page while User Profile Synchronization is running.Please wait for the current Synchronization run to finish

So I checked my installation. I have a special AD account for use with all Sharepoint services. This account was not in thelocal Admin group. So I added the account and still it wouldn’t start.Adding the user to the local admin group should be enough. It seems that my user profile service got corrupted. So I decided to delete my User Profile env and recreate it.

After recreating I tried to start the User Profile Synchronization service. It now starts

In the services management console the fore fron services are now working

And my server is syncing profiles

Windows 2008 R2, Office 2010 protected view

November 12th, 2010 No comments

I recently installed a new Windows 2008 R2 server system on my laptop for Sharepoint development. After installation of Sharepoint 2010 & Office 2010 I got strange errors opening Office files from internet and even from my own Outlook archive. I got these errors in Word and Powerpoint:

I had the same installation on a Windows 7 box so I started looking for differences. When opening Office files like Word or Excel they are opened in protected view on my Windows 7 machine. So could this be my problem? I disabled protected view in Word, Excel and PowerPoint and now everything works.

So disable the following options if you use Windows 2008 (R2) on your workstation and you are experiencing errors opening Office files.


Go to Trust Center menu and click on the button Trust Center Settings.

How safe is your password?

July 2nd, 2010 No comments

Running powershell gives execution permission errors

July 1st, 2010 No comments

By default Powershell execution policy is set ot restricted. To enable running your own scripts run following command

PS D:\> Set-ExecutionPolicy RemoteSigned

To view current policy

PS D:\> Get-ExecutionPolicy

Using NETWOK_SERVICE account over network

April 23rd, 2010 No comments

When you develop web applications that run under an application pool in IIS you can choose the network_service as the account. When accessing data on the network or in a SQL server database server this is the account that is used to connect. the network_service is a local computer account. So how can you map this user in your database of share:

Add a user with username your servername followed by an $

So you have ServerA and you want to grant the network_service account connect permissions to DataBaseServer.

You can add the account Domain\ServerA$ to your database or share

Another solution is to create 2 exactly the same useraccounts on both servers with same credentials

Categories: ASP.NET, Windows Server 2008 Tags:

Bronze mouse scheme for Windows 7 / vista

March 9th, 2010 No comments

When I was using Windows XP I loved the bronze mouse scheme. When I upgraded to Windows 7 this was something I really missed.
I found a way to use this scheme under Windows 7. Unpack the cursor files from the attached zip and place them in some folder on your system.

Go to your control panel and choose the mouse option.
Go to the tab pointers.

With the browse button you can set each pointer. Choose a cursor from the zip folder

Download 3dBronze mouse cursor pack

Categories: Windows 7 Tags:

How to restore administrative shares on Windows server 2008

July 14th, 2009 No comments

With share & drive management in Windows Server 2008 I was able to delete the D$ administrative share by accident. I tried to restore it by adding it myself with explore. But I got the message that it already existed. Here is my solution that did the trick. I found it on Microsoft but it was file dunder Windows server 2000

Edit the registry and add this key

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\AutoShareServer (DWord)

Set the DWord value to 1

autoshareserver

Now restart the server service

autoshareserverservices

Now the shares are restored. You can now delete the reg key and restart the service again.

Categories: Windows Server 2008 Tags: