
July 23, 2010 18:16 by
Robi
Yesterday, I was was installing SharePoint Server 2010 at one of our clients and after the install I was getting this errors:
User Profile Service Event ID 1511. It says that account could not log on to the computer and create a profile.

After a little bit of research, I found out that all you have to do is edit a local group policy and than run a cmd and all of these errors are gone.
So run a "gpedit.msc" on your WFE where you are getting these errors and go to Computer Configuration/Windows Settings/Security Settings/Local Policies/User Rights Assigneements and Search for Allow log on Locally

Add the account for which you are getting errors. Then, start command prompt and run a command:
runas /user:kompas-xnet\sp_apppool cmd
Type the password and if you go to your users folder you should see a folder with your service account name.
You can now remove Allow log on locally permission for the account.
Voila.
1363c07a-ef32-4de0-ac3a-bf2f6b6aaaba|1|5.0
I've commited a new plugin to my open source repository at Google Code – Niftyscripts. Currently, I've pushed a new plugin that scans the current document and reports unused CSS rules and their origins.
To read more, visit the site or browse the source tree.
9b3eed22-9352-43ac-88f6-187d2fbcec8b|1|5.0
You can read my new tutorial in Slovene here.
50cf8f82-db3e-4adb-bd3c-422ff78e7824|1|5.0

July 3, 2010 00:37 by
Robi
During a maintainance of my computer I needed to stop all SharePoint 2010 services. So I was wondering what is the easiest way to do it. In Central Admin, you could do it an click on every service and stop it, but it takes a lot of time. So I was considering some other options and certainly decided that you could do it with a PowerShell script. So here it is:
STOP
$services=Get-SPServiceInstance
foreach ($service in $services) {stop-SPServiceInstance -Identity $service -confirm:$false}
START
$services=Get-SPServiceInstance
foreach ($service in $services) {start-SPServiceInstance -Identity $service}
d8df9081-33c2-4db6-8549-d5cc85f8f230|2|5.0