Issues with Backup-GPO Scheduled Task as a non-admin account

I'm having an issue trying to get a daily backup of domain GPO's from a non-administrative account. I'm using Powershell 2.0, the Backup-GPO cmdlet runs fine as a standard user, but when I run the same cmdlet with the same user, but with a scheduled task,
the backup does not produce valid output. The command I run is:
[batch file called by scheduled task]
powershell.exe d:\loj\psps.ps1
[psps.ps1]
import-module grouppolicy
backup-gpo -all -path d:\loj
The specific problem is, all other files created by the backup are created successfully except the 'gpreport.xml' file found directly under the folder identified by the backup ID. All of the subdirectories under DomainSysvol\GPO contain xml files with the
appropriate data, and the Backup.xml and bkupInfo.xml files are also created normally. The manifest.xml file is also created normally in the root directory.
The gpreport.xml file however is malformed. It contains only two bytes of data, FF FE.
The reason this is a problem is that the xml in the gpreport file can be used to restore whether the GPO is 'enforced' and also contains link data. Using this when restoring the GPO's makes the process a lot less painful.
Running the batch file while logged in interactively as the user removes the problem, without making them an administrator.
I've been using a test domain to investigate this, I tried adding the user in question to every local group except administrators, gave it full control to the destination folder for backups, the powershell executable, batch and ps1 files. Resultant set of
policy access has been granted (rsop.msc run-as the user tested fine). The scheduled task stores credentials (needs to run when the user is not already logged in) and runs with the highest privileges.
The only possibly related error I could find in the logs was this:
This error goes away if enough group memberships are added to the account or alternatively if this string is added to the security descriptor for the LanManServer service: (A;;GA;;;S-1-5-21-1191697313-1384311512-914143962-35706), which just adds
generic all to this account by referencing the SID. However, despite the fact that the error is no longer raised, the issue with the gpreport.xml file remains.
Does anyone have any ideas on why this is happening? At this point my best guess is something UAC related, since the gpreport.xml file is created like normal if the user is made an administrator on the local machine (I'd rather not do that in production).

Hi Fergubru,
Thanks for your posting.
To troubleshoot Task scheduled that a task ran, but the program that should have been executed did not run correctly.
As AZ said above, some programs require elevated privileges to run correctly.  If a task is running a program that requires elevated privileges, ensure that the task runs with the highest privileges. You can set a task to run with the highest privileges
by changing the task's security options on the General tab of the Task Properties dialog box.
If a task program does not run correctly, check the history of the task for errors. For more information, see
View Task Properties and History.
For the Event ID 4656, this is an Audit log, This event will be Audit Success or Audit Failure depending on whether the user account under which the account is running has the requested permissions or not. 
For more detailed information about Event ID 4656, please refer to this article:
http://www.ultimatewindowssecurity.com/securitylog/encyclopedia/event.aspx?eventid=4656
I hope this helps.
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

  • Issue with backup NCS via NFS (Cisco Prime NCS 1.2.0)

    Hello,
    Does someone have issue with backup NCS via externally mounted location (NFS)?
    I have Cisco Prime NCS 1.2.0 and tried backup it to external resources, but I have issue with my free space:
    NCS/admin# backup ncs repository backup_nfs
    % Creating backup with timestamped filename: ncs-130131-0534.tar.gpg
    INFO : Cannot configure the backup directory size settings as the free space available is less than the current database size.
    You do not have enough disk space available in your repository to complete this backup.
    DB size is 25 GB
    Available size is 12 GB
    Please refer to the command reference guide for NCS and look at the /backup-staging-url/ command reference to setup the backup repository on an externally mounted location
      Stage 5 of 7: Building backup file ...
      -- complete.
      Stage 6 of 7: Encrypting backup file ...
      -- complete.
      Stage 7 of 7: Transferring backup file ...
      -- complete.
    I have tried to add additional space and use command backup-staging-url (my configuration: backup-staging-url nfs://server2008:/nfs), but it didn't help me.
    NFS share works perfect. I have checked it via NFS repository:
    repository backup_nfs
      url nfs://server2008:/nfs
    +++++++++++++++++++++++++++++++++++++++
    NCS/admin# show repository backup_nfs
    NCS-130130-1135.tar.gpg
    NCS-130130-1137.tar.gpg
    NCS-130130-1157.tar.gpg
    NCS-130130-1158.tar.gpg
    test-130130-1210.tar.gz
    Everytime when I try create backup I receive error message "You do not have enough disk space available in your repository to complete this backup".
    Does someone know how can I backup NCS system?
    Thank you

    How much space is availabe on that NFS mount point? It looks like to me from the error message that there is only 12 GB.... 
    The backup-staging-url is just for a space used to stage the backup before it is written-----

  • How to run admin tasks with non-admin account ?

    Hello,
    The title says it all: I want to allow some non-administrative accounts to run admin tasks which must be run as root.
    A solution would be to use 'sudo' and give rights to those non-admin accounts on the binaries used by the tasks. But I notably use 'chmod' and 'chown' in those tasks, and I would not want to give to non-admin accounts rights to run those commands as root outside the admin task scripts. But from my understanding of 'sudo', if I do it, non-admin accounts will be able to use chmod and chown outside the scripts. Is this right ?
    The sid bit could have been a solution I think, but sadly it is not supported on Mac OSX 10.5.
    Thanks

    I am trying to use the sudo route add command in a script, which should run as part of a vpn connection config file. I get an unable to run script error in the log.
    I searched and found the following older discussion
    http://discussions.apple.com/thread.jspa?messageID=1986808
    I tried that but I get a syntax error when trying to save the sudoers file I chose to save anyway.
    Tried to run the command from the terminal and got the following error
    postdrop warning: unable to look up public/pickup:no such file or directory.
    Can you give me an example of your sudoers file with the correct syntax etc.
    Thanx

  • Screen sharing to OS X Lion Server with non-admin account

    I have set up a Lion Server with one admin (in addition to the root user) and several non-admin normal accounts. In Server.app, I have enabled remote login with ssh, and remote management via screen sharing.  I am unable to use Screen Sharing to connect to the server from the non-admin accounts, but able to use the admin account. I've read that it is only enabled for admin users, but need to access from non-admin accounts, and I can't add these accounts to the admin group. Is there a way to do this with Workgroup Manager? I tried changing the Remote Management settings in System Preferences by adding the non-admin, but when selecting 'Observe' and 'Control' in the options for the user, they are not saved.

    I resolved this issue by deselecting the "Enable screen sharing and remote management" in Server.app and going to System Preferences, Sharing Preferences, Screen Sharing, and allowing access for "All Users".  If you have some users you want to allow VNC, you can create a group, add the allowed users to the group, and add the group under "Only these users".

  • System PATH environment variable issue when user log off and log in or switch from admin to non-admin account

    Hi,
    Problem Description:
    After installing my new product version, when user does log-off and log in again into admin account
    or switch from admin account to non-admin account, PATH environment variable shows incorrect path of my product (previous product version’s path) using command prompt.
    It seems windows refresh issue during session changes (log off and log in / switch from Admin to
    Non-admin account).
    Why PATH environment variable is not refresh immediately after log off and log in again or Switch
    from admin to non-admin mode?. 
    Please see my thread for more details http://social.msdn.microsoft.com/Forums/vstudio/en-US/445ab42c-bdff-405a-8d53-558e1b6c7d34/path-environment-variable-issue-when-user-logoff-and-login-or-switch-from-admin-to-nonadmin?forum=windowsgeneraldevelopmentissues
    Also submitted bug for this in connect.microsoft.com portal.In that it has lots of information
    like problem statement, Reproduction steps and Expected Results.
    Bug ID: 871782
    Could you please any body help me for this?. your support will be appreciated.
    Thanks,
    Marichamy

    Why PATH environment variable is not refresh immediately after log off and log in again or Switch
    from admin to non-admin mode?. 
    I wouldn't have any expectation of what you are doing to work the way you expect.  E.g. why is the %ABC% being replaced at all?  There is some help about this ambiguous scenario in the cmd help...
    /V:ON Enable delayed environment variable expansion using ! as the
    delimiter. For example, /V:ON would allow !var! to expand the
    variable var at execution time. The var syntax expands variables
    at input time, which is quite a different thing when inside of a FOR
    loop.
    /V:OFF Disable delayed environment expansion.
    So, what's the setting for the /V:  switch that your users would be using?  Perhaps you should be using the ! instead of the % for your ABC variable?
    Oh.  There's more below where I found that...
    Delayed environment variable expansion is NOT enabled by default. You
    can enable or disable delayed environment variable expansion for a
    particular invocation of CMD.EXE with the /V:ON or /V:OFF switch. You
    can enable or disable delayed expansion for all invocations of CMD.EXE on a
    machine and/or user logon session by setting either or both of the
    following REG_DWORD values in the registry using REGEDIT.EXE:
    HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\DelayedExpansion
    and/or
    HKEY_CURRENT_USER\Software\Microsoft\Command Processor\DelayedExpansion
    to either 0x1 or 0x0. The user specific setting takes precedence over
    the machine setting. The command line switches take precedence over the
    registry settings.
    In a batch file the SETLOCAL ENABLEDELAYEDEXPANSION or DISABLEDELAYEDEXPANSION
    arguments takes precedence over the /V:ON or /V:OFF switch. See SETLOCAL /?
    for details.
    If delayed environment variable expansion is enabled, then the exclamation
    character can be used to substitute the value of an environment variable
    at execution time.
     So, I guess the essence of your "bug" will boil down to whether you
    need the feature to get the result you want and the
    truth of that first sentence but it certainly looks like a "can of worms" to me.   ; )
    HTH
    Robert Aldwinckle

  • Possible conflict with iTunes 7 and non-admin account

    I've tried burning cd's in my usual windows account (limited) and it comes up with the error message "disc burner or software not found", but when I log into my admin account and try and burn an mp3 then it burns just fine. I wonder if they changed the way version 7 burns cd's...
    Any solutuions or fixes?

    I'm not really looking for a way to roll it back. I was just hoping to find a fix for the current version, or make them aware that there is a problem with running it in a non-admin account.
    Thanks for the info though!

  • Problems with libraries and plugins - non admin account

    I''ve got a couple of problems with a fresh install of photoshop on my windows Windows 7 64 bits system.
    1. Libraries panel does not work. It displays the following error and interaction is not possible:
    2. 3rd party plugins would load their content.
    3. In the Creative Cloud Application the apps tab would load and displays the "download error" message:
    The funny thing is that all the above errors don't occur on the loacl admin account. So I think this might be a permission problem. I think the most easy sollution would be to work under the admin account, but sadly that's no option (company policy). I am able to extent the rights of the useraccount I work on, but I don't know in wich folders the software needs write permissions. The both Adobe folders in program files and program files (x86) I already changed to full acces for all users. Can someone please help me?

    Problems with libraries and plugins - non admin account https://forums.adobe.com/people/pippyn%20stortelder
    This is a permissions Error.  The other accounts on the computer do have permissions to use / change the administrator settings of these particular items.
    There are two ways you can fix this. 1.) contact the admin of the system and let him know your accounts need read access to these items
    My Preferred method is:
    If you are on a Windows Account, then you can choose those items to run in Administrator mode for all people.  ( win7,64bit )
    Right click the infinity system for creative cloud (creative cloud icon - you would normally click to start the program. (not the one in your service tray, but the one in your menu area with the square red on it.
    choose/click on properties
    choose/click compatibility (tab at the top of the window)
    Last boxed option on this screen is: Run Program As Administrator,  Click that check box.
    Click on  Change Settings for All Users
    in the window that comes up again choose, put an X in the box-  the last option, Run Program As Administrator - Click Apply
    Click OK
    Click OK and the opened preferences window should now be closed.
    You should be able to simply invoke the Cloud app now. But you might want to reboot to safe.
    Depending on the installation methods used for your add-ons, you may have to perform this same process for all add-ins.  I believe that would depend on which account, first installed the add-on and what level of permissions they have.
    Good Luck
    ~elaine.

  • Apple Remote won't work with Non-admin account :-(

    Hi all,
    i have a Macbook (OS version 10.5.4). Earlier there was only one account on this laptop, and i was using it as an administrator. A few days ago i decided to convert that account to a regular (non-admin) one, and created a separate admin-only account. When i tried using my Apple Remote in the non-admin account, it wouldn't work at all ! So i tried it in the admin account, and i was able to use it and paired it with this macbook.
    But on logging back into the regular account, it has stopped working again (even though System Preferences>Security says the macbook is paired with a remote). Please help!! It would be especially helpful if this could be fixed without having to create & migrate to a whole new account, etc... i'm open to command-line solutions [ that won't crash the machine ]
    Thanks a million !
    ..meghana

    Never mind. i logged out of the non-admin account and into the admin account, unpaired and re-paired the remote. Then logged back into the non-admin account, and voilà! Its magic i tell you! hope this helps any other people who have the same problem.

  • Windows Server 2008 R2 GPO schedule task for copying folders

    Dear spicers,I have spend many hours trying to get my gpo working to sync a fewshared networkfolders with office templates to users default office 2010 template location.I created a user conf gpo: preferences\control panel settings\schedule tasks\Action: UpdateName: Mirror FoldersRun: \\dfsname\netlogon\scrips\RobocopyScript.cmdMarked: Enable (scedule task runs at specific time)schedule taks: At system startup Starttime: 8:00:00Advanced: everything unmarkedTab settings: everything unmarkedTab common: Marked Run in logged-on users....Script: robocopy "\\dfslocation\public\Prog\Documentsjablonen\Office" "C:\users\%username%\AppData\Roaming\Microsoft\Sjablonen" /MIR /R:10 /W:30 Is there anyone who is able to help me out please. I have read many topics on the internet etc. When I run the script local it is working.Thanks in advance.Kind...
    This topic first appeared in the Spiceworks Community

    Thank you for your help with this but I was able to get it resolved using these steps.
    Here is the fix that worked for me.
    Start > Run > regedit
    Navigate to HKLM\SOFTWARE\MICROSOFT\RPC\INTERNET 
    Export this key to back it up first, then delete the whole Internet key (and it's sub-keys). 
    Reboot your system
    Task Scheduler should now work.
     https://social.technet.microsoft.com/Forums/windows/en-US/0c438376-1486-4ae4-9847-2de7a8767f27/task-scheduler-service-has-encountered-rpc-initialization-error-in?forum=itprovistasp

  • Create Scheduled Task in GPOPref using System account - issue

    Hi all,
    I'm trying to create a scheduled task (computer configuration) in GPOPref which is executed by the system account. Creating locally and running the task manually is running without issues.
    When I'm creating the task in a GPOPref using a domain account the task is installed on the targetsystem. When just changeing the account to System and run gpupdate the task is not deployed.
    Any hints or workaround? Thanks for you help in advance.
    Regards,
    Andreas

    > When I'm creating the task in a GPOPref using a domain account the task
    > is installed on the targetsystem. When just changeing the account to
    > System and run gpupdate the task is not deployed.
    Please post the XML of your task in the state that is not working (right
    click - all tasks - display xml).
    And as a hint: There's a german GP forum too -
    https://social.technet.microsoft.com/Forums/de-DE/home?forum=gruppenrichtliniende
    Martin
    Mal ein
    GUTES Buch über GPOs lesen?
    NO THEY ARE NOT EVIL, if you know what you are doing:
    Good or bad GPOs?
    And if IT bothers me - coke bottle design refreshment :))

  • Issues with backup

    I'm having issues with the backup function.  I can get started but somewhere during the backup, everything completely locks up and I have to reboot the computer so the backup is never completed, I deinstalled iTUNES and reinstalled, that'd didn't help. I restored the iPAD software and tried to restore using my past backup, that didn't help either.  Any suggestions??  I'm getting desperate

    Hi,
    For error 0x80070002 error we may use the workaround mentioned in this KB article (scenario 2), follow the instructions and modify the video folder.
    Error code 0x8100002F and or error code 0x80070002 when you back up files in Windows 7
    As we have sheduled the backup task, we could take a look in
    task sheduler to verify if a backup action is occurred.
    For the backup folder stayed on March 8 is the date that the the root folder modified, we may open the root folder and take a check on the date modified volume in Windows explorer for the new modifications.
    For the last backup displays never, this may be caused by the error code here. Take a try to add the video folder mentioned in the error and then check the status of the last backup.
    Hope this may help
    Best regards
    Michael Shao
    TechNet Community Support

  • Font engine issues in non-admin account

    I have an account with administrator rights (a privileged, or -pr account) for installing software and a non-privilged account for everyday use, on my Windows XP computer. I am having the following font issues with Illustrator CS3.<br /><br />When using the non-pr account, a number of fonts are unavailable, e.g. <Symbol> (Adobe type 1) and <Symbol> (Open Type). Also, names for available fonts are not forced to display in English, despite my having checked the box for EDIT>PREFERENCES>TYPE_Show_Font_Names_in_English. For example, the name of the Symbol_Italic font is displayed in Greek letters.<br /><br />When I log on as the -pr user, the font engine works fine. Both Symbol fonts are available, and all font names are displayed in English.<br /><br />The font engine in InDesign CS3 works fine from either account, so this seems to be a bug in Illustrator.

    Did some research on this the other day, to see if i could get Software Update to run in the middle of the night like Windows can do.
    Software Update requires Root powers, so when you give it your Admin Password your opening a sudo window of 5 minutes for it to complete it's task.
    Software Update doesn't check for updates while in Standard User becuase Standard Users supposedly can't do anything about it anyway and it would be a obvious distraction. "Mommy the computer....!!!"
    Apple should have a option in Software update preferences to let certain Standard Users know a Software Update is ready just for the purpose your explaining. I run in Standard as well.
    I ran some Software Update commands via the Terminal for a launchd just to see what I could do.
    Apprantly one can DOWNLOAD updates automatically with launchd in Admin, but not install them because of the need for sudo.
    I just misssed a perfect opoortunity (todays update) to run a launchd to do automatic downloads of Software update, then see how to go about installing them afterwards. So fsck me, I'll have to wait now. (unless i use my other machine! ahhh!!)
    Anyway the program you want is this little gem: Lingon 
    it's on Sourceforge (grab the image)
    Ok so that takes care of the Software update downloads (man softwareupdate in Terminal for commands)
    /usr/sbin/softwareupdate --download --all
    Will do the automatic downloads, now it's just a script away to let you know ( a nice pop up window) that you have something in your folder where the Software Update just downloaded into.
    That's the next question is where that is and how to run it.

  • Photoshop 7 & Illustrator 10 Not openining with non-admin account

    Couldn't find anywhere else apropriate to post.
    Built 3 brand new installs on 2 different mirrored G4s now.
    When I try to open Adobe Photoshop 7 or Illustrator 10, it goes through the loading process, and when it's about to open (Initializing.......), it quits. (Image Ready 7 opens ok though!)
    I'm sure it's down to a permissions problem, as when admin or root login, they both open. Also if I create a new user with admin priv. this works too, but then if I take away the admin priv. for the local user, the apps will then not open!
    It's a Powermac G4 with 200+GB free and 1.25GB Ram running 10.3.9 with all latest updates etc.
    I have also scroured Adobes website, and the only relevent thing I could find was a patch for CS, which I installed as a last resort, which didn't work anyway.
    Don't know if this is related, but I have a similar issue with MS Word, Excel, but not powerpoint!
    Any help appreciated!
    Mike
    EDIT - Just thought i'd update. I think I have found the problem. The OS was automatically adding a printer to the printer list, which is located on our network (HP Laserjet 2550 Colour - Network IP Printer).
    When I looked at consol error logs for photoshop, it was also throwing out a printer error.
    I uninstalled the printer, and all is fine!
    Anyone heard of this problem?

    Answered in first post

  • Java.lang.NullPointerException with non admin account in firefox

    Hi everybody. I'm new to java and after trying installing JDK 6 and Netbeans I got this exception everytime I visit a site that use java technology :
    java.lang.NullPointerException
    at com.sun.deploy.net.proxy.DynamicProxyManager.reset(Unknown Source)
    at com.sun.deploy.net.proxy.DeployProxySelector.reset(Unknown Source)
    at sun.plugin.AppletViewer.initEnvironment(Unknown Source)
    This happens only with firefox (IE and Opera works well) and only if I log in a Windows non administrative account.
    One month ago everything worked well with firefox. I tried to uninstall JDK anr JRE 6 and reinstall 1.5.11 as well as reinstall firefox. I tried even Gran Paradiso Alpha2, but I got the same exception.
    I'm using winxp SP2
    What can I do ? Please help me !
    Thanks by advance
    Maury

    hi,
    name of the class file is HTTPTransfer.java only,but i am mistaken
    NPE getting at 329 , that is in the if condition at
    if ((t != null) && (pi != null) && (pi.length > 0))
    proxyhost = pi[0].getHost();
    proxyport = pi[0].getPort();
    i tried with pi[] , then also i am getting NPE , i am really sorry for that ....
    i did'nt noticed
    stacktrac:
    Jun 29, 2007 5:41:28 PM com.atonesoftware.web.applet.upload.client.MApplet <init>
    INFO: BatchUpload 1.7c Build Alpha
    java.lang.NullPointerException
         at com.atonesoftware.web.applet.transfer.client.http.HTTPTransfer.autoDetectProxy(HTTPTransfer.java:329)
         at com.atonesoftware.web.applet.transfer.client.http.HTTPTransfer.init(HTTPTransfer.java:117)
         at com.atonesoftware.web.applet.transfer.client.http.HTTPUploadTransfer.init(HTTPUploadTransfer.java:90)
         at com.atonesoftware.web.applet.transfer.client.util.Conf.getTransferController(Conf.java:644)
         at com.atonesoftware.web.applet.upload.client.MApplet.init(MApplet.java:86)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)

  • Using Runas /savedcred with UAC with a non admin account

    Perhaps ths should be posted in the sysinternals section but im trying to use this one as we are on a Windows 2008R2 server so feel free to point me to another board if thats the case.
    The Problem:
    We are trying to script access to a program that requires admin priviliges admin for a non admin user.
    I was utilizing the method outlined here :
    http://www.sevenforums.com/tutorials/193743-elevated-program-shortcut-create-standard-user.html
    However we have the following error comes back from runas..
    RUNAS ERROR Unable to run "D:\program files(x86)\blah.exe" error 87 the parameter is incorrect.
    command string looks like this :
    runas /user:Brink-PC\Administrator /savecred "C:\Program Files\CCleaner\CCleaner.exe"
    No errors in the security or application logs...
    Many thanks in advance for assistance
    J

    Hi,
    Thanks for your posting.
    If i understand you correctly, you want to access a program with admin privileges.
    Maybe you could try this:
    http://technet.microsoft.com/en-us/magazine/ff431742.aspx
    If you have any updates, please feel free to let me know.
    Regards.
    If you have any feedback on our support, please click
    here
    Vivian Wang

Maybe you are looking for