Remoteapp MSI file publishing in Win Server 2012
Hi,
Is it no longer possible to publish remoteapps using MSI?
The problem with this is that it's not possible to do file associations unless you use the Remote Desktop Web Connection.
Best regards
Kjartan
Hi,
You can use script to deploy remoteApp with extension association to Windows 7.
First use a GPO to define the default URL connexion
next use this script:
[Reflection.Assembly]::LoadWithPartialName("System.Web") | Out-Null
$BaseReg="HKCU:\Software\Classes"
[system.net.ServicePointManager]::ServerCertificateValidationCallBack={$true}
$FeedURL=(Get-ItemProperty HKCU:\Software\Policies\Microsoft\Workspaces).DefaultConnectionURL
function getFormAuthCookie($URL)
$Request=[system.net.httpWebRequest]::create($URL)
$CredCache= New-Object system.net.CredentialCache
$Request.UseDefaultCredentials=$true
$Request.AllowAutoRedirect=$true
$responce=$Request.GetResponse()
Write-Host "GetCookie:" $responce.StatusCode
$FormsAuthCookie=""
$StrmReader = New-Object system.io.streamreader($responce.GetResponseStream() )
$FormsAuthCookie=$StrmReader.ReadToEnd()
$StrmReader.Close()
return $FormsAuthCookie
function GetConnectionXml($URL,$FormsAuthCookie)
$Request=[system.net.httpWebRequest]::create($URL)
$Request.CookieContainer = New-Object system.net.CookieContainer
$Request.CookieContainer.Add( $(New-Object system.net.cookie([system.web.security.FormsAuthentication]::FormsCookieName,$FormsAuthCookie,"/",$Request.RequestUri.Host)))
$Request.UseDefaultCredentials=$true
$responce=$Request.GetResponse()
Write-Host "GetXML:" $responce.StatusCode
$connectionXml=""
$StrmReader = New-Object system.io.streamreader($responce.GetResponseStream() )
$connectionXml=$StrmReader.ReadToEnd()
$StrmReader.Close()
return $connectionXml
function GetConnectionContents($URL)
$STRCookie=""
$STRCookie=getFormAuthCookie($URL)
$XMLContent=GetConnectionXml $URL $STRCookie
return $XMLContent
function downloadFile($Source,$Dest,$FormsAuthCookie)
$Request=[system.net.httpWebRequest]::create($Source)
$Request.CookieContainer = New-Object system.net.CookieContainer
$Request.CookieContainer.Add( $(New-Object system.net.cookie([system.web.security.FormsAuthentication]::FormsCookieName,$FormsAuthCookie,"/",$Request.RequestUri.Host)))
$Request.UseDefaultCredentials=$true
$responce=$Request.GetResponse()
Write-Host $responce.StatusCode
$reader = $responce.GetResponseStream()
$writer=New-Object system.io.filestream($Dest,[system.io.FileMode]::Create)
[byte[]]$buffer = New-Object byte[] 4096
[long]$total = [long]$count = 0
do {
$count = $reader.Read($buffer, 0, $buffer.Length);
$writer.Write($buffer, 0, $count);
} while ($count -gt 0)
$reader.Close()
$writer.Flush()
$writer.Close()
$responce.Close()
function CreateFileAssoc($ext,$AppName,$rdp,$ico)
write-host $(".{0}={1}" -f $ext,$AppName)
mkdir (Join-Path $BaseReg ".$ext") -force | set-Item -Value ($AppName) -Force |Out-Null
mkdir (Join-Path $BaseReg "$AppName") -force | set-Item -Value ("File description") -Force |Out-Null
mkdir (Join-Path $BaseReg "$AppName\DefaultIcon") -Force | set-Item -Value ("""$ico"",0") -Force |Out-Null
mkdir (Join-Path $BaseReg "$AppName\shell") -Force | set-Item -Value ("Open") -Force |Out-Null
mkdir (Join-Path $BaseReg "$AppName\shell\Open") -Force | set-Item -Value ("Ouvrir") -Force |Out-Null
mkdir (Join-Path $BaseReg "$AppName\shell\Open\command") -Force | set-Item -Value ("mstsc.exe /REMOTEFILE:""%1"" ""$rdp""") -Force |Out-Null
function new-Shortcut
param ( [string]$RDPFile, [string]$DestinationPath, [string]$Icon )
$WshShell = New-Object -comObject WScript.Shell
$Shortcut = $WshShell.CreateShortcut($DestinationPath)
$Shortcut.TargetPath = "mstsc.exe"
$Shortcut.Arguments = $RDPFile
$Shortcut.IconLocation = $Icon+",0"
$Shortcut.Save()
$STRCookie=""
$STRCookie=getFormAuthCooky($FeedURL)
$XMLData=GetConnectionXml $FeedURL $STRCookie
$URI=New-Object system.uri($FeedURL)
$xdoc=New-Object system.xml.xmldocument
$xdoc.LoadXml($XMLData)
$WorkingDir=((Get-Item Env:\APPDATA).value+"\Microsoft\RemoteApp")
$BaseURI=$URI.Scheme+"://"+$URI.DnsSafeHost
if( -not $(Test-Path $WorkingDir) )
mkdir $WorkingDir | Out-Null
#ShortCut Dir
$MenuFolder= join-path (Get-Item Env:\APPDATA).value "Microsoft\Windows\Start Menu\Programs\RemoteApp"
rmdir -Force $MenuFolder -ErrorAction silentlycontinue -Recurse
mkdir -Force $MenuFolder | Out-Null
foreach( $node in $xdoc.GetElementsByTagName("Resource") )
Write-Host $node.Title
$httpRDPFile=$($BaseURI+$node.HostingTerminalServers.HostingTerminalServer.ResourceFile.URL)
$RDPFILE=$($WorkingDir+"\"+$httpRDPFile.Split("/")[-1])
downloadFile $httpRDPFile $RDPFILE $STRCookie
$httpICOFile=$($BaseURI+$node.Icons.IconRaw.FileURL)
$ICONFILE=$($WorkingDir+"\"+$httpICOFile.Split("/")[-1])
downloadFile $httpICOFile $ICONFILE $STRCookie
#Create File Assoc
if( $node.FileExtensions.ChildNodes.Count -gt 0)
foreach( $ext in $node.FileExtensions.FileExtension )
CreateFileAssoc $ext.Name.trim(".") $node.Alias $RDPFILE $ICONFILE
#Create Shortcut
new-Shortcut $RDPFILE $($MenuFolder+"\"+$node.Title+".lnk") $ICONFILE
Best regards
Benoit LEFEVRE
Similar Messages
-
SYSTEM WRITER MISSING WIN SERVER 2012
Hi,
I have installed win server 2012. On that server i have sql 2012 and sharepoint 2013. After a while my windows server backup stops working and system writer is missing now. I found that problem might be in subfolders in MICROSOFT.NET folder. It has more
than 1000 subfolders in GAC_MSIL folder. Is this really true that system writer can't enumerate more than 1000 folders and that I cant have sharepoint 2013 and sql server 2012 installed on same server. Is there a solution which can fix this or I can have all
of that on one server?
Hope that someone can help with this.It seems to be a known issue, some other Technet forum users have experienced the same problem.
Check this post and see the solution.
Missing VSS System Writer and CAPI2 error in Event Log
http://social.technet.microsoft.com/Forums/en-US/winserverfiles/thread/4458947a-623e-45c1-b8e4-868aad1e93b0
I've got this problem about a month ago. I refer to MSP.
The problem was caused due to stack full. When we list system writer using “vssadmin list writers”, it will go through all the system files. To do that, the OS use a search algorithm with a stack which has a size limitation of 1000. When the stack
was full, it failed to continue listing files and log an event in the application event log.
In my case, the following folder contains too many subdirectory and caused the problem.
C:\Windows\Microsoft.Net\Framework64\v2.0.50727\Temporary ASP.NET Files\*
1. Open C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\CONFIG\Web.config
2. Add tempDirectory attribute to compilation tag. For example:
< compilation tempDirectory="c:\ASPTEMP">
And also grant the folder with the same privilege with as “C:\Windows\Microsoft.Net\Framework64\v2.0.50727\Temporary ASP.NET Files”.
3. Restart the IIS Service.
4. Backup and delete all files under “C:\Windows\Microsoft.Net\Framework64\v2.0.50727\Temporary ASP.NET Files”.
5. restart the Cryptographic Service.
6. Try “vssadmin list writers” again.
Hopes this brings idea for you to solve it.
And also refer to this thread:
Howto Restore VSS Functionality on Windows 2012 Server with SQL 2012 and Sharepoint 2013 installed?
http://social.technet.microsoft.com/Forums/fr-FR/winserver8gen/thread/f440e66c-437d-4576-af51-b7cfecdf2906 -
How to Migrate Win Server 2008 to Win Server 2012 if PDC server no longer exist?
With this being Foundation (less than 15 users) with some problems already, it might be smarter to just start the new server fresh.
I took over a small business company's network infratructure with Server 2008 Foundation and I would like to migrate to a new Windows Server 2012 r2.The Server 2008 Foundation is a DC with AD / DHCP / DNS / File & Print Server roles. I would like to transfer these roles to the new server with Win Server 2012 r2 std OS. My plan is to join the new server to the old DC, promote it as DC, and transfer roles to it, demote old server and power off.However, there was an older server (Windows 2003) which is no longer in the office and it was the current operations master. The server 2003 was the PDC. When I open AD Domains and Trusts I get this error:"You cannot modify domain or trust info because a PDC emulator cannot be contacted.."Maybe the FSMO roles wasn't transferred over from 2003 to 2008 properly? I don't know.How can I move forward to...
This topic first appeared in the Spiceworks Community -
How to uninstall win server 2012 R2 (OS) from computer altogether?
Hi guys, I am trying to remove/ format my hdd that holds my OS which is currently Windows Server 2012 R2. I am having a tough time at it. Are there any suggestions?
Hi, we have a Win server 2012 R2 (Standard edition, running on a HP Proliant ML350 Gen9), running Active Directory. This machine is also a fileserver. Our files are mostly Word and Excel. We are a carpenter company and many of our carpenters work on customer sites. They often have slow internett connections (mobile broadband). They need to access and update the files on our server. So my question is - what would be the best way to set this up? The connection should of course be secure. It should also be easy to use.
My thoughts so far is: DirectAccess? The VPN on our ZyWall 110 firewall/router? WebDAV?
This topic first appeared in the Spiceworks Community -
Can I move a Virtual Domain Controller from one host(Win Server 2008 R2) to another (Win Server 2012 R2) ? Are there any issues?
I also had this error: "Setup cannot continue. Your computer will now restart, and your previous version of Windows will be restored."
trying to do a in-place upgrade of a Domain Controller Windows 2008 R2 to Windows 2012 R2.
The problem was the separated System Reserved Partition. After I removed using this instructions:
http://jacobackerman.blogspot.com/2012/12/how-to-remove-system-reserved-partition.html
The upgrade ran ok, and now have my DC as Windows 2012 R2.
Hope that helps!. -
How do I install Firefox on Win Server 2012 Remote Desktop?
I have tried several ways to download and install Firefox on my Win server 2012 Remote Destop. The software installs, but the installation loops and continuously opens new tabs for
res://iesetup.dll/SoftAdmin.htm
Are there special instructions to install Firefox in this environment?The url in ie gave me this page [see attached] and I did find a question similar in mozillazine [http://forums.mozillazine.org/viewtopic.php?f=7&t=173325&start=0&st=0&sk=t&sd=a]
But there is also an extended support release for enterprise environments that you can check out: [https://www.mozilla.org/en-US/firefox/organizations/] -
How can I create a Pooled VDI infraestructure using Win server 2012 as VM image?
Hello
I have followed the "usual" way to build a pooled VDI desktop using Win7 or Win8 with success, but it fails when I use an image of Win Server 2012 as VM instead.
Am I overlooking something? Should I need to prepare the image in a different way? (Sysprep differently?)
ThanksDear Ryan
I think the point is other than committing a breach of licensing. I have a legitimate need to use a pooled server system, which incidentally is not going to be end user.
The "economy" of the proposed structure can make a more efficient use of the equipment.
This is an excerpt of the MS VDI Q&A:
Do I need to pay for Windows VDA if I use Windows Server as a client operating system in my virtual machine?
OR
I’ve heard that I can avoid paying for Windows VDA by using Windows Server as my VDI desktop OS. Is this true?
Running a Windows Server®
OS as the desktop in the datacenter does not require Windows VDA, but there are many reasons why a server OS should not be used as a desktop, especially in the datacenter:
The user experience with servers as the desktop is very different from using a Windows client.
Many applications for end users were written for a client OS and not a server OS. Each of your applications would need to be retested to ensure compatibility with a server OS. Additionally, most vendors
do not offer support for client applications running on servers.
Clients and servers are on different patch cycles, adding to management complexity.
Most of the VDI ecosystem will support the Windows client in the datacenter, not server OS’s.
However, if you do decide to run a server OS as the desktop, please note that you will need to pay a Remote Desktop Services Client Access License (RDS-CAL) to correctly license that scenario. -
I have followed the "usual" way to build a pooled VDI desktop using Win7 or Win8 with success, but it fails when I use an image of Win Server 2012 as VM instead.
Am I overlooking something? Should I need to prepare the image in a different way? (Sysprep differently?)
ThanksHi,
Thank you for your posting in Windows Server Forum.
Can you specify the error which you are facing during VDI setup for server 2012?
I might think that you need to check the memory setting for server 2012, as might happens that due to less memory you can’t setup the VDI setup properly.
Memory: If the Master VM is configured with static memory, it must have at least 1024 MB as startup RAM. If the Master VM is configured with dynamic memory, the maximum RAM must be at least 1024 MB.
Please check beneath article for information.
Windows
Server 2012 2,500-user pooled VDI deployment guide (Doc)
Single Image Management for Virtual Desktop Collections in Windows Server 2012
Hope it helps!
Thanks.
Dharmesh Solanki -
Win Server 2012 Failover Cluster - Error: Failed to bring cluster disk online
Hi Technet
I'm currently running running 2 VMs Win Server 2012 and would like to test Failover Clustering for one of our FTP server
I've added on both servers an additional partition, formatted and Online
One of the drives comes Online but cannot bring the 2nd disk online from the cluster manager
Error: failed to bring resource online - clustered storage is not connected to the node
Assistance would be greatly appreciated
Thank you
JabuHi jsibeko,
Since the VMware offer the MSCS shared storage solution themselves, I suggest you first ask VMware whether that shared storage is supported with your vSphere edition, I found
some VMware KB about the VMware shared storage for MSCS, may you can get more tips.
The VMware KB:
Microsoft Clustering on VMware vSphere: Guidelines for supported configurations (1037959)
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1037959
Microsoft Cluster Service (MSCS) support on ESXi/ESX (1004617)
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1004617
I’m glad to be of help to you!
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] -
Hi Techies
I'm currently running running 2 VMs Win Server 2012 and would like to test Failover Clustering for one of our FTP server
I've added on both servers an additional partition, formatted and Online, but cannot bring the disk online from the cluster manager
Assistance would be greatly appreciated
Thank you
JabuYou posted this in the Exchange Forum, your best bet for an answer would be to post this in the Windows Server Forum.
https://social.technet.microsoft.com/Forums/en-US/home?forum=winserverClustering
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread -
Replicate win server 2008 r2 with win server 2012 r2
I have AD on win server 2008 R2
Can I replicate it with win server 2012 R2
Nagy AnwarHello,
there is no problem to add a new Windows Server 2012 R2 into the existing domain.
http://blogs.msmvps.com/mweber/2012/07/27/upgrading-an-active-directory-domain-from-windows-server-2008-or-windows-server-2008-r2-to-windows-server-2012/
Best regards
Meinolf Weber
MVP, MCP, MCTS
Microsoft MVP - Directory Services
My Blog: http://blogs.msmvps.com/MWeber
Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.
Twitter: -
Can i upgrade Win Server 2012 Standard to Win Serevr 2012 R2
1. Can i upgrade Win Server 2012 Standard to Win Server 2012 R2 ?
2. Is it free of Cost, or do i need to pay ??
3. can i upgrade without affecting working environment ?
----Tanu---1. Yes
2. No it's not free you have to buy the upgrade, unless you are already paying for Software Assurance.
3. Maybe. It depends upon the current implementation you have.
https://technet.microsoft.com/en-au/library/dn303416.aspx
https://technet.microsoft.com/en-us/windowsserver/dn527667.aspx
Don
(Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!) -
How to create a Pooled VDI infrastructure using Win server 2012 as VM image?
I have followed the "usual" way to build a pooled VDI desktop using Win7 or Win8 with success, but it fails when I use an image of Win Server 2012 as VM instead.
Am I overlooking something? Should I need to prepare the image in a different way? (Sysprep differently?)
ThanksHi,
Thank you for your posting in Windows Server Forum.
Can you specify the error which you are facing during VDI setup for server 2012?
I might think that you need to check the memory setting for server 2012, as might happens that due to less memory you can’t setup the VDI setup properly.
Memory: If the Master VM is configured with static memory, it must have at least 1024 MB as startup RAM. If the Master VM is configured with dynamic memory, the maximum RAM must be at least 1024 MB.
Please check beneath article for information.
Windows
Server 2012 2,500-user pooled VDI deployment guide (Doc)
Single Image Management for Virtual Desktop Collections in Windows Server 2012
Hope it helps!
Thanks.
Dharmesh Solanki -
Vpn connection from administration win server 2012 r2
hello every one i have win server 2012 for the connection vpn i need make setting as like subnetwork get access to the from main office to the district office?
Hi,
Can you ping normally to other server from your server 2012 R2?
Does user has enough permission for remoting?
Can you telnet port 3389 and see whether RDP port is opened?
Please try to perform remote desktop with “mstsc /admin” switch and check the result. Addition try to perform the remote session with IP address specified for that server. Also you can try PowerShell command to enable remote desktop.
set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server'-name "fDenyTSConnections" -Value 0
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] -
Hi,
We use an edi software installed on a Server 2012.
When we use this software accessing the server by Remote Desktop, everything works normal.
When we use the same software accessing the server by web access, (...softname/RDWeb/Feed/webfeed.aspx) where was published this soft application, we lost some windows after different actions.
For example if I do a modification for a value in one specific window, after I click save, that window disappear but can appear again only if I click again anywhere on my desktop.
In other words that window lost the focus and probably is still open under another window. Clicking again anywhere, will reactivate it and that window appear again.
Can you please help me to find a solution to this problem?
Thank You!Hi,
For example if I do a modification for a value in one specific window, after I click save, that window disappear but can appear again only if I click again anywhere on my desktop.
Would you please tell us which window and what has been modified specifically?
Best Regards,
Amy
Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]
Maybe you are looking for
-
Hi there, I have used illustrator now for a long period of time. Recently I purchased Adobe CC. Had no problems with it untill now. It's like this. Whenever I try to make a circle (or, square, line or other forms) Illustrator makes lots and lots of m
-
How to create column for attachment in SharePoint 2013 Document Library.
I've created document Library where user can upload the file while click on Upload option (OOTB). Now in this Library I want to create one more column where user can put some comment and attach one more file for reference. For comment I can create "
-
i downloaded the new 7 update on my ipad. it now will not charge to 100% and loses power even when not in use. any solutions ??
-
What is the benefit of SCJA exam
Hi all Can you explain to me why to get certified in SCJA while I am ready to take the SCJP exam. I already have 6 years of experience in Java. Is SCJA a pre-request to SCJP? Is there a preparation book for SCJA? regards
-
Need to have a form that is emailed to me that has a attach file button, the form is for registration. After filling out the form there should be a button to attach a file, which will be emailed to me along with the form when the Submit button is pre