Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using command line tools owsadm.exe to delete a specific user/group or

Status
Not open for further replies.

LuckyDuck528

Programmer
Dec 21, 2004
65
US
We are imlementing a clustered environment of 3 webservers all running PolyServe Matrix Server on Win2K3 Server. We are using IIS 6. and FrontPage 2003. We have a load balencer in front of these three boxes and they all share the same data repository for content/code (D:\).

Becasue these are high traffic servers and we use the load balancer we are currently directing ALL traffic through the load balencer. However, this causes the problem that when we open the Microsoft Sharepoint Administrator to fiddle with our websites (of which there are 7) we don't really know which server is getting the request...For example, I might have Sharepoint open on Server A, however, the loadbalencer is sending my request to Server C and therefore Server C's C:\ drive is the one that is actually seeing the changes made to the website.

To work around this, we have begun to use the command line tools provided by owsadm.exe to adminster the sites. We write a cmd and run it on all 3 boxes... I know it sounds awful but it's working for us quite well right now and we'll probably continue this practice in the future.

OUR PROBLEM IS THAT....
While I know how to add a site folder/ delete a site folder/ and users/ add permissons to users, we can't figure out how to delete a single user or group OR how to remove permissions from a single user or group....

EXAMPLE:
If I have an existing user named Bob who is an AdvAuthor and I want to change him to a browser I run the line below to give him Browser permissions
Code:
[COLOR=green]owsadm.exe –o roleusers –p 80 –w /MySiteFolder –n browser –c add –u Domain\Bob[/color]

BUT then Bob appears with advance author AND Broswer permissions. It has not been changed, just added.
Logically one would think using this next line would get rid of this problem to remove his AdvAuthor permissions.
Code:
[COLOR=green]owsadm.exe –o roleusers –p 80 –w /MySiteFolder –n advauthor [COLOR=red]–c delete/remove[/color] –u Domain\Bob
[/color]
However apparently -c <comand to execute> does not have a delete/remove option...

****************HOW DO I GET AROUND THIS????????

I have already checked out but couldn't come up with the right combination of anything that would work.

Thanks for the suggestions! Have a great day! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top