Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Activate "Team Collaboration Lists" feature by power shell script - Error

$
0
0

Hello,

 I have written the following script to activate "Team Collaboration List" feature , But I get the following Error :

   The string is missing the terminator: ".
    + CategoryInfo          : ParserError: (:) [], ParseException
    + FullyQualifiedErrorId : TerminatorExpectedAtEndOfString

-----------------------------------

 The Script :

$siteUrl = "http://serverName:2020"
if ((Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue) -eq $null) 
{
    Add-PSSnapin "Microsoft.SharePoint.PowerShell"
}
Enable-SPFeature -identity "00bfea71-4ea5-48d4-a4ad-7ea5c011abe5" –URL $subSiteURL

   How Can I solve it?


ASk


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>