Unattend files and Server 2012 R2 RDS

Hi
I have a vdi implementation (managed, pooled vm's) , which is working fine as long as i don't create a custom unattend file. for exmaple, my desktops need to run some powershell scripts upon first logon,
which i use to be able to do in Microsoft-Windows-Shell-Setup under firstlogoncommands, but these scripts don't seem to run with vdi desktops. is there any other way to get these scripts to run before a user logs on for the first time?

Hi,
Thanks for your posting in Windows Server Forum.
For your case, have you try to enable GPO setting for applying logon script on first logon? 
You can able to view the option of GPO setting “Run Windows PowerShell scripts first at user logon, logoff” or “Run Windows PowerShell scripts first at computer startup, shutdown” under below mention path.
Computer Configuration\Policies\Administrative Templates\System\Scripts\
User Configuration\Policies\Administrative Templates\System\Scripts\
Note: If applied for computer & User configuration both, then Computer configuration will take precedence over user configuration.
More information:
Windows PowerShell Cmdlets for Group Policy
Apart from this, there is another article for reference.
4 Ways to Use PowerShell for Server Logon Scripts
Hope it helps!
Thanks,
Dharmesh

Similar Messages

  • Windows Server 2012 R2 RDS: RDS Users are unable to delete files from their desktop

    Hello,
    We are working with Windows Server 2012 R2 RDS. We also implemented User Profile Disks. This is all working fine without problems. The only issue I have is that normal users are unable to delete files from their desktop. They are getting a message:
    you'll need administrator permission to delete this file, with the prompt for administrator access.
    They can edit, copy, rename, cut and paste files. But they cannot delete a file from their desktop.
    I checked the security permissions of the files on the desktop (for example a normal self-created PDF file) and the users are owner and have "Full Control" over the files.
    I checked the file permissions and took a look under "Advanced", selecting the specific domain user and checked the "Advanced Permissions" and the user has the "Delete" option checked. So he should be able to delete the
    file.
    I am guessing this is UPD related issue, or something in GPO. But I already unlinked the GPO objects, that I felt could be the source of this problem, but without results.
    Could someone give me a hint on where to look? It's kinda annoying to users, that they can't delete their own files.

    Hello Bria,
    What you should check first, is the NTFS permissions on the User Profile Disk to begin with. See if the user has full control over the items that are in the UPD.
    Also check the GPO's that are enabled for the user and computer account. You can check that by running: gpresult /h <path>\gpresult.html
    There are two GPO settings that could prevent the user from deleting his/her own items: 
    User
    Configuration\\Policies\\Administrative Templates\\Windows Components\\Windows Explorer\
    Hide these specified drives in My Computer
    Prevent access to specified drives in My
    Computer
    There might be other GPO settings, that block deleting items on the UPD, but can't think of any out of my head.
    I can only think NTFS and GPO settings that might prevent the user from deleting items. In my case it was a GPO setting, that I didn't suspect.

  • Resizing User Profile Disks in Existing Server 2012 R2 RDS Deployment Question

    Once the initial maximum size is set and the VHDXs have been created in a Server 2012 R2 RDS deployment, will attempting to increase Collection's maximum UPD size by say.. issuing a Powershell command of:
    Set-RDSessionCollectionConfiguration -CollectionName MySpiffyNewCollection -MaxUserProfileDiskSizeGB 10
    over-write the existing VHDXs instead of simply increasing their size? (max size is currently 5GB)
    I'm not at a point where I can test this in a lab condition to find out, and I have not found this question asked (or at least not definitively answered) in this forum yet.
    -G

    Hi,
    Thank you for posting in Windows Server Forum.
    We can resize the UPD file with below command:
    Resize-VHD –Path c:\BaseVHDX.vhdx –SizeBytes 1TB
    After running this mount the .vhdx file and open disk manager and there will be unallocated disk, and then you can click extend disk/volume and its done.
    You can refer following article for more information.
    Resize User Profile Disks
    Hope it helps!
    Thanks.
    Dharmesh Solanki
    TechNet Community Support

  • Digital Filing broken with windows 8.1 and Server 2012 R2?

    Hello
    Recently upgraded my machines so now I have Windows 8.1 and Server 2012 R2 running. The scanning from my Officejet L7680 to a network share on one of these machines is no longer working. 
    Looking into it with network monitors I can see that the login of the user and password is working but then the save of the file on the share gives and error.
    In windows 8.1 it starts creating the file but cannot add content to it (so the file is 0 Bytes in size) on Server 2012 R2 the creation of the file already gives and error.
    Searching around the web seems to indicate that changes in the SMB protocol on the latest windows versions are the cause of this and other MFP suppliers are providing firmware updates to fix this. There seems no way to fix this at the Windows side.
    Can HP confirm this issue and indicate which all in ones will be able to connect to network shares on these latest windows version ? With or without a firmware update.

    I can confirm that I'm experiencing the same issue on my Windows 8.1 x64 machine and Windows 2012 R2 Essentials. Will there ever be a firmware update for the L7680 printer so we can get this functionality working again?

  • Users Cannot Change Passwords on a Server 2012 R2 RDS Farm

    Hello I have a Server 2012 R2 RDS Farm consisting of 1 server that has connection broker and gateway configured and 4 RDS Session Hosts. The works great I even have a separate remote app farm to distribute the apps to the servers, my main issue is passwords
    and the lack of the EU ability to change these, listed below are my symptoms.
    Users password has expired denied logon instantly with no ability to change password.
    User tries to change password whilst in 30 day warning period using ctrl alt end the user is advised the password does not meet complexity requirements I have checked this and they do meet them.
    Expired passwords can be changed via the RDWeb site however this is not an option for us.
    Chris

    Hi,
    Firstly, based on my knowledge, remote users may have to change their passwords before expired. If not, they have to use OWA or logon on locally to change their passwords.
    Regarding the issue, please let us know if the following policies are enabled in your domain.
    Enforce password history
    Minimum password age
    Also, does a local domain user have the same issue?
    Thanks.
    Jeremy Wu
    TechNet Community Support

  • Restoring bkf files in Server 2012

    I am wondering if anyone has found a tool to restore a bkf file in Server 2012.
    The hotfix released for Server 2008R2 that enables you to restore a backup made using in ntbackup in Server 2003 does not work.
    I have tested using xcopy which will work but will take far longer than doing a backup of a server and restoring to a new server.
    I have reached out to Microsoft reps to see if there are plans to create a hotfix for Server 2012 but am not getting much of a response.
    Does anyone have any suggestions?

    Same Problem here
    i could open some of the archives with 7-zip, everthing else is shareware ~90$

  • How do I manage open files in Server 2012 without resorting to 3rd party application?

    How do I manage open files in Server 2012 without resorting to 3rd party application?
    I cannot find the Mange open files in FSRM.
    Thanks

    Wouldn't it make sense to place it in the server manager / shares section?
    I mean, second to creating or finding a share, isn't this what most users would be after?
    For like 20 years we've been trained to right click to find stuff Microsoft is hiding, and right click don't do nothin' here.  You gotta go hunting under tools.   Or, forget the new half-baked interface with half of what you need and go old school,
    direct to Start - Computer..Right Click.. whoops... that doesn't exist anymore.....
    Drool.........drool.............Find that hiding, blinking start button in a RDP session, click start after three trys,  and TYPE IN "Computer Management" .  Right Click, Pin it to your desktop, pin it to the start screen, pin it to the taskbar, send
    it to OneNote, and upload it to skydrive  so you can find it again, then get back to what you were doing....to find the cottin' pickin open files and kick your users off so you can have your way with the server.

  • Can't change printer port on Windows 8.1 and Server 2012 R2

    1. Install "Lexmark X646e Class Driver" using a in-box print driver (i.e. one comes with the Windows installation base) .
    2. Go to "Printer properties" -> "Port"
    3. Select a custom monitor port, and the following error occurs in Event Viewer.
    An error occurred while configuring print queue 'Lexmark X646e Class Driver'. Printer driver 'Lexmark X646e Class Driver' may not be used in conjunction with a non-inbox port monitor.
    Same steps applied on Windows 8 and Server 2012, and not issues found. The restriction/limitation is newly added in Window 8.1 and Server 2012 R2. 
    Changing to a custom monitor port after printer driver installation is very important for us.
    How can we solve or workaround the above issue, so it can behave like Windows 8 and Server 2012? 

    What Port Monitor just so I can bubble this information to some others?
    Alan Morris Windows Printing Team
    Hi Alan:
    We developed a custom printing system, which involved the following configurations:
    1. Create a custom port monitor on server 2012 r2.
    2. Change an existing print queue to use this custom port monitor, and share this print queue.
    3. All workstations will print to this shared print queue on the server.
    The goal is to manage/monitor the print information in StartDocPort for all printing for instance.  This is what we've been doing for a long time.
    Now we upgraded our system from server 2012 to server 2012 R2, but we can't change the port monitor to our ones anymore.
    I've tried the Type3 printer driver, such as Brother Color Type3 Class Driver, unfortunately it didn't work if the installation is using "Add a printer", and select the driver from the list.   
    The only way to make it work is to install the printer driver using the one downloaded from the vendor's website, this will bypass Windows "Add a printer". 
    Is there any chance we can make this to behave like server 2012 or earlier? Modify registry keys?
    Cheers
    Steven

  • Since I updated my Creative Cloud desktop App to its last version, my files are no longer synchronized. I received the "fail to synch files" and "server error" messages.

    Since I updated my Creative Cloud desktop App to its last version, my files are no longer synchronized. I received the "fail to synch files" and "server error" messages.

    Hi, Jeff.
    I'm not on a network and I didn't change anything on my secutiy setups, so I got in touch to the customer support. They checked my computer and found nothing wrong, so they uploded some log files to analyse the case. I'm waiting for a answer.
    Thanks for the tips.

  • Server 2012 R2 RDS- Only want the Session Host, Connection Broker and Licensing Server!

    Hi all,
    Wondering if anyone has experience with implementing Remote Desktop Services (RDS) on Windows Server 2012 R2.
    I am doing an RDS design for a platform where we only need an RDS Session Host, Licensing Server and Connection Broker. We do not need web access as these servers will simply be jump boxes internally!
    However, implementing this correctly in our test environment has proved to be tricky. The options are:
    Use the Server Manager and do a traditional install via Roles and Features ( specifically add the Session Host, Licensing Server and Connection Broker). The installation process seems to go through ok in this scenario but when I head over to the Remote
    Desktop Services section of the Server Manager I simply get the message 'An RDS Deployment does not exist in the server pool. To create a deployment head to Roles and Features'.
    Use the specific ‘Remote Desktop Services installation’ option on the Server Manager and do a Session Based Desktop deployment and Quick Start. This installation process seems to go through correctly and the Remote Desktop Section seems to be working
    correctly via the Server Manager. However this process is ‘hard locked’ i.e. it installs the session host, web access and connection broker. I can then remove the web access component later from Roles/ Features.
    Is there a best practice (if any) for installation? i.e. Will there be any issues down the line if I remove RDS Web Access from my server while following method 2?
    There is a complete lack of documentation from Microsoft here so not sure what to do! Just need a basic RDS session based deployment.

    Hi,
    As I know from server 2012\R2 the best deployment skill is to perform via “Remote Desktop Services” installation mode with Standard deployment and don’t let single role to install. Because when we install through RDS mode, there are specific extra tools and
    services activated along with that deployment which you can’t find with single role installation. And that is for sure, when we install RDS role as of this, by default we will get install RDCB, RDSH and RDWA role installed.
    Sorry don’t have any option to try to remove that role as that role basically needed for RemoteApp and Desktop purpose. But if you want then you can try it with help of “Remove-RDServer”Powershell command.
    https://technet.microsoft.com/en-us/library/jj215506.aspx
    Hope it helps!
    Thanks.
    Dharmesh Solanki
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Can't print a pdf file with adobe reader 10.1.12 on a Windows Server 2012 R2 RDS session

    Situation : My users are connected with RDP on a Windows Server 2012 R2 Datacenter Remote Desktop Service and when they log on, their share printers are installed.
    When some users open a pdf file, they can't print it. When they try to print a file, nothing happen... No file sent to the printer...
    I have seen a difference between the shortcut icon of adobe reader for users who have this problem and others.
    No Problem :
    Problem :
    If someone can help me
    Thanks !

    Hi Ajlan,
    To fix my problem, i uninstalled adobe reader X with "Adobe Reader and Adobe Acrobat Cleaner Tool", rebooted the server, installed Adobe Reader XI and rebooted again.
    For some users, this fix the problem but with some others i had to define Adobe Reader by default again.
    I tried without use "Adobe Reader and Adobe Acrobat Cleaner Tool" before and adobe reader X wasn't really uninstall.
    Thanks,
    Regards,
    Sullyly

  • File Associations in 2012 R2 RDS Server using Roaming Profiles

    Background Information
    We recently moved from using 2008 R2 RDS servers to 2012 R2 RDS Servers. All of our users
    have roaming profiles. When we migrated from the old terminal servers to the
    new terminal servers, the users got completely new profiles. The only thing
    moved from their old profiles were documents and items on their desktops. We
    have multiple PDF viewers/editors installed on our RDS servers. Mostly due to
    the cost difference between Adobe Acrobat and other, cheaper products that a
    lot of our users can get away with using that don't need the functionality of
    Adobe Acrobat.
    The Problem
    Ever since moving to the new 2012 R2 RDS servers, whenever our users log off terminal
    server, the next time they log in their default PDF Viewer association doesn't
    load, and they have to go through the process of choosing a default PDF viewer.
    This only occurs when there's more than one PDF viewer installed on the server.
    We've tested it with only one PDF viewer program, and the setting remains after
    logging off and back on. The problem we've found is that the registry key that
    houses the default user choice:
    HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.pdf\UserChoice
    when set during the session, to Adobe Acrobat 11 for example, reads as such
    inside that registry key. For example, the Progid key will say
    Acrobat.Document.11 and this setting will persist until the user logs off. Upon
    logging off and back on to the terminal servers, if you look at that same
    Progid key, it has been converted in to a Hash value, and the Operating System
    is unable to read the hashed value and determine what that user's default PDF
    Viewer choice is, causing them to have to go through the process of setting it
    again.
    Things we've tried
    We created a GPO that runs a script that exports the registry key upon log off that has
    the non-hashed value, and have it set to import that value on log on. However,
    by default this registry key has the DENY WRITE permission applied to it, so
    when the system tries to import the registry key through the login script it is
    unable to do so. 
    Summary
    This issue only started happening once we moved over to 2012 R2 RDS servers. It only
    occurs for users using Roaming Profiles. It only occurs when we have multiple
    PDF Viewers installed on the servers. Any insight on why this is happening or
    how to resolve it would be greatly appreciated.

    I would use GPP to push the value, 'not hashed'. You can give right to the registry too, so like adding everyone group to that registry branch. (https://technet.microsoft.com/en-ca/library/cc753092.aspx)
    Regards, Philippe
    Don't forget to mark as answer or vote as helpful to help identify good information. ( linkedin endorsement never hurt too :o) )
    Answer an interesting question ? Create a
    wiki article about it!

  • WDS and Unattended queries/clarification (Server 2012)

    Hi Folks
    I am studying for my 70-411 exam and have a few points that I would like clarification on relating to unattended installations and WDS:
    1: When you create an unattend.xml for the 'Windows Deployment Services client’,  in SIM which image do you need to base this on? 
    Do you just use the install.wim from the server iso?
    2: Are both a WDSClientUnattend and a ClientUnattend mandatory for unattended to work? 
    For example if you only want to automate the image settings but not the settings pre-image selection (such as usename/password to connect to WDS) can you specify only a ClientUnattend?
    3: Can disk partitions be set in the ClientUnattend or do these have to be in the WDSClientUnattend file?
    Thanks in advance.

    1. The WDS Client itself is based on "boot.wim" from a preferably new OS. For instance if you plan to deploy Windows Server 2012R2 or Windows 8.1, you need to have a 6.3 version of the boot.wim, either from the 2012R2 server iso, or Windows 8.1
    iso (it doesn't actually matter). You can deploy e.g. windows 7 from the 6.3 boot.wim aswell, but not the other way around.
    2. The WDSClientUnattend is for the "WDS Client" part, that means you should specify settings here on "how you want to perform the installation", e.g. which edition of Windows to install (Server standard, or Server Enterprise...), to
    which DISK (and how to partition it), credentials to connect to WDS share (remoteinstall$ on WDS), and also what language and keyboard settings to use during setup. If you don't specify this, you can still specify an unattend.xml file for an install Image,
    that is settings relevant to a specific image only. So you can decide to do either of them, or both.
    3. This needs to be done in WDSClientUnattend, that is "1 - WinPE-phase". You can see this phase as the first phase Before first reboot, that is lang settings, partition settings, image selection, and then copying of files. Upon next reboot, and
    not Before is when you reach the next Phase, that is "4 - Specialize"

  • Open Files on Server 2012 - Why Do All Mapped Drives (and users) Show as Open

    Our office just installed Server 2012 (Standard).  We used to run Server 2003 Standard. 
    We have 3 shared/mapped folders on the server - and have 12 users mapped to those shared folders.
    When I go to Computer Management/Shared/Open files, it used to be empty if no users were currently using one of the shared folders (in Server 2003).   Now even if no users are currently using one of the mapped folders - most of the users
    are listed with the mapped drive reference. 
    Is this something new in Server 2012?
    I used to use this to determine exactly who was in a share if we had problems and needed to close that particular workstation.  Now with them all listed, I am wondering if things are not closing properly??
    Thank you for any insight you can provide!

    Thank you for your reply.  Now I notice that even though a workstation (Windows 7.0 Pro) has closed our Prosystem FX tax program, there will still be at least one file showing as "open"  for that program on Server 2012 even though the user has
    exited the program and we have rebooted the workstation.
    The tax program itself doesn't seem to "think" the files are open as it lets me do tasks that require all users to be out of the program.
    Just wondering why files that aren't open seem to show as open on Server 2012.  They did not do this with Server 2003 and XP workstations.  Or even with Server 2003 and Windows 7 Pro workstations.  Just when we changed to Server 2012 and have
    our Windows 7.0 workstations.
    Thank you again,
    Brenda

  • Error installing Office 2013 on Server 2012 R2 RDS - Error 25004: the product key you entered cannot be used on this machine

    Hi there,
    I really hope someone can help me as I am tearing my hair out trying to get this resolved!
    I am working on a Server 2012 R2 server with RDS running. Before it was turned into a RDS server it had a copy of Office 2010 running as a trial to see would it work for the accounting package that is running for users via Remote Desktop. Trial worked ok
    so it was converted into a RDS server. Now, as its a RDS it needs to run Office under a volume licence, which I have. However when trying to install I get the message: "Error 25004: the product key you entered cannot be used on this machine. this is most
    likely due to previous Office 2013 trials being installed on the system."
    In summary I have tried everything I can think of and find to remove all traces of the old Office from the machine but still this message persists. I have run the Fix It For Me uninstall from MS and it cannot find any Office installed. i have manually searched
    through all of the Windows directories including Program Files and AppData and removed all traces of Office from there, I have searched the registry and removed all I can find from there.
    Where or what file does the installer look at to see that a previous version was installed? 
    I cannot scrub this machine which I would have done long ago because there is another SQL Server based application running on it.
    Really really appreciate anyone that can help me on this,
    Thanks

    Hi,
    I have definitely heard your frustration, and I’ll try my best to help you.
    Since Office 2010 installed on it before, you need to remove Office 2010 completely.
    KB about this error:
    http://support2.microsoft.com/kb/2792178
    A similar issue is addressed here. Although this method is based on Office 2010, but we can have a try:
    http://www.experts-exchange.com/Software/Office_Productivity/Office_Suites/MS_Office/Q_28475448.html
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Best regards,
    Greta Ge
    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.

Maybe you are looking for

  • ITunes not working w/ Windows 7

    I have a brand new computer which uses Windows 7. Installed iTunes 9.02 (64-bit installer). Unable to log in to account or authorize computer. I get a message saying "unknown error occurred (-9808)". Any advice / ideas?

  • Customer Master Report needed for jurisdiction, tax code, and district

    I am trying to pull a customer master report and need to include the following fields: Name (NAME1) Account (KUNNR) Jurisdiction ( TAXJURCODE) Tax Code (TAXKD) District, which is County for US addresses (CITY2) I haven't seen a report with CITY2 and

  • Cannot drop login from SQL 2012

    I am trying to drop a login with no mapped dbs, no owned schemas, no rights, no endpoints, nothing what-so-ever and I have been at this for 4 hours.  This is the error, is there any global way to determine what in the world SQL 2012 sees this login a

  • Can I get the resource in a JAAS login module?

    G'day, I am writing a custom JAAS login module for deplyment in Netweaver application server. I'd like to get information about the resource that is protected by that login module (specifically, the URL). The HttpGetterCallback class does not provide

  • Profit Center Column

    Hey guys! I was wondering, how can I enable/display the Profit Center column for each item row on any of the mktg document forms (eg: the Sales Quotation or AP Invoice form). Surprisingly there is no entry to set the visibility for the Profit Center