.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Easy Web
Imran Ghani
Post New Web Links

Backup-SPFarm Requires User to be part of Local Administrator group

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :C#
 

While poking around the PowerShell cmdlet source code trying to figure out how the machine administration requirement is asserted I noticed that the SPCmdletBackupFarm (Backup-SPFarm) requires the user to be a local administrator:

[SPCmdlet(RequireUserMachineAdmin=true), Cmdlet("Backup", "SPFarm", DefaultParameterSetName="DefaultSet", SupportsShouldProcess=true)]
internal sealed class SPCmdletBackupFarm : SPCmdletBackupRestore

Is there a particular reason for this being the case?  I was hoping to use the farm service account which is currently just a regular domain user account.  How are other scheduling their farm backup using PowerShell?  Do you run it using an account with administrative privileges?




View Complete Post


More Related Resource Links

Error 15404 - Could not obtain information about Windows NT group/user 'Dev\Administrator', error

  

SQL Server 2008 R2 with the latest CU floods event log with "An exception occurred while enqueueing a message in the target queue. Error: 15404, State: 19. Could not obtain information about Windows NT group/user 'Dev\Administrator', error code 0x54b".

Domain controller is located on the same server (Win 2008 R2), this is SharePoint virtual machine. There are no DNS or Directory Service errors.

How can I troubleshoot this?

-Stan


RE: Never-ending code when checking if user is part of an Active Directory Group

  

Hi

I've some code to check if a user is part of an Active Directory group.

I use it on a Sharepoint 2007 Web Part.

It works fine for my account but I'm an Administator. For other users it seems like it's loading but just keeps loading.

My code is below.

Any advise appreciated.

Thanks

P

 

 

