How do I run a scheduled task as a specific user (proxy user)

I am a little stumped here.
We have some Taskdefinition that we can schedule so they run every N minutes or once a day and so forth... works fine...
How can I set which user it is supposed to run as?
I dont want it to run as me or any of the other admins, I wan tit to run as a specific proxy user so that it is easy to see which task that did what changes to a user or resource.
I know that the reconcilliations and active syncs can use a proxy account, and I noticed that I can change a tasks user by editing it in debug after it is scheduled.
But I would like to add it in the taskdefinition itself, trying to find info on how to do that....
either I am missing it in the manuals or I am blind...
/dhurgan

1. WARNING: This procedure is for advanced users only. Some third-party software may not work as expected, or may not work at all, if the home folder is moved.
2. Back up all data.
3. Copy your home folder to the desired location, which must be on a volume of type "Mac OS Extended (Journaled)" with file ownership enabled, as shown in the Finder Info dialog. Encryption is optional. The volume must be on a local storage device, not on the network, and it must be mounted automatically at startup — before any user logs in. A disk image will not work.
The name of your home folder is your short user name. Do not rename it. Do not copy the "Users" folder.
5. Select
 ▹ System Preferences ▹ Users & Groups
Click the lock icon and authenticate. Right-click or control-click your name in the account list, and select Advanced options from the popup menu. In the sheet that opens, change the location of the home directory. Log out and log back in.
6. Test. If you have problems, reverse the above steps. If you got this far, you should have no trouble doing that. If everything works as you expect, delete the original home folder.

Similar Messages

  • How to use adapter to assign task to a specific user

    hi all,
    I'm currently trying to configure a task in an approval process so that it is assigned to a specific person according to the organization of the requester. I've written a little method which looks up the suitable username for the given organization name from a file (we might change this later, but this is ok for now) an returns it, created an adapter using this method, but it looks like as if I can't map the Adapter return value to the user field to which the assignment will go.
    I'd love someone to help me out...

    assignRequestToUser
    public void assignRequestToUser(long plRequestKey,
    long plUserKey)
    throws Thor.API.Exceptions.tcAdministratorAlreadyAssignedException,
    Thor.API.Exceptions.tcAPIException,
    Thor.API.Exceptions.tcInvalidUserException,
    Thor.API.Exceptions.tcRequestNotFoundException,
    Thor.API.Exceptions.tcUserNotFoundException,
    tcAPIException
    Assigns an Administrator to a request. This can only be done if the request does not have a current administrator. The user being assigned must be a member of one of the groups assigned with administrative privileges to this request.
    Parameters:
    plRequestKey - The key for the Request.
    plUserKey - The key of the User to assign as an administrator
    Throws:
    tcAdministratorAlreadyAssignedException
    tcAPIException
    tcInvalidUserException
    tcRequestNotFoundException
    tcUserNotFoundException

  • OIM 11g - How to run a schedule task using API

    Hi All,
    May I know how i can run a schedule job in OIM 11g through API.I referred the below link but it is for 9.x version.I need the same functionality in 11g?.
    Schedule Tasks
    Thanks in advance.

    Check this :
    SchedulerService schService = oimClient.getService(SchedulerService.class);
    schService.triggerNow("Second Demo Scheduled Task");
    API Reference :
    void triggerNow(java.lang.String jobName)
    throws SchedulerException,
    SchedulerAccessDeniedException
    Runs the specified job
    Parameters:
    jobName - The job that is to be triggered
    Throws:
    SchedulerException - when an error occurs at the Quartz Engine or scheduler is not running.
    SchedulerAccessDeniedException - This exception will be thrown if access permission for operation is not available to the user

  • CF scheduler erroneously runs ALL scheduled tasks simultaneously !

    Hi everyone,
    Our scheduler.log (attached) shows that ALL 13 tasks have been activated simultaneously at the same time daily, in addition to the correct staggered scheduled times.  Furthermore the name of the thread in the scheduler log is "MAIN", quite different from the names of all correctly initiated schedules.
    I have noted on the net a bug of this sort in previous versions of CF but not in CF8 or 9.
    Has anyone encountered such a situation with a rogue thread starting up all scheduled tasks simultaneously ?
    We would certainly appreciate any help here.
    Cheers Rod
    Extract of our scheduler.log attached !

    Strange, I use the scheduler regularly and have never seen
    this behavior. I think you might be on the right track in emailing
    you upon failures. You may also want to email you upon success as
    well, at least until this problem gets resolved.
    A scheduled task is just another user session as far as your
    application is concerned so you can use specify a CFERROR template.
    You can also use the output from the scheduled template as a log
    and in the cf scheduler admin specify to log the output to a file.
    Hope this helps. Good luck.

  • Assign Task to a specific user based on the value of DDL from the form

    Hello,
    Can any one please advise me on how to assign a task to a specific user based on the value of the drop down list from the form. E.g. user fills the form and before they submit the form they have to select one of the name from the drop down list so the form can go to that person for approval.
    Thanks in advance,
    Han

    I got it works now by using the xpath expression (in workbench) to assign to the selected user from the DDL in the form.

  • My question is in regard to pc to mac migration. How do I migrate information from my pc with specific user account to an existing user account on my mac? I do not want to use multiple mac user accounts.

    My question is in regard to pc to mac migration. How do I migrate information from my pc with specific user account to an existing user account on my mac? I do not want to use multiple mac user accounts.

    https://discussions.apple.com/message/16371308#16371308

  • How can I setup a scheduled task to run a Powershell Script delivered as a Group Policy Preference

    I have a Powershell script I want to run only once when a user logs onto their system. This script would move all the PST files from the Local drive and the Home drive to a folder location within the users profile. I wanted to run this as a Windows 7 Scheduled Task using Group Policy Preferences. How can I get this to happen short of a logon script? I have updated all the machines to WMF 4.0 so could I use a Scheduled Job instead? I wanted to run the script as the logon user but elevated.#Start Outlook and Disconnect attached PST files.
    $Outlook = New-Object -ComObject Outlook.Application
    $namespace = $outlook.getnamespace("MAPI")
    $folder = $namespace.GetDefaultFolder("olFolderInbox")
    $explorer = $folder.GetExplorer()
    $explorer.Display()
    $myArray= @()
    $outlook.Session.Stores | where{ ($_.FilePath -like'*.PST') } | foreach{[array]$myArray+= $_.FilePath}
    for
    ($x=0;$x-le$myArray.length-1;$x++)
    $PSTPath= $myArray[$x]
    $PST= $namespace.Stores | ?{$_.FilePath -like$PSTPath}
    $PSTRoot= $PST.GetRootFolder() #Get Root Folder name of PST
    $PSTFolder= $Namespace.Folders.Item($PSTRoot.Name) #Bind to PST for disconnection
    $Namespace.GetType().InvokeMember('RemoveStore',[System.Reflection.BindingFlags]::InvokeMethod,$null,$Namespace,($PSTFolder)) #Disconnect .PST
    #Move All PST files to the default location while deleting the PST files from their original location.
    $SourceList = ("$env:SystemDrive", "$env:HOMEDRIVE")
    $Destination = ("$env:USERPROFILE\MyOutlookFiles")
    (Get-ChildItem -Path $SourceList -Recurse -Filter *.PST) | Move-Item -Destination $Destination
    #Attach all PST files from the default location.
    Add-type -assembly "Microsoft.Office.Interop.Outlook" | out-null
    $outlook = new-object -comobject outlook.application
    $namespace = $outlook.GetNameSpace("MAPI")
    dir “$env:USERPROFILE\MyOutlookFiles\*.pst” | % { $namespace.AddStore($_.FullName) }

    Mike,
    I do not understand what appears to be a regular expression above. I did add the PowerShell script to the HKCU RunOnce Key as suggested.
    Windows Registry Editor Version 5.00
    C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe -noprofile -sta -WindowStyle Hidden -ExecutionPolicy RemoteSigned -File "C:\scripts\Windows PowerShell\Move-PST.ps1"
     I'm delivering this using Group Policy Preferences. It seems to fail or time out when run because the behavior is different if I run the script from within the PowerShell IDE. I added the parameters to the script and will try it again in the morning.

  • 2008 R2 GPO How to delete the AppleSoftwareUpdate Scheduled Task on Windows 7 clients?

    How do you configure a GPO in AD 2008 R2 SP1 that will delete the AppleSoftwareUpdater Scheduled Task. I can't successfully create one. It gives errors wanting a name and an action, even though I have named it (several variations tried). The scheduled task
    is in the \Apple\AppleSoftwareUpdater folder in Task Scheduler on the local machines. I can't find any good information at all for deleting scheduled tasks. I have read the MS documenation and it is very vague.
    If you know how to configure a GPO in AD 2008 R2 SP1 that will delete the AppleSoftwareUpdate scheduled task on client computers running Windows 7, I would really appreciate a quick answer. Our new computers are being deployed and the image creator
    did not configure this setting.
    I know there are several methods for accomplishing the same thing but I don't want to do it that way unless I have to. Please don't post unless you know.

    Howdie!
    On 29.03.2011 19:40, jcdodsr wrote:
    > How do you configure a GPO in AD 2008 R2 SP1 that will delete the
    > AppleSoftwareUpdater Scheduled Task. I can't successfully create one. It
    > gives errors wanting a name and an action, even though I have named it
    > (several variations tried). The scheduled task is in the
    > \Apple\AppleSoftwareUpdater folder in Task Scheduler on the local
    > machines. I can't find any good information at all for deleting
    > scheduled tasks. I have read the MS documenation and it is very vague.
    So I assume you have tried naming the Scheduled Task just the same way
    the AppleSoftwareUpdater is named on the client and chose "Remove" as an
    Action?
    If you have and it doesn't work, can you turn on Preference logging?
    Cheers,
    Florian
    The views and opinions expressed in my postings do NOT correlate with the ones of my friends, family or my employer.

  • Run a scheduled task on an Event?

    I want to run a PowerShell script that will 1) close outlook and 2) backup the users .PST to their Home drive, which is a network share.   When you look at the Triggers for
    scheduled tasks there is no trigger called "at log off"   I do see "begin the task on an Event".   so I've seen by Googling that the log off event ID can be 4647 or 538 (maybe more?)   But I don't see how
    to set this up.
    My questions are these:
    1.  how do you set this up as a trigger?  What do you enter for Log:  Source:  and Event ID:  ??
    2.  If you can launch a PowerShell script when event ID *user log off* is seen in EventLog is it already too late to copy something up to the network?  Meaning once the Log Off ID is seen in Event Log are all network sessions closed?  
    mqh7

    Hello mqh7,
    What is your current situation?
    Is this issue resolved?
    Best regards,
    Fangzhou CHEN
    Fangzhou CHEN
    TechNet Community Support

  • Run a scheduled task with pop up message

    I have an .hta script that will prompt a user to accept or cancel a shutdown command.  I can make a scheduled task via GPO but the popup box never shows on the users desktop if they are logged in...the computer just shuts down.  Now, I know this
    is because the task is set to run as BUILTIN\System user.  How can I make it so the popup window appears for the user?
    Windows 2008 R2 and Windows 7
    Thanks!

    After MS introduced Session 0 isolation, this is impossible on Vista and
    newer.
    sincerely, Martin
    NO THEY ARE NOT EVIL, if you know what you are doing:
    Good or bad GPOs?
    Wenn meine Antwort hilfreich war, freue ich mich über eine Bewertung! If my answer was helpful, I'm glad about a rating!
    The most under-thought thing Microsoft has done. Because of this Session 0, when in a TS session on a Windows 2008 R2 while using Smart Cards authentification and enabling the setting "Disconnect the session when the card is removed"
    from the reader, every single time you have a message stating that "Your session was disconnected by an administrator" when you remove the card from the reader. You don't have the same result if in a Windows 2003 R2 TS session, where the session simply disconnects
    as it should.
    If someone kindly solve this issue mentionned above, it would be the best thing ever happen to me. Because of this "bug", I cannot use smart card authentification on my Windows 2008 RDS cluster.
    " Never panic before reboot ! "

  • Opening Excel Workbook Fails when run from Scheduled Task on Windows Server 2008 Rw

    Hi,
    I have a little vbs script that instantiates the Excel.Application object and then opens a work book to perform some tasks on it. The script runs fine when run from the command line. When I attempt to run it as a scheduled task (it is supposed to update
    data that is pulled from a SQL Server at regular intervals), it fails with the following error:
    Microsoft Office Excel cannot access the file 'c:\test\SampleWorkbook.xlsm'. There are several possible reasons: .....
    The file does exist. The path reported in the error is correct. The account under which the task is running is the same account I use to run it from the command line. User Account Control is not enabled, and the task is set up to run with highest privileges.
    When I run the same script through the Task Scheduler from a Windows Server 2003 machine, it works without issue.
    I was just wondering if somebody on this forum has run into a similar issue in connection with Windows Server 2008 R2 and figured out what the magic trick is to make it work. I'm sure it is rights related, but I haven't quite figured out what which rights
    are missing.
    Thanks in advance for any advice you may have.

    This is truly killing me ... trying to get it working on Windows Server 2012 without success.
    I desperately need to automate running Excel macros in a "headless" environment, that is non-interactive, non-GUI, etc.
    I can get it to work using Excel.Application COM, either via VBScript or Powershell, successfully on many other Windows systems  in our environment - Windows Server 2008 R2, Windows 7 (32-bit), etc.,  -BUT-
    The two servers we built out for running our automation process are Windows Server 2012 (SE) - and it just refuses to run on the 2012 servers - it gives the messages below from VBScript and PowerShell, respectively- 
    I have tried uninstalling and re-installing several different versions of Microsoft Excel (2007 Standard, 2010 Standard, 2010 Professional Plus, 32-bit vs. 64-bit, etc.), but it makes no difference.
    Would be extremely grateful if any one out there has had any success in running Excel automation on Server 2012 in a non-interactive environment that they could share.
    ( I have tried adding the "%windir%\syswow64\config\systemprofile\desktop"
    folder, which did fix the issue for me when testing on Windows Server 2008 R2, but sadly did not resolve it on Windows Server 2012 )
    [VBScript error msg]
    Z:\TestExcelMacro.vbs(35, 1) Microsoft Office Excel: Microsoft Office Excel cannot
    access the file 'Z:\TestExcelMacro.xlsm'. There are several possible reasons:
    • The file name or path does not exist.
    • The file is being used by another program.
    • The workbook you are trying to save has the same name as a currently open work
    [Powershell error msg]
    Exception calling "Add" with "0" argument(s): "Microsoft Office Excel cannot open or save any more documents because th
    ere is not enough available memory or disk space.
     To make more memory available, close workbooks or programs you no longer need.
     To free disk space, delete files you no longer need from the disk you are saving to."
        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
        + FullyQualifiedErrorId : ComMethodTargetInvocation
    You cannot call a method on a null-valued expression.
        + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
        + FullyQualifiedErrorId : InvokeMethodOnNull

  • Error while running custom schedule task.

    Hello,
    I have created a schedule task, when I am running the task from sysadmin, it wont show any error message.
    In diagnostic log, I got the below error
    [2012-11-29T07:00:18.507-08:00] [oim_server1] [ERROR] [] [oracle.iam.transUI.impl] [tid: OIMQuartzScheduler_Worker-7] [userId: oiminternal] [ecid: 80eeb34d89d5ed80:-1384f0e3:13b4bd4b64a:-8000-0000000000000005,1:29060] [APP: oim#11.1.2.0.0] ADP ClassLoader failed to load: com.cgc.iam.customconnector.ac.ReconAC
    Please help.
    Thanks
    sjit

    Make sure you have included the jar file containing the class - com.cgc.iam.customconnector.ac.ReconAC in OIM classpath.

  • Question on Cimsession code running as Schedule task

    #I have a scheduled task running that calls a ps1 file to collect zone data. The task is set to run whether I'm logged in or not. I noticed that if I add -Cimsession to the code, it will only collect the data when I'm logged onto the machine where the Scheduled
    task is running from.
    Get-DnsServerStatistics -CimSession (Get-Content c:\serverlist.txt) -ZoneName test.local | Out-File -Append test.local.csv
    #However, when I change the code from -Cimsession to foreach, it collects data even if I'm not logged in. Is this an expected behaviour?
    foreach ($server in Get-Content c:\serverlist.txt) { Get-DnsServerStatistics -ComputerName $server -ZoneName test.local | Out-File -Append test.local.csv }
    99upgrade

    It is a sched task issue and not a scripting issue.  Post in the windows forum for guidance on creating tasks.
    Run when logged on is an option.  Uncheck it.
    ¯\_(ツ)_/¯

  • I'm trying to run a scheduled task as system, but it will not run my powershell script

    I have a powershell script I created that uses credentials within the script to connect to a network resource to copy files every night. It works fine if I just run the script manually. but I need to run this as a scheduled task, preferably as system. I
    have checked "run with highest privileges" still no luck. 
    If I change the user to my account it works fine, but I need it to work without the use of my account. Is this some kind of security policy problem or what would cause this? I figure having the credentials within the script would work, but not so much.
    Paul Arbogast

    I have a powershell script I created that uses credentials within the script to connect to a network resource to copy files every night. It works fine if I just run the script manually. but I need to run this as a scheduled task, preferably as system. I
    have checked "run with highest privileges" still no luck. 
    If I change the user to my account it works fine, but I need it to work without the use of my account. Is this some kind of security policy problem or what would cause this? I figure having the credentials within the script would work, but not so much.
    Paul Arbogast
    Is the Execution Policy set for the script?
    With this information it sounds to be.....
    Take a look @
    http://technet.microsoft.com/en-us/library/ee176961.aspx
    Best Wishes,

  • How can I delete local schedule tasks, if they do not show up in the left ARD pain

    In ARD you can schedule task on the local machine.
    Usually you can see the scheduled task in the left pain of the main window.
    I deleated some schedules tasks, but the tasks continue excute every morning.
    Is the a way to find these invisable scheduled tasks and remove them.
    I would be happy to know if a data base needs to be edited or a file deleated
    Cheers
    Gifford

    what dose the invisible task do?

Maybe you are looking for