Log on as batch task with User Profile Disks

We have a Windows Server 2012 R2 Remote Desktop deployment, where we use user profile disks stored on a central file server.
We are trying to run a scheduled tasks as a user, while they are logged off.
When the tasks runs, I can see an event in event viewer that says it was unable to load the user's profile, and as such, the Excel add in that is part of the tasks is not enabled, and as such the tasks fails to complete successfully.
Is this a limitation of the user profile disks? Can the server load the user profile disk even without the user logging in interactively?
Cheers, Eds

Hi Amy,
The task itself isn't failing, but the action the task executes fails, because it has logged in with a temporary profile.
The last run time of the task was 14/04/2015 10:49:00, completing at 10:49:02. At this time, there is an event in the event viewer:
As the tasks is logging in with a temporary profile, the Excel add-ins that user has are not loaded, and the action fails. This is the log from the application itself that is trying to run:
The report 'PATH_TO_SPREADSHEET.xlsx' failed to run with the following error:  'Cannot run the macro 'JetMenu'. The macro may not be available in this workbook or all macros may be disabled.'.
The macro it is referring to is an Excel reporting add-in.
I think what I need to happen, is for the server to mount the users User Profile Disk, so that it does not load a temporary profile.
Many thanks
Eds

Similar Messages

  • App-V 5.0 SP2 RDS Client with hotfix 2 breaks frequently on Windows 2012R2 with User Profile Disks enabled

    Hi All,
    I am at my wit's end trying to troubleshoot this, so any help would be greatly appreciated.
    We are having serious stability issues with App-V 5.0 SP2 RDS in our environment with User Profile Disks enabled.
    We have applied the latest hotfix but the issues persist.
    The main problems are:
    1. Periodically the client seems to become corrupted and all applications stop working for all users. All applications including the official Microsoft Office 2013 ones - not just our packages.
    The symptoms are the same as if I change the App-V Client Service account to run under a user account instead of SYSTEM, so it suggests a file access issue. The log files also hint at this, and one of there errors is similar to this:
    The virtual application 'C:\Users\rds.user9\AppData\Local\Microsoft\AppV\Client\Integration\A3EF9C01-C0E9-4AC5-B21F-DB9B1D2F700C\Root\Mindjet\MindManager 14\MindManager.exe' could not be started because the
    App-V Subsystem 'Virtual Filesystem' could not be initialized. {error: 0x6740090A-0x20003}
    Once this problem occurs the only way I have found to fix it is to either completely remove and reinstall the client, or (perhaps this is the big clue) rename the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\AppV\MAV\Configuration\Volumes , unpublish
    an application, then republish said application.
    I don't even think it matters which application gets published. The point seems to be that this 'Volumes' key gets rewritten.
    I am highly suspicious that our issues are caused by User Profile disks in our RDS environment, as when I disable them on our staging collection all of these issues seem to disappear.
    I have made sure all of the servers have permissions on the share (folder and share permissions). It doesn't seem to make a difference.
    2.  Some application fail completely with User Profile Disks enabled. If we switch the setting from "Store all settings and data on the user profile disk" to "Store Only the following folders" there seems to be some improvement,
    in that at least one application that fails on the other setting starts to work.
    3. We have already set that NTFS 8 dot 3 reg fix some time ago.
    SOS!
    We have gone live this week (not my call) and this is having disasterous consequences. :(
    Thanks in advance,
    John

    Hi,
    Thanks for your response.
    I did try this a while ago without success, although it may be worth revisiting with SP2 applied.
    I have left this client now.
    I left them a Powershell script that deletes HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\AppV\MAV\Configuration\Volumes
    and triggers an Unpublish/Publish of an application we have deployed to all of the servers.
    This seems to work, but a fix would be better than a workaround.
    Not really my problem now though - I did my best.
    Thanks,
    John

  • User Profile Disks with Windows Search

    We have 2 RDS Servers (2012R2) and work With User Profile Disks
    We use outlook cached mode (Outlook 2013 SP1) because the link to our head office is to slow
    The problem is that the outlook search isn't working properly.
    Every time the users logs on, search indexes are recreated
    This proces never finishes because the server is under a constant load, therefore search never works as it should.
    In eventvwr, we see this error alot:
    Crawl could not be completed on content source <winrt://{S-1-5-21-xxxxxxxxxxxx}/>.
    Context:  Application, SystemIndex Catalog
    Details:
    The parameter is incorrect.  (HRESULT : 0x80070057) (0x80070057)

    Hi,
    I have been searching for a solution for this issue in a client environment for a few months now.
    Our environment is similar, RDS on Server 2012 R2 with Outlook in cached mode and the search service enabled However we are using Outlook 2010.
    I disagree that the issue should be marked as resolved.
    I believe you are experiencing the same issue as I and these 2 other people:
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/e6d4e3e6-37ef-488c-86ac-d135e3f2353f/windows-search-index-and-user-profile-disks?forum=winserverTS
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/dc6328e9-96dc-4377-a23f-0fb7020e5daa/indexing-user-profile-disk-on-a-file-server-or-on-the-rdsh-server?forum=winserverTS
    When users logon, the search service begins indexing and if the user is logged on long enough it completes user files, including the OST.
    However when the user logs off, Windows deletes the search data as it believes the profile has been deleted. The profile has not been deleted, the profile disk (UPD) has merely been dismounted.
    We really need a resolution for this, this shouldn't be happening. The profiles are not getting deleted and the index is getting deleted for the wrong reason.
    Furthermore if this issue is not fixable, then it will delay our push to move clients to Office 365. If we cannot index offline email on RDS, then we simply cannot move our Exchange servers offsite.
    Unfortunately no resolution has been provided from Microsoft as yet to any of these 3 people who requested support.
    Can anyone else shed any light on this?
    Thanks, Nigel

  • Windows Server 2012 R2 RDS + User profile Disks + App-V = Explorer.exe crashing all of the time

    I have built a new RDS farm on Windows Server 2012 R2 with two Session Hosts and a combined Connect Broker/Web Access server. I had the farm up and running with User Profile Disks and all seemed OK. However, as soon as I installed the App-V 5.0 SP2 RDS
    client on the session hosts, the explorer.exe process started crashing for any user logging in via the Web Access site. The process crashes and restarts every five to ten seconds. It's the same for administrators. If they log in via Web Access explorer.exe
    crashes, but if they RDP directly to one of the session hosts explorer.exe is fine. If I reboot the session hosts, then the first user to log in via Web Access has a stable desktop session (and appears to have a new profile as well). However, if that user
    logs out and back in again, explorer.exe starts crashing again. The only applications I have packaged at the moment are Office 2013 and Firefox.
    I tried disabling User Profile Disks, but this caused a whole bunch of other problems and I eventually lost the ability to log in at all via Web Access (errors about the user profile service). As this is a small pre-production environment I completed scrapped
    all of the servers and rebuilt from scratch. Again, everything appeared fine until I installed the App-V client, then explorer.exe started crashing repeatedly for all users.
    Has anyone come across this issue before? I have tried installing the App-V 5.0 SP2 Hotfix Package 2, but this didn't help. I have read in a few forums that App-V doesn't work very well with User Profile Desks, but I have not heard of this particular issue.
    Similarly, SP2 seems to have a lot of problems, so I am going to try removing App-V RDp Client SP2 and installing SP1. I ahev also deleted User Profile Disks for the test users to recreate their profiles, but this didn't help either.
    Any other suggestions welcome!

    I forgot to include the application event log entry for explorer.exe crashing:
    Faulting application name: explorer.exe, version: 6.3.9600.17039, time stamp: 0x53156588
    Faulting module name: KERNELBASE.dll, version: 6.3.9600.17055, time stamp: 0x532954fb
    Exception code: 0xc06d007e
    Fault offset: 0x0000000000005bf8
    Faulting process id: 0xae8
    Faulting application start time: 0x01cfab3a273787fd
    Faulting application path: C:\Windows\explorer.exe
    Faulting module path: C:\Windows\system32\KERNELBASE.dll
    Report Id: 69210d77-172d-11e4-80c6-0050560102d1
    Faulting package full name: 

  • User Profile Disks - User registry data

    In Server 2012 standard (not R2)
     using RD
     in Session Collection
     and in the "User Profile Disks" tab
     I have ticked “Enable user profile disks”
    If I select the second radar-button
    "Store only the following folders on the user profile disk"
    What is the effect of ticking "User registry data" ?
    What is the result in the template.vhdx ?
    and when a new user logs in
    Is all the user registry "moved" to the UPD user .vhdx file where it is then maintained
    or
    Is a folder re-direction preserved in the UPD and the registry data still updated in its original location ?

    Hi,
    Thank you for your posting in Windows Server Forum.
    During first logon, a virtual disk (VHDX) is created from a template disk. This VHDX is attached to the virtual machine or RD Session Host server that the user is logging on to. The profile service is then notified to use this VHDX as the location for the user’s
    profile. When the user logs off, the VHDX is then detached from the virtual machine.
    By default, the entire user’s profile is stored on the user profile disk. This includes the Documents folder, the user’s registry hive (holds application and Windows settings), and much more.
    On subsequent logons to the collection, the VHDX is remounted to whatever virtual machine or RD Session Host server the user is logging on to. The user then has access to everything in his or her profile, even if this is a different virtual machine, or if the
    virtual machine has been rolled back to a clean state between logons.
    For more information, please check beneath article.
    Easier User Data Management with User Profile Disks in Windows Server 2012
    http://blogs.msdn.com/b/rds/archive/2012/11/13/easier-user-data-management-with-user-profile-disks-in-windows-server-2012.aspx
    Working with User Profile Disks on Session-Based Desktop Deployments
    http://www.virtualizationadmin.com/articles-tutorials/vdi-articles/general/working-with-user-profile-disks-on-session-based-desktop-deployments.html
    Hope it helps!
    Thanks,
    Dharmesh

  • Server 2012 RDS - User Profile Disks

    Hello,
    I'm implementing Server 2012 RDS session-based.
    Can I increase the limit of User Profile Disk after it is initially set?
    Is it ok that my Admin user has a User Profile Disk i.e. no local profile on the server as they did previously.
    Are PSTs supported on User Profile Disks - previously PSTs were unsupported on network share - User Profile Disks are on network share.
    I had an issue where a UPD was created for a user - I then delete the UPD. I then logged in as the user (a domain admin) and expected a local profile to be created - this didn't happen. A temporary profile was created instead. This was unexpected.

    Hi Gary,
    You can try to change the size of User Profile Disk by mounting .Vhdx file. Please refer below thread for information.
    Resize User Profile Disks
    As per my research, i can suggest you to use admin local user profile on server.You can get more information for UPD on below listed article.
    1.  Easier User Data Management with User Profile Disks in Windows Server 2012
    2.  Using User Profile Disks (UPD) in combination with predefining the Modern UI Start Screen on RDS 2012 (appsfolder.itemdata-ms)
    Hope it helps!
    Thanks,
    Dharmesh

  • User Profile Disk not being created

    Hi,
    I created a new 2012 VDI collection. Things seems to be working fine except for the User Profile Disks are not being created. From my understanding a .vhdx prefixed with the user's SID is supposed to be created when the user logs into one of the virtual
    machines from the collection. I can see that a UVHD-template.vhdx" was created correctly but when logging on to one of the deployed virtual machines from the pool there is no  other .vhdx files (except the template).
    From what I've read the virtualization hosts must have write access to the share (they do).  I can't seem to find any other requirements. I've searched through event viewer and found nothing. I'm not sure which logs to check on which server.
    Anyone have any ideas what I'm missing?

    Hi,
    Thanks for your post in Windows Server Forum.
    Kindly follow the below mention article and check the necessary steps for creating UPD, try to create new UPD.
    1.  Working with User Profile Disks on Session-Based Desktop Deployments
    2.  Easier User Data Management with User Profile Disks in Windows Server 2012
    Hope it helps!
    Thanks,
    Dharmesh

  • Pooled VDI - User Profile disk vs roaming profiles

    Hi,
    Apologies is this is the wrong forum, cannot find a VDI specific one...
    I am looking at deploying a Server 2012 VDI solution for a college.  The VM's would be pooled and based on a single image which contains all the required software for students.  I want zero persistence, in a similar way which can be achieved in
    the physical world with something like deepfreeze.  As students will still use physical desktops in other areas I would like their roaming profiles to still be used.
    With that in mind would the VDI solution work as follows...?
    Student logs on
    Roaming profile is loaded from existing share to a temporary disk
    students logs off
    roaming profile is saved back to network share
    temporary disk is disposed
    VDI image is reverted back to pre logon
    This would be a great solution and would make these student areas much easier to manage.
    Thanks

    Hi,
    You can setup UPD to meet your needs.
    For more details, please refer to the following:
    Easier User Data Management with User Profile Disks in Windows Server 2012
    http://blogs.msdn.com/b/rds/archive/2012/11/13/easier-user-data-management-with-user-profile-disks-in-windows-server-2012.aspx
    Installing and Configuring User Profile Disks (UPD) in Windows Server 2012
    https://social.technet.microsoft.com/wiki/contents/articles/15304.installing-and-configuring-user-profile-disks-upd-in-windows-server-2012.aspx
    Working with User Profile Disks on Session-Based Desktop Deployments
    http://www.virtualizationadmin.com/articles-tutorials/vdi-articles/general/working-with-user-profile-disks-on-session-based-desktop-deployments.html
    Hope this helps.
    Jeremy Wu
    TechNet Community Support

  • User Profile Disks - Backup/Restore

    I was considering deploying User Profile Disks in my 2012 R2 RDS environment instead of Roaming Profiles / Folder Redirection.
    However, I have noticed a potential flaw unless someone can shed some light on this. With UPD being relatively new there is limited documentation on this.
    If I backup my UPD directory (stored on a central server), and / or my Terminal Servers and I use a backup product which allows granular file-level restore. Initial testing shows that this won't work as you would want it to e.g. I can restore the VHDX
    associated with the UPD but cannot restore the individual files stored on the UPD e.g. a single word document.
    This leads me to think it is more beneficial to use the tried and tested Roaming Profiles / Folder Redirection combo. Or indeed, possibly deselect the UPD option for Documents etc. and combine UPD with Folder Redirection.
    Or does anyone have any further info on this?

    Hi,
    Thank you for your posting in Windows Server Forum.
    From your description I can say that you understand correctly. Sorry to say but you cannot restore the individual files stored on the UPD e.g. a single word document. As we need to backup and restore the whole UPD for the user. Previously, profiles could be
    corrupted if used simultaneously on multiple computers. User profile disks are specific to the collection, so they can’t be used on multiple computers simultaneously. User profile disks can be stored on Server Message Block (SMB) shares, cluster shared volumes,
    SANs, or local storage.
    Please refer beneath for more information.
    1.Easier User Data Management with User Profile Disks in Windows Server 2012
    2. Working with User Profile Disks on Session-Based Desktop Deployments
    Hope it helps!
    Thanks.
    Dharmesh Solanki

  • Is it possible to migrate local profiles to user profile disks?

    Hi guys, 
    Is there an easy way to migrate local user profiles on an remote desktop server to user profile disks? I am replacing a Server 2008 R2 and want to start using UPD's instead on a Server 2012 R2. 
    Best regards,
    Hasan

    Hi Hasan,
    Thanks for your posting in Windows Server Forum.
    As per my research, you can able to achieve your data by choosing the option “Store all user settings and data in the user profile disk” would obviously capture everything normally stored under C:\users\<username>
    and add that to the UPD. But please notice however that you can only select the roaming part of your user profile data.
    On UPD profile is stored in a .VHDX file specific to your account which is placed on a central share. Upon logon a mount path is created under
    C:\Users\<username> that points to that .VHDX file on the share. This makes the solution fully transparent to the Operating System and applications. If you’ve used UPD before you will have noticed that the filenames of the .VHDX files hold the
    users SID, not the account name.
    For more information, please refer below articles. (You can refer below article for Server 2012 R2)
    1.  Using User Profile Disks (UPD) in combination with predefining the Modern UI Start Screen on RDS 2012 (appsfolder.itemdata-ms)
    2.  Working with User Profile Disks on Session-Based Desktop Deployments
    Hope it helps!
    Thanks,
    Dharmesh

  • What share/ntfs permission i've to setup for user profile disks on Server 2012 R2?

    Please, let me know.
    Regards!
    Lasandro Lopez

    Hi Lasandro,
    As far as I know, share permissions for UPD are automatically set up by the management tools.
    Besides, regarding how to install and configure UPD, the following article can be referred to as reference.
    Installing and Configuring User Profile Disks (UPD) in Windows Server 2012
    https://social.technet.microsoft.com/wiki/contents/articles/15304.installing-and-configuring-user-profile-disks-upd-in-windows-server-2012.aspx
    In addition, regarding UPD, the following article can be referred to for more information.
    Easier User Data Management with User Profile Disks in Windows Server 2012
    http://blogs.msdn.com/b/rds/archive/2012/11/13/easier-user-data-management-with-user-profile-disks-in-windows-server-2012.aspx
    Best regards,
    Frank Shen

  • User Profile Disks with Windows Server 2012 and Windows 8 VDI

    Hello experts!
    We are building a new server setup for the office and are unable to figure out why UPD will not work. We have VDI setup and a user for instance
    connecting through the RDWeb workplace will dynamically get one of the available Windows 8 Machines delivered through Hyper-V and can successfully login on this machine via Active Directory. So far so good...
    However, when we activate the User Profile Disks "UPD" feature the login takes forever and the VHDX will not mount on c:\users\...
    as expected within the virtual Windows 8 machine.
    The UPD config is quite simple, with just the path "\\vmhost\upd\" set. This share has (now during test) full access for everyone,
    both on share level and on security level, but still the VHDX will not mount.
    The UVHD-template.vhdx file gets created just fine when UPD is activated, and during login through RDWeb a TEMP-UVHD-S-1-5-21-1477358240-4159876597-995667825-500.vhdx
    gets created, but there it stops... The login process takes a couple of minutes by the "Windows förbereds" (roughly translated to English "Preparing Windows"), and then the user gets logged in with a temporary profile.
     - The event log says (translated using Google translate):
    Failed to obtain a user profile disk for the user account with SID S-1-5-21-1477358240-4159876597-995667825-500.
    Make sure the location of the user profile desk can be reached, the server's computer account has read and write permissions to the site and that there is a template file for user profile disks at the site.
    Name of the virtual desk"font-size:14px;font-family:'Droid Serif', Georgia, 'Times New Roman', serif;color:#222222;line-height:23px;"
    />HRESULT: 0x8007007B.0
    Please help, it should not be that hard to achieve this.

    Hi,
    As this thread has been quiet for a while, we assume that the issue has been resolved. At this time, we will mark it as ‘Answered’ as the previous steps should be helpful for many
    similar scenarios.
    If the issue still persists and you want to return to this question, please reply this post directly so we will be notified to follow it up. You can also choose to unmark the answer
    as you wish.
    In addition, we’d love to hear your feedback about the solution. By sharing your experience you can help other community members facing similar problems. 
    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.

  • App-V 5 SP2 as RemoteApps and User Profile Disks with Error Error 0xc0000142

    App-V packages are published as RemoteApps and User Profile Disks are used. 
    Similar to the problem posted
    here .
    Some packages are running without an error (e.g. Acrobat Reader) and some other (e.g. Notepad++) could not launch.
    The result is "The application was unable to start correctly (0xc0000142). Click OK to close the Program.
    If UPD is disabled, packages running before gets now the error and the non-launching apps are running now.
    The post by Steve TH "App-V 5.0: On these 0xc0000142 errors and where they are coming from" give
    me an idea what´s may going on. But could not find anything related in the logs.
    An answer was set as solution in this
    post but it´s not clear for me, how to setup the Sequencer.
    8.3 is enabled on all VMs.
    How to setup the sequencer and the UPD configuration to run this scenario without the error?
    /vkleinerde

    Hello,
    First thought is just to make a copy of the prod RDS-server, sequence on it and then see how it goes?
    Nicke Källén | The Knack| Twitter:
    @Znackattack

  • XI Integration Engine- You cannot log on to system BS_SAP_R_3 with user XIR

    I have given the correct user name and password while creating RFC destination and Port.
    And I see wrong user ID/password in ping status.
    Ping Status: You cannot log on to system BS_SAP_R_3 with user XIRWBUSER
    Last Retry Thu Jan 18 23:13:47 UTC 2007 .
    Can anybody guide me on this?
    Thanks
    Chiru

    Hi,
    I have correct user id/ password in RFC destination. I do not know why in Runtime work Bench it is showing the wrong userid/password.
    I forgot to give it at the first time and later I gave the user details.
    And in Runtime work bench this error is not going away.
    Any help on this?
    Thanks
    chiru

  • Log on the other computer with user name and password

    How to use labview to write a software to log on the other computer with user name and password?

    Jimmyzeng wrote:
    Nobody can help on this?
    Besides repeatedly asking the same question in thread after thread, you are not providing enough information to answer the question. You have been given answers already stating that operating systems do not make this very easy to do using programs for security concerns. In addition, the authentication process varies depending on what service you are communicating with. You really need to provide more information if you want to get meaningful answers to your questions.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

Maybe you are looking for

  • ABAP + JAVA MSCS installation on windows 2003.

    Hello Everyone, We are in process of installation of ABAP + JAVA in HIgh Availability on windows server 2003 , oracle database. Our plan is to install ASCS, SCS, DB , CI on node A & DI on Node B. In Installation guide its given that " Central instanc

  • Which table partition the record is from

    Hi, I would like to know how to do a select query on a partioned table and include the partioned name where the record reside, thanks.

  • Odd Migration from (CorporateTime) 5.0 via 5.4 to 10.1.1.0.2 /A.06.10

    There's a support document that states, that for upgrading from 5.0 to something supported I have to migrate to 5.4 first. I couldn't find this version for download and I'ld like to know if it's possible to get that version, just for the sake of migr

  • Setup error - internet explorer 5.0 or later required

    Hi... Sir, i face the subject problem when during installing hp color LJ 5550 printer with Windows 7 64 bit, I tried too many times but didn't installed and also didn't found any help from intenet.  I have the printer driver CD it did not work, i als

  • Simulation of high Portal application load

    Hi all, does anybody has tested Portal environment using some external application simulating high usage of the server. I need to test my production environment before I will expose it for normal usage in my company. I will appreciate for anybody exp