private bool userIsInGroup(string theUser, string theGroup,

Site Administrator cannot assign user or group to pictures library or to any library permissions pag

  

Hi,

        I have number of Mysites and in each mysites i have given same user has site administrator. I observe that in few Mysites, Site administrator user, though got full control permission, cannot assign users or groups to picture library or any library in the library permissions page. We see only few options in tool bar of the library (i.e no UPLOAD menu etc) where as in other mysite for the same user we can do what ever we want to.

         Would anybody please let me know what the cause for this behavior?

Thanks

Chegondi Rama

 


"'xxxxx\Administrator'user does not have permission to access the 'Local' object, or the object

  

Hi,

I am trying to run the DMX query

select [bikebuyer],
predicthistogram([bikebuyer])
from [TK448 Ch 009 Prediction]
natural prediction join
(select 'm' as [gender],
0 as [number of cars owned]) as t

for my  [TK448 Ch 009 Prediction] model but it's throwing me the error "'xxxxx\Administrator'user does not have permission to access the 'Local' object, or the object does not exist" though it has the Admin permission.

The full query what I am trying to achieve is.

--select * from [predictioncluster].cases
select top 1000
t.[lastname],
t.[firstname],
[bike buyer],
predictprobability([bike buyer],1) as dtpredictprobability,
t.gender,
t.numbercarsowned from [predictioncluster]
prediction join
openquery([Local],
'select [lastname],
[firstname],
[gender],
[numbercarsowned]
from [dbo].[prospectivebuyer]') as t
on[gender] = t.[gender] and [number cars owned]
= t.[numbercarsowned]
where [bike buyer] = 1
order by predictprobability([bike buyer],1)desc

but the same error. Also I am getting the error "The end of the input was reached". If any one could help me out with this issue.

Thanks,

CsKoch


Choosing Between a User Control or Web Part for SharePoint

  
SharePoint will only display Web Parts on a page. However, there are publicly available shims that allow you to write user controls and have them be displayed as a Web Part. From SharePoint's point of view, the shim is a Web Part. From the point of view of the user control, the shim is simply a control in .NET that is including the user control

How to authenticate local user usin ldap or non domain authentication

  

hiiii

I created one application, and I need to authenticate local user. This user is the user who is login to his/her Personal Computer.. Main thing his that he/she does not in any DOMAIN... I want NON-DOMAIN authentication.. any how.... please help...


How do I prevent displaying membership of an AD group in Colleague Tracker web part?

  

I'm a big fan of the Colleague Tracker web part in MOSS 2007 My Sites, especially the option to show 'Membership Changes'. This is often useful in highlighting that a colleague has been added to a certain AD group.

We now want to hide the membership of certain AD groups from the colleague tracker. For example, if an AD group called 'Project X' is created, we don't want membership of the group broadcast throughout the My Sites where colleagues are tracking colleagues.

My first thought was that we could use AD to 'deny read' on the 'Project X' AD group to all SharePoint related service accounts. This does not appear to have worked, although perhaps the configuration is more complex? The best approach would seem to be to prevent the group membership data ever being imported from AD to the SSP, hence my 'deny read' approach.

Has anyone successfully implemented this, or does anyone have any better ideas?

Thanks


User group invalid for new document

  

Hi,

Defined a user group and a site column of type people/group directing to this group.

Also defined a content type and added the site column to this content type.

When I create a new word document of this content type, word opens displaying my site column ok. But when I enter it, I see that all active directory (AD) entries are displayed. I want it to display only those users I added to the user group I created. Moreover, users can select any user from AD, which makes defining a user group and a site column meaningless.

This problem is only in creating new documents with Word. If I edit properties of an already existing document in my site, everything is ok: I can select only the users in the group.

Regards.


What is the best way to create user account for big group of people?

  

I need to create individual account for a big group of people (around 200) from an Excel spreadsheet. What is the best practice? It will take too much time to create account using web form. I think there must be a way to do it. Please advice. I tried to use Stored procedures created by ASP.NET. NOT SURE whether it is a good idea.

Thanks 


The Telerik Eastern Canada User Group Tour

  

Hey!  Telerik is coming to Canada.  Evan Hutnick, Telerik evangelist, will speak at 6 Canadian user groups.

canadalovesdotnetninjas[1]

Check Evan's blog for more info

Bookmark and Share

Chapter 3: The SharePoint User Experience, Part 1 (Professional SharePoint 2007 Development)

  
Learn how SharePoint 2007 takes advantage of many ASP.NET 2.0 features. This means that you can build ASP.NET web pages and blend them into a SharePoint site without a lot of rework.

Chapter 3: The SharePoint User Experience, Part 2 (Professional SharePoint 2007 Development)

  
Get an introduction to the out-of-the-box features SharePoint provides. Then learn how to use these features to "develop" a site from within the user interface as well as how to add to code like CAML to the other user interface elements.

Failed to generate a user instance of SQL Server due to failure in retrieving the user's local appl

  
Hi ,From the last few days I am struggling with the error "Failed to generate a user instance of SQL Server due to failure in retrieving the user's local application data path. Please make sure the user has a local user profile on the computer. The connection will be closed."I hav created an asp.net web application with membership shcema. It works fine an my developement machine but when I published it on my web server. It is giving me above error for which I searched but not found any help.Can anyone help me with this.

How to check effective permissions for a user or group for a SQL server object or whole server?

  
Guys, How do I see effective permissions for a user or group for a SQL server object or whole server? For example, a user is not listed in security/logins, but he is a member of few groups and some of them have assigned permissions on SQL server (again either directly or through membership in other groups) Even when I select an object (a table), check properties/permission – it doesn’t let me select any principal, except those listed on security/logins… Anyway, what is the right way to see effective permissions for a user or group? Sorry for asking such a simple question, I’ve searched but found nothing relevant.

Failed to generate a user instance of SQL Server due to failure in retrieving the user's local appl

  
Hi,I spend two days looking for an anwser to this problem but no luck. I have a simple ASP.NET 2.0 application which run correctly on my local machine. But After uploading all files including web.config file on a Windows 2003 Server with SQLEXPRESS installed. I have this error. Please Help!!!!!! Failed to generate a user instance of SQL Server due to failure in retrieving the user's local application data path. Please make sure the user has a local user profile on the computer. The connection will be closed. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: Failed to generate a user instance of SQL Server due to failure in retrieving the user's local application data path. Please make sure the user has a local user profile on the computer. The connection will be closed.

Can I backup to a UNC destination not part of domain using Proxies?

  
Hi, I am trying to backup my databases to a UNC destination that is not part of domain (stand alone machine) Can I use proxy accounts, so the database backup engine uses the UNC path using a stand alone machine’s account? If not, how can I handle this situation? Thank you, Max

Problem with access to a user in AD group

  
Hi all, We are managing our security in Sharepoint (WSS 3.0) with AD groups instead of Sharepoint groups. This worked fine until now. For an unknown reason, one single user from an AD group cannot access a page (while other users from the same group can). The group is also a distribution list in AD (so it's a security group and distribution list for emails). It includes several other distribution lists such as: L-All-Corporate-Employees    L-Administration          User 1          User 2           ...     L-Accounting         User 1         ... ...   So far I never had any issue with that kind of approach,  but yesterday we published a new web part page and wanted only the corporate employees to get access to it, so I broke rights inheritance on the page and added the L-All-Corporate-Employees group with View rights. As I already said, I tested with one user from the group (let's say from the L-Administration sub-group) and it works, now I receive an email from another user (let's say from the L-Accounting sub-group) which tells me he doesn't have access... But they're all part of the L-All-Corporate-Employees group, so they should all
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend