You do not have security rights to perform this operation exception occurred in CreateComputerVariable method

I am getting an exception near computerSettings.Put();Its throwing an exception as You do not have security rights to perform this operation..Can i know exactly when does this error occur..
Details of Error:
ConfigMgr Error Object:
instance of SMS_ExtendedStatus
CauseInfo = "5";
Description = "CSspMachineExtProperties: ERROR_ACCESS_DENIED: ";
ErrorCode = 1112017925;
File = "e:\\qfe\\nts\\sms\\siteserver\\sdk_provider\\smsprov\\sspmachineextprops.cpp";
Line = 958;
ObjectInfo = "";
Operation = "PutInstance";
ParameterInfo = "";
ProviderName = "ExtnProv";
StatusCode = 2147749889;
stack trace:
 at Microsoft.ConfigurationManagement.ManagementProvider.WqlQueryEngine.WqlResultObject.Put(ReportProgress progressReport)
   at Microsoft.ConfigurationManagement.ManagementProvider.WqlQueryEngine.WqlResultObject.Put()
   at TestWqlManage.Program.CreateComputerVariable(WqlConnectionManager connection, String siteCode, List`1 variables, Int32 computerId) in /path/path/path
ComputerVariable Method where exception occurs
public static string CreateComputerVariable(WqlConnectionManager connection, string siteCode, List<ComputerVariableDC> variables, int computerId)
            try
                // Get the computer settings.
                IResultObject computerSettings = null;
                IResultObject computerSettingsQuery = connection.QueryProcessor.ExecuteQuery(
                    "Select * from SMS_MachineSettings where ResourceId = '" + computerId + "'");
                foreach (IResultObject settings in computerSettingsQuery)
                    computerSettings = settings;
                if (computerSettings == null) // It doesn't exist, so create it.
                    computerSettings = connection.CreateInstance(@"SMS_MachineSettings");
                    computerSettings["ResourceID"].IntegerValue = computerId;
                    computerSettings["SourceSite"].StringValue = siteCode;
                    computerSettings["LocaleID"].IntegerValue = 1033;
                    computerSettings.Put();
                    computerSettings.Get();
                // Create the computer variable.
                List<IResultObject> computerVariables = computerSettings.GetArrayItems("MachineVariables");
                foreach (ComputerVariableDC variable in variables)
                    IResultObject computerVariable = connection.CreateEmbeddedObjectInstance("SMS_MachineVariable");
                    computerVariable["Name"].StringValue = variable.Name;
                    computerVariable["Value"].StringValue = variable.Value;
                    computerVariable["IsMasked"].BooleanValue = false;
                    computerVariables.Add(computerVariable);
                computerSettings.SetArrayItems("MachineVariables", computerVariables);
                computerSettings.Put();
                return computerId.ToString();
            catch (SmsException e)
                Console.WriteLine("Failed to create computer variable: " + e.Message);
                //throw;
                //return e.Message;
                throw e;

Hi,
What's the error when you create a computer variable manually?
Please make sure you have give "Modify Resource" permission to this user. You could see it in Administration workspace -> Security -> Security Roles -> Full Administrator -> Collections -> Modify Resource.
Best Regards,
Joyce
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place.

Similar Messages

  • Error 1476: You do not have the rights to perform this operation

    My problem just started this week. On certain users, or workstations I
    try and remote control. RC tries to authenticate, but then the error
    message in my subject line comes up.
    I've checked my RC policies for users and the desktops, and haven't
    changed anything. It will work for suer a, but not user b even though
    they both have the same policies associated with them. (same for
    workstations)
    The only thing that has been done recently are the DST updates. I have
    tried updating Console1 but that did nothing.
    Any help would be greatly appreciated.

    Gwsorrells,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at
    http://support.novell.com.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://support.novell.com/forums)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://support.novell.com/forums/faq_general.html
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • Microsoft Outlook 2010 The delegates settings were not saved correctly. Cannot activate Send-on-behalf-of list. You do not have sufficient permission to perform this operation on this object.

    I am trying to assign delegation to a user and I receive the following message.
    The delegates settings were not saved correctly.  Cannot activate Send-on-behalf-of list.  You do not have sufficient permission to perform this operation on this object.
    We are using 2010 for the server and client.  There are only specific mailboxes that this is happening for after being migrated from Lotus Notes.  The user can use their mailfile fine however it is just the delegation that appears corrupted somehow. 
    I'm not sure how to fix this.  I have checked the access through the security tab in ad and that looks fine.
    Any help would be appreciated.

    I did some more digging and I solved it.
    This would be the solution:
    In Active Directory Users and Computers
    -Click on VIEW
    -Click on ADVANCE FEATURES  (this is important otherwise you won't see
    the complete list in the next steps)
    -Click on the USERS container
    -Find the problem user's account
    -Right mouse the account and click on PROPERTIES
    -Click on the SECURITY tab
    -In the top box, click on the SELF account
    -In the bottom portion of the screen make sure the READ PERSONAL
    INFORMATION  & WRITE PERSONAL INFORMATION  should both be checked for
    ALLOW
    If you can compare the permissions for 'SELF' with another user you probably should set them accordingly to be safe. I noticed that for the user where setting delegates (SOB) did
    not work, more than those 2 permissions were missing.
    Good luck!
    David

  • You do not have security permissions to complete this operation. Contact your administrator for more information.

    Hi everyone,
    I had a little trouble finding this on ony forums, so i decided to write it myself.
    I have setup on my Windows server 2008 machine fax server manager. It is working well (recieving faxes and forwarding it through email)
    It has been setup with a d-link external fax modem.
    Everytime i try to connect my client computer (windows vista business 32 bit)  to the fax server through windows keep getting " you do not have security permissions to complete this operation. Contact your administrator for more information."
    I am having a little trouble getting around it as i am the system administrator and have all the rights to do this. I have also added extra to my account fax rights as i thorght, that could of been the problem. I have also added my account in the fax server manager, but that did not work as well.
    Everything is set up on a domain and the server that is running fax service manager is on it aswell, not sure what could be the problem.
    Thank you in advanced for your help

    Hi,
    Thanks for the post.
    First, I would like to confirm if the issue occurs with the Domain Admins.
    If so, please check if the relevant group policies are set appropriate.
    To resolve this issue, make sure that the Network Service account and the Local Service account is added to the following policy settings on the domain controller:
    ·         Adjust memory quotas for a process
    ·         Generate security audits
    ·         Log on as a service
    ·         Replace a process level token
    ·         Log on as a batch job
    To configure the policy settings for the Network Service account on the domain controller, follow these steps:
    1.    Click Start, point to Administrative Tools, and then click Local Security Policy.
    2.    Expand Local Policies, and then click User Rights Assignment.
    The policy settings are displayed in the right pane.
    3.    Double-click the policy setting that you want to add the Network Service account to.
    4.    If the Network Service account and the Local service account is not in the list of users and groups that are assigned to that policy setting, click Add User or Group.
    5.    In the Select User or Groups dialog box, type Network Service in the Enter the object names to select box, and then click OK.
    6.    Verify that NETWORK SERVICE is displayed in the list of users and groups that are assigned to that policy setting, and then click OK.
    7.    Add Local service the same way.
    8.    Reboot the server.
    Does it work?
    If the problem continues, Please collect the MPSReport from Windows Server 2008.
    1. Download proper MPS Report tool from the website below.
    Microsoft Product Support Reports
    http://www.microsoft.com/downloads/details.aspx?FamilyID=CEBF3C7C-7CA5-408F-88B7-F9C79B7306C0&displaylang=en
    2. Double-click to run it, if requirement is not met, please follow the wizard to download and install them. After that, click Next, when the "Select the diagnostics you want to run" page appears, select "General", “Business Networks”, click Next.
    3. After collecting all log files, choose "Save the results", choose a folder to save <Computername>MPSReports.cab file.
    Use Windows Live SkyDrive (http://www.skydrive.live.com/) to upload the file and then give me the download address.
    Hope this helps.

  • "changes to the distribution list membership cannot be saved. you do not have sufficient permission to perform this operation on this object"

    Running Exchange 2010/latest updates on Windows 2008 R2 servers.
    When I create a new DL that I want someone to manage, they received the following message when trying to add/remove from the DL:
    "changes to the distribution list membership cannot be saved.  you do not have sufficient permission to perform this operation on this object"
    I have followed everything in "http://msexchangeteam.com/archive/2009/11/18/453251.aspx" with no luck
    Any suggestions?

    Piggybacking off of the discussion above, with our deployment of Exchange 2007, we created a set of web-based tools that allowed people to create Exchange Resources including distribution lists.  To allow multiple people to manage the lists for a given
    department, we programmatically created a group, which is populated with one or more users from the "resource department".  We then set the following AD permissions to allow members of the group to manage membership of departmental distribution lists:
    Add-ADPermission -User DepartmentalGroup -AccessRights ReadProperty, WriteProperty -Properties 'Member' -DomainController dc.contoso.com
    Fast forward to Exchange 2010 and the landscape has changed with Exchange 2010's implementation of Role Based Access Control and I'm struggling to come up with a way to programmatically allow a group of users to manage distribution list membership for a
    subset of distribution lists - note that we have approximately 75 departments, with each having its own set of coordinators who should be able to manage distribution lists for their department but not lists created by other departments.  The specific
    error we receive in Outlook when attempting to modify group membership is the same as the title of this thread - "Changes to the distribution list membership cannot be saved.  You do not have sufficient permission to perform this operation on this object". 
    I implemented the settings referred to at
    http://sysadmin-talk.org/2010/06/omg-allowing-end-users-to-manage-distribution-group-membership-in-exchange-2010-2/ which details the process of creating a new management role and revoking the role's ability to create new distribution lists and remove distribution
    lists (which we want because we want those actions to be performed using our web tools). 
    All that to say that the ultimate problem we have is that the above relies on the "ManagedBy" field of a distribution list (viewable by Get-DistributionList Listname | fl *ManagedBy*) to determine group ownership.  When "ManagedBy" is set to a user,
    the user CAN edit a distribution list's membership from Outlook and OWA.  When "ManagedBy" is set to a group, members of the group are UNABLE to edit the membership of the distribution list via Outlook or Outlook Web Access/ECP.   Furthermore,
    Set-DistributionGroup does not allow you to specify a list of users to assign to the ManagedBy field.  However, if "ManagedBy" was set to a specific user and that user logs in to the Exchange Control Panel and adds additional "owners" of the distribution
    list, which I can then see from EMS - both the original owner and any additional owners added can in turn modify group membership for the list using Outlook or Outlook Web Access/ECP.
    My questions:
    1) Is it "expected" behavior that while I can assign a group to the "ManagedBy" property of distribution list, members of that group are still unable to edit the group membership?  ...or is there a fix for the behavior I'm seeing?
    2) Can multiple values be assigned to the "ManagedBy" property when using Set-DistributionList - ex: Set-DistributionList DLName -ManagedBy:user1,user2
    3) Any other suggestions?
    Thanks,
    -Lance

  • Changes to the public group membership cannot be saved. You do not have sufficient permission to perform this operation on this object.

    We have an existing Hybrid Setup
    On-Premise Exchange Version: Exchange 2010 SP3 RU1
    Users are being migrated to Exchange Online every day.
    We've read online that Distribution Group and Public Folder permissions and memberships cannot be modified by Exchange Online users, until and unless all DG and PFs are moved to Exchange online.
    I'd like to confirm the above part.
    -Tushar Shah

    Hello,
    These migrated users who are owners of the distribution group can't manage it in Microsoft Exchange Online, if you want to manage the distribution group, the distribution group owners need to use on-premises tools for Exchange Server such as the following:
    EMC and EMS, and then we need directory synchronization or other tools to sync the changes to Office 365.
    Even though all DG and PFs are moved to Exchange online, I'm afraid that we still need on-premises tools for Exchange Server :EMC and EMS.
    If you have any feedback on our support, please click
    here
    Cara Chen
    TechNet Community Support

  • Error: You do not have sufficient privileges to perform this operation.

    I dun know is it appropraite to bounce this question in this forum or
    not,nevertheless i am asking cuz i dun know where to ask dis silly question.
    I wana view this link it asks me OTN member user and password ,after
    putting the username and password the aforesaid error is displaying ,from where
    can i get such privileges for this link.
    http://www.oracle.com/gateways/gateway_bundles/faq.htmlKhurram

    This is certainly not the appropriate foruma as it is not monitored by Oracle staff
    Try the Feedback forum
    Community Feedback (No Product Questions)

  • Can not save the attachment you don't have appropriate permission to perform this operation

    i opened outlook.exe file then i have an error like cannot save the attachments you don't have appropriate permission to perform this operation so please solve my error 

    Hi,
    Before this issue occurred, what did you perform in Outlook?
    Based on the error message, it seems like a permission issue. Try to run Outlook as administrator, check if the issue persists.
    Please also try to start Outlook in Safe Mode. Sometimes the 3rd-party add-ins will cause the Outlook startup issue, run Outlook in Safe Mode will disable these add-ins:
    Press Win + R, type "outlook.exe /safe" in the blank box, press Enter.
    If there is no issue starting Outlook in Safe Mode, consider to disable the suspicious add-ins from FILE -> Options -> Add-Ins.
    If the issue still exists, please send me the image of the error message and let me know in detail the steps you performed before this issue occurred. To protect your private information, please send the image to our email address:
    [email protected]
    Regards,
    Melon Chen
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • How do i resolve my itunes from saying " The itunes application could not be opened. You do not have enough access privileges for this operation."

    Everytime i click to go to my itunes, the message "The Itunes application could not be opened. You do not have enough access privileges for this operation." pops up. I have tried my best to fix it by adding another account to my computer and setting that one as the administator and mine as the regular user. When i did that the itunes worked on both, but when i changed my account back to administator and the other account to the regular user my account didnt work but the other one did. I also tried to uninstall and reinstall itunes. This message popped up when i tried to update the itunes to the newest one. And still it wont go away. Can someone help me please. Thanks!

    Are you logged in with administrative rights? Did you check your security software settings? Troubleshooting security software issues

  • Outlook 2010 you don't have appropriate permission to perform this operation.

    I have a user who when they go to File > Open > Open Outlook data file they get an error "you don’t have appropriate permission to perform this operation. " I've completed the following troubleshooting steps: 1) Repaired Office, 2) Created
    a new Windows Profile, 3) Created a new Outlook Profile, 4) Elevated user rights to an admin, 4) Re-installed Office 2010 5) Confirmed there is no GPO or registry setting preventing me from selecting this option. This is on a Windows XP SP3
    machine with Office 2010.

    I have the same problem as CTDHelpdesk and have been unable to find an answer anywhere.  Immediately after choosing "Open Outlook Data File" Outlook 2013 (Win7) moves to the Outlook Today view and issues the popup "You don't have appropriate permission
    to perform this operation".  NB this is before any file selection dialog appears, so it could not relate to any particular data file or location, as none has been selected.  
    I have previously opened these data files in this version of Outlook 2013, and I can't think of anything that might have changed.  In fact, inconveniently, while trying to fix this problem I closed two open PST files that I use frequently and now can't
    reopen them because of this error. 
    I've tried step (c) above.  (a) and (b) don't apply because I can't even select a PST file. I've also tried "Run as Administrator".  

  • "You do not have enough access privileges for this operation" error message on iTunes startup?

    So I cleaned up my Macbook recently, and now I am fearing that I may have deleted something important.
    Whenever I start up iTunes, I am met with the "You do not have enough access privileges for this operation" error message. I have read forums that advised editing the Get Info page for the iTunes library to allow all users and staff to "Read/Write", but doing this has not eliminated this message.
    Any tracks that were not purchased play normally, but purchased tracks now require additional sign-in that I do not believe was required before. Other than this, iTunes performs normally.
    Did I mess something up permanentliy or is there a way to fix this?

    The problem was that my account wasn't authorized. But when I tried to authorize it, I got an error message saying that the authorization could not be completed. Thankfully, THAT was something that Apple Support had previously addressed.
    See http://support.apple.com/kb/ts1277
    Thanks, Apple.

  • Your computer does not have sufficient memory to perform this operation in Captivate

    I am currently new to Captivate 4 and I keep getting this error message "Your computer does not have sufficient memory to perform this operation. Do the following"
    I am trying to publish a large project were I recorded voice discussions over a power point presentation. The project is about 41 slides long and recorded using the video camera option. What can I do to stop getting this error message and publish this project. Help!

    Hi,
    Please check the memory available in your system.
    Also please try the following -
    - Open your Captivate project which you wish to publish
    - Go to menu item Edit > Preferences
    - In the Preferences dialog, go to Project > SWF Size and Quality
    - Uncheck the checkbox Advanced project compression
    Now try publishing the project.
    Regards,
    Mukul

  • TS2529 The error msg "The iPad "User's iPad" cannot be synced.  You do not have enough access privileges for this operation." appears when I connect my ipad to itunes.  How to resolve?

    The error msg "The iPad "User's iPad" cannot be synced.  You do not have enough access privileges for this operation." appears when I connect my ipad to itunes.  How to resolve?

    If you're running Windows, close iTunes, right-click on the iTunes icon and choose Run as Administrator, then try syncing again.

  • Iphone Sync Error. attempting to copy to the disc c:\ you do not have enough access privileges for this operation sync

    Nothing has changed, all i am trying to do is sync my iPhone 3GS to my iTunes (Latest Update).
    After clicking sync it attempts to do so, it gets to the backing up stage, then soon as this completes i get the following 2 errors right after eachother.
    the iphone "name" cannot be synced, you do not have enough access privledges for this operation
    (Click OK)
    Attempting to copy to the disc c:\ you do not have enough access privileges for this operation sync
    Then Sync cancels and nothing is done,
    Cheers
    KaySee

    Got this stupid issue again, however it only happens when im trying to copy music from anywhere to my itunes, it works perfectly fine if i run as administrator however when i do this i am unable to Drag and drop music into itunes. and i dont want a stupid windows 7 popup every time i run itunes asking if i want to run it.

  • HELP! trying to transfer purchases from my iPad but keep getting: "you do not have enough access privileges for this operation" message

    I recently had a hard drive crash and lost almost everything except for what I managed to save on Carbonite. When I got the new hard drive, I updated to Lion and began the laborious process of restoring my files. I think it is up to 40% done.
    Anyway, I went to try to transfer my purchases from my iPad2 (4.3.3) and received the message:  "You do not have enough access privileges for this operation" followed by: "Attempting to copy to Hard drive failed. You do not have enough access priviledges for this operation."
    So, I did a search on the problem and have found similar complaints and some reasonable suggestions, which I attempted without success. So far I have:
    1) Rebooted
    2) Changed all the Permissions on the iPhoto Library and iTunes folders to Read & Write.
    3) Used Disk Utility to Verify & Repair permissions.
    Nothing is working.
    HELP!

    Had the same thing happen to me a few weeks back when I switched computers and migrated.  Here's what worked on my iMac, so maybe it'll work on your iPad, too.  Go to User(your home folder)/Music.  Select/highlight your "Music" folder.  Then do Command-I ("Get Info" from the File menu), click on the padlock icon in the lower right of the new window.  Enter your user password.  Click on your username just above the now-open padlock.  Select "Read & Write" if it's on "Read Only," "Write Only," or "No Access."  Now having your user account with "Read & Write" privileges (it may have been this way already; still do this next step), click on the gear on the bottom-center of that window.  Click on "Apply to all enclosed items."  When the pop-up says "Are you sure?" (or the equivalent), say "yes."  This will grant access privileges to your user account for all the music files inside your music folder--all your iTunes stuff included).  Then you should be good to go.

Maybe you are looking for

  • Render and preview issues with Premiere CC 2014 update

    Rendering issues: Adobe Premiere Pro CC 2014.0.1 Update does not fix" Occasional instance where sequences could never finished rendering" It's been 3 days 3 technicians and still same issue. Everything has been tried except starting over which is not

  • Different pricing procedure in sales order and invoice

    Hi All, I have created a new pricing procedure .When i processed it,in sales order its picking the correct PP. but when I check it in excise invoice,its taking other pricing procedure. Where have i missed the settings.Please help

  • Inserting images in reports

    Hi, I am trying to dynamically insert icons in my template. The icon paths are provided by the XML data definition via the <?Item_icon> field. It doesn’t work if I write a syntax like: <fo:external-graphic src="url(Item_icon)" /> However, the syntax

  • Workflow start step performs Exclusive checkout

    We need to upload data to records that are in workflow and checked out by the workflow start step.  Unfortunately the workflow start step performs an Exclusive checkout of the record which means that the background MDM Impor Server user cannot automa

  • Airport is connected but my wireless devices can not?

    Internet and cable had been down for 8 hours. The cable company had to send signals and 'pings' to reset modem, now our wireless devices can not connect? Airport has green light and reports no problems. iPad keeps searching for service, pc can't conn