Prasad Bolla's SharePoint Blog

Click Here to go through the Interesting posts within my Blog.

Click Here to go through the new posts in my blog.

Friday, January 30, 2015

Example to add an user into the SharePoint Group using STSADM Command

Logon to SharePoint Server which is hosting the SharePoint Site.

Go to Command Prompt as Admin

Now run the below command and provide details as mentioned below. SiteCollection Admin UserName should also be like Domain\UserName

stsadm -o adduser -url "SharePoint Site URL" -userlogin "domain\username" -useremail "username@domain.com" -group "group name" -username [SiteCollection Admin UserName]

Thursday, January 22, 2015

How to grant Permissions to a folder and share it from command prompt

cacls D:\ParasdBolla /T /E /G Domain\UserName1:f
cacls D:\ParasdBolla /T /E /G Domain\UserName2:f
net share PrasadBolla="D:\PrasadBolla"

How to add users to admin group from command prompt

net localgroup administrators Domain/userName /add

Command to Restart a Remote Computer when it is in hung state or when you are hope less

This command Helps you to restart the remote server/client machine when it is down.

Example if you are not able to login into the machine and you are hopeless then use the below command should solve your issue.

shutdown -r -m \\Full Computer Name