Hello,
I need to automate WebFeed insertion for Remote App Users at user logon.
RDS 2012 R2 in place. Remote Apps are provided to W7 clients.
Currently, WebFeed link must be inserted manually in each user's Control Panel\RemoteApp and Desktop Connections. There
is no straight forward way from Microsoft.
But there is a script and instruction I found on web...
I followed the instruction... Created GPO. GPO applies to user but nothing happens.
Can somebody check the script and the instruction that I could wrongly applied.
In instruction there is no word about changing something in the script but only wcx file that the script should
use.
The script is below and here is my .wcx file:
______________________
<?xml version="1.0? encoding="utf-8? standalone="yes"?>
<workspace name="Enterprise Remote Access" xmlns="http://schemas.microsoft.com/ts/2008/09/tswcx" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<defaultFeed url="https://my_webserver_real_FQDN/rdweb/Feed/webfeed.aspx" />
</workspace>
_______________________________________
were in my wcx when copied the lines from web.
Still not works.
I
checked Application log, PowerShell and RemoteApp in eventviewer under user session
Everything is clean.
Were I can check the script execution log?
When the user with applied script logs in, the icon of Remote
connection appears for 10 seconds on the task bar and disappears.
Looks like it's trying...
Check please if the script really should not be touched and provide some troubleshooting
steps.
Thanks!
****************************
INSTRUCTIONS from
the link:
http://www.concurrency.com/infrastru...rver-2012-rds/
"Unfortunately
Windows 7 clients are out of luck here. If you really want to use GPO to deploy
RemoteApps to Windows 7 clients, then you have to jump through a few
hoops.
Create a new GPO and under User ConfigurationPoliciesWindows
SettingsScripts, double click Logon and click the
Show Files
button. This will open an explorer window where you can copy files that will be
saved within this GPO. Download the
Install-RADCConnection.ps1 script from the TechNet gallery and
save it there. Also create a new Text file named something like feed.wcx,
open it in Notepad and paste in the following three lines of text:
<?xml
version=”1.0″ encoding=”utf-8″ standalone=”yes”?>
<workspace
name=”Enterprise Remote Access” xmlns=”http://schemas.microsoft.com/ts/2008/09/tswcx”xmlnss=”http://www.w3.org/2001/XMLSchema”>
<defaultFeed
url=”https://rds.domain.com/RDWeb/Feed/webfeed.aspx”
/>
</workspace>
Now select the PowerShell Scripts tab and
click the Add button.
Click Browse and select the .ps1 file and
for the parameters enter the name of the wcx file. Click OK twice and you are
ready to scope that policy to a set of users.
<# .SYNOPSIS Installs a connection in RemoteApp and Desktop Connections. .DESCRIPTION This script uses a RemoteApp and Desktop Connections bootstrap file(a .wcx file) to set up a connection in Windows 7 workstation. No user interaction is required.It sets up a connection only for the current user. Always run the script in the user's session. The necessary credentials must be available either as domain credentials or as cached credentials on the local machine. (You can use Cmdkey.exe to cache the credentials.) Error status information is saved in event log: (Applications and Services\Microsoft\Windows\RemoteApp and Desktop Connections). .Parameter WCXPath Specifies the path to the .wcx file .Example PS C:\> Install-RADCConnection.ps1 c:\test1\work_apps.wcx Installs the connection in RemoteApp and Desktop Connections using information in the specified .wcx file. #> Param( [parameter(Mandatory=$true,Position=0)] [string] $WCXPath ) function CheckForConnection { Param ( [parameter(Mandatory=$true,Position=0)] [string] $URL ) [string] $connectionKey = "" [bool] $found = $false foreach ($connectionKey in get-item 'HKCU:\Software\Microsoft\Workspaces\Feeds\*' 2> $null) { if ( ($connectionKey | Get-ItemProperty -Name URL).URL -eq $URL) { $found = $true break } } return $found } # Process the bootstrap file [string] $wcxExpanded = [System.Environment]::ExpandEnvironmentVariables($WCXPath) [object[]] $wcxPathResults = @(Get-Item $wcxExpanded 2> $null) if ($wcxPathResults.Count -eq 0) { Write-Host @" The .wcx file could not be found. "@ exit(1) } if ($wcxPathResults.Count -gt 1) { Write-Host @" Please specify a single .wcx file. "@ exit(1) } [string] $wcxFile = $wcxPathResults[0].FullName [xml] $wcxXml = [string]::Join("", (Get-Content -LiteralPath $wcxFile)) [string] $connectionUrl = $wcxXml.workspace.defaultFeed.url if (-not $connectionUrl) { Write-Host @" The .wcx file is not valid. "@ exit(1) } if ((CheckForConnection $connectionUrl)) { Write-Host @" The connection in RemoteApp and Desktop Connections already exists. "@ exit(1) } Start-Process -FilePath rundll32.exe -ArgumentList 'tsworkspace,WorkspaceSilentSetup',$wcxFile -NoNewWindow -Wait # check for the Connection in the registry if ((CheckForConnection $connectionUrl)) { Write-Host @" Connection setup succeeded. "@ } else { Write-Host @" Connection setup failed. Consult the event log for failure information: (Applications and Services\Microsoft\Windows\RemoteApp and Desktop Connections). "@ exit(1) }
--- When you hit a wrong note its the next note that makes it good or bad. --- Miles Davis