Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

VBScript site creation creates phantom groups

  Asked By: Umesh    Date: Oct 28    Category: Sharepoint    Views: 1238

I've ran into an odd problem with my site creation script. I created
the script to automate the process of creating new site collections.

The site is created from a global template. When creating a site
from a template via stsadm the standard groups (Visitors, Members,
Owners) are not created. So I added the following lines to my script-

stsadm -o creategroup -url http://wss/sites/TestSite -name "Site
Administrators" -description "Use this group To give people full
control permissions To the SharePoint site: TestSite" -ownerlogin
domain\ID -type Owner

stsadm -o creategroup -url http://wss/sites/TestSite -name "Site
Members" -description "Use this group to give people contribute
permissions to the SharePoint site: TestSite" -ownerlogin domain\ID -
type Member

stsadm -o creategroup -url http://wss/sites/TestSite -name "Site
Visitors" -description "Use this group to give people read
permissions to the SharePoint site: TestSite" -ownerlogin domain\ID -
type Visitor

Then it goes on to add the Site Collection owners to the admin group.

When I go and view the site after creation I see each group listed
twice. But only one of the two are actually selectable. If I delete
one they both are deleted.

Any idea what is causing this? Or what I can do to fix it?

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Stacia Guy     Answered On: Oct 28

Try adding double quotes arounf the input. Set up the command like this:

stsadm.exe -o creategroup -url  "http://your url" -name  "your title" -description
"your description" -ownerlogin "your\login" -type  "Visitor"

It should create only one entry.

 
Didn't find what you were looking for? Find more on VBScript site creation creates phantom groups Or get search suggestion and latest updates.




Tagged: