Skip to main content


 

Symptoms

 


Can't activate K2 for a subsite
 

 

Diagnoses

 


I can't seem to activate K2 for a subsite. It will try to activate, but in the end it will just stay "Not Activated". It works on the root site though. Any idea of what else to try?
 

 

Resolution

Issue is caused by using sts#1 template as default groups are not created when using the blank site.

 

Gave modified .ps1 that created the groups hence alleviating the issue.

 

Script had items commented out based on the script I was given. If running right off the bat uncomment out etc.

 

 

 

Add-PsSnapin Microsoft.SharePoint.PowerShell -ErrorAction:SilentlyContinue

 

$url = "http://dlx:39133/"

 

#$ContentDatabase = "WSS_Content"

 

$WebsiteName = "Portalv2"

 

#$WebsiteDesc = "Portalv22"

 

#$Template = "STS#1"

 

#$PrimaryLogin = "denallixadministrator"

 

#New-SPSite -Url $url -ContentDatabase $ContentDatabase -Name $WebsiteName -Description $WebsiteDesc -Template $Template -OwnerAlias $PrimaryLogin

 

# Create the Default Groups (Visitor, Member, and Owners)

 

$web = Get-SPWeb $url

 

$web.CreateDefaultAssociatedGroups($ownerAlias, $ownerAlias, "")

 

# Enable the OpenInClient feature

 

Enable-SPFeature -Identity OpenInClient -Url $url

 

# Add Everyone to Members

 

$user = $web.EnsureUser("C:0(.s|true")

 

$group = $web.SiteGroups.GetByName($WebsiteName+" Members")

 

$group.AddUser($user)

 

$web.Update()

 

 



 
Be the first to reply!

Reply