Get All WebApplication in a given server in sharepoint using powershell - sharepoint-2010

I am trying to get list of WebApplication in a Given Server.
Get-SpWebapplication retrieves all the WebApplication in the Current machine.
I need to get the list of WebApplication in a particual server.
How to Do it.
Please help me with this.

To get a list of all SharePoint Web Apps, use the following:
Get-SPWebApplication | Select DisplayName, Url

Go to "C:\windows\system32\inetsrv" folder
and try this:
.\appcmd list wp

Related

instance run with the SYSTEM-Accont

i am fairly new to dataware housing, i am trying to attach a database, that i have dowloaded to my dowloads folder and the sql server cannot browse to the location.
i browsed and found this as the closest answer:
https://superuser.com/questions/148668/try-to-attach-to-a-database-file-but-cant-browse-folder-which-contains-the-file
but i dont know how to make my instance run with the SYSTEM-Accont.
please i would appreciate your advice.
The steps required are mentioned below:
In SQL Server Configuration Manager, go to SQL Server Services
On details panel, right click the name of instance(SQL server) for which you wish to change the service
Next, click on properties.
Then login using built in account and chose local system. You will be able to fetch the database.
Thanks , I have been able to solve it, I used this link
http://msdn.microsoft.com/en-us/library/ms345578(v=sql.110).aspx
In SQL Server Configuration Manager, click SQL Server Services.
In the details pane, right-click the name of the SQL Server instance for which you want to change the service startup account, and then click Properties.
then i logged on using built in account, and chose local system

Yammer Integeration with sharepoint using a WSP file

I am trying to Integerate the Yammer with Sharepoint using the guide http://success.yammer.com/integrations/sharepoint/ and I am using the Online method of Integeration using a WSP file.
I uploaded the WSP file in the SP2010 Foundation and I am not able to Activate the Solution
See I am getting the Inactive "Activate" Button...I predict the issue is with the permissions some Mandatory Permissions which is needed for the user to activate a sand boxed Solution..Thanks in Advance for your Inputs
It looks like the sandboxed services is not running or is maybe not properly configured. I think you need to check if this is running. You can have a look here to see how to check if the user code service is turned on.
http://www.paulgrimley.com/2010/06/starting-sharepoint-2010-sandboxed-code.html

Error when start new SharePoint project in visual studio 2010

I am a new administrator to a SharePoint farm and I want to start developing web-parts for our sites.
In our company we have installed SharePoint 2010 on Windows Server 2008 R2.
And we have installed Microsoft visual studio 2010 on that server.
We also have Microsoft SQL server management studio installed in the same server.
In my computer (Windows 7 professional), I have used remote desktop connection to access that server.
From SharePoint central administration, I have created new application, new site collection and new site.
I started VS with admin rights.
From File => New => Project =>Visual basic => SharePoint =>2010 => Empty SharePoint project => ok
Then I got a dialog box asking me to enter the local site that I want to use for debugging.
I entered: "http://sharepoint:21029/team1/"
I chose deploy as a farm solution checkbox.
Click Validate.
The problem is:
When I click Validate, I get the following error:
Cannot connect to the SharePoint site: "http://sharepoint:21029/team1/" Make sure that the Site URL is valid, that the SharePoint site is running on the local computer, and that the current user as the necessary permissions to access the site.
I made a lot of searches on the internet and finally I found this link:
http://www.sharemuch.com/2010/03/19/resolving-vs-2010-solution-deployment-issues-for-sharepoint-2010-projects/
When I tried to solve my problem as described in the previous link, I could not find the following databases:
SharePoint_Config
SharePoint_AdminContent_[guid]
SharePoint Site Content DB
Why I could not find the databases in the SQL Management Studio?
And why I get the error?
I want to start developing web-parts in visual studio... Any help please!!
Thank you
I got the solution finally :)
I found this critical in Event Viewer:
SQL database log in for 'SharePoint_Config' on instance 'sharepoint' failed.
I did the following steps and it solves my issue and I can now connect visual studio to my SharePoint site successfully ^_^
Grant correct permissions to the database access account
To resolve this issue, assign the database access account and then verify that the account has correct permission in SQL Server.
To assign the database access account:
On the Central Administration Web page, on the Quick Launch, click Security, and in the General Security section click Configure service accounts.
In the Credential Management section, in the upper drop-down list click the correct Web application pool for your Web application.
In the Select an account for this component drop-down list, click the domain account with which you want to associate this Web application pool, or click Register new managed account to associate a new domain account with this application pool.
Click OK to save changes.
Thank you all
What is team1? a sub site?
Try using the root site collection:
http://sharepoint:21029/
If you install sp in standalone mode read here about the connection string because sp uses an embedded edition of SQL server

Unable to connect to the configuration database in SP2010

I am using SP 2010.
I created a new site collection from central admin.
and it gave me "site created successfully"
when I visit the new site collection, I get below error:
Cannot connect to the configuration database
What are my options?
Go to services (Start --> Run --> Type services.msc) and start the service SQL Server(SHAREPOINT)
Its probably the app pool you are running your site collection under, have you got any other site collections in the same web application?
If not take a look at the permissions on the app pool for that web app
This problem came to me after a password expired in the AD and had to be updated.
When i changed the password i had to sync in to the ad and used this site: http://info.izzy.org/Blog/archive/2010/08/04/how-to-fix-an-out-of-sync-password-issue-in-sharepoint-2010.aspx
Then i found out that the problem was that SharePoint Timer Service wasnt running och the Front end server. So I had to do an iisreset on the front end server to get the Service to start, since the account using the service was the account with a new password. And then everything was back on track again!
in my case the problem was secondary replica of Always on Was Empty and does not have Config database
i have configured an always Solution and at start i connect sharepoint to alias via cliconfig.exe and alias was connecting to AG listener
fail over back to instance where Config db exists solved my problem

IIS Anonymous user authentication doesn't work with AD credentials

I have an asp.net application directory, and I want to use anonymous authentication in the Directory Sercurity tab.
If I use the pre-Windows 2000 style DOMAIN\USERNAME for the username, everything is fine.
If I use the AD-style (UPN) usename#domain.local, then I get a 401.1 failed login.
I've tried a number of variations, but can't get it to work. If I select the user from the Browse box, the AD name comes up in the box, but the pre-Windows 2000 name is filled-in. Likewise for SQL Server 2005.
It seems that the UPN isn't 'real', is this right? Given that it's not required and doesn't have to be unique; it seems very odd.
Am I correct, in that this is not supported? Would IIS 7 make any difference?
I wish to do this, because the limit of 20 characters for the pre-Windows 2000 username is insufficient for the role-based security I wish to apply for different webservices (the application directories) coming off this website.
UPN suffixes should work, althouh there is a bug which occurs when there is a service pack difference between the IIS box and the domain controller. There is a patch for it. This link discusses the issue in detail.
Are you sure it's domain.local and not domain.com. If the domain\username is working, then username#domain.com should work.
Update 1:
I have tried it on Windows 2003 sp 2. In the login "directory security" I have checked the enable anonymous access check box ( and only this box ) and put ausername#mydomain.com and the ausername password. The site is plain asp.net without sql backend.
Are you able to login to the server with the usename#domain.local ?
Can you test this on different domain? It may be some wired dns resolution problem.
Update 0:
I tested it on iis 6 and the username#domain.com combination works fine on my machine.
About the "realnes" of the names. No name is "real" the actual account is just a GUID. The names are just for convenience.