mr.white
Goto Top

RemoteApp (SAPGUI Logon) für User als "Icon" auf dem Desktop zur Verfügung stellen (Windows 2012 R2)

Guten Morgen zusammen,

ich weiß (bin mir ziemlich sicher), dass es möglich ist installierte RemoteApp's via Terminalserver auf jeweilige Clients zu verteilen zumindest auf die Clients, indem die User mit der erforderlichen Berechtigung arbeiten.
Wenn ich ein Programm publiziere kann ich über den Link "https://(servername)/RDWeb/" ganz bequem die Apps starten - alles schön und gut.

Ich bin mir auch ziemlich sicher, dass es auch die Möglichkeit gibt die "Apps" als "icon" Shortcut wie z.B. unter Programme etc. zu verteilen.
Dass es auch manuell funktioniert via "RemoteApp- und Desktopverbindungen" kenne ich, ich kann es allerdings für einen großzahl von User nicht gewährleisten - deswegen wäre das natürlich sehr bequem z.B. via GPO oder ähnlich in gewisser Weise zu verteilen, sodass es auf dem Desktop beim User angezeigt wird.

Es handelt sich hierbei um einen Windows 2012 R2 Server.
Ich bin euch sehr dankbar für eure Hilfen.

Vielen Dank und frohes schaffen face-smile

MfG
Mr.White

Content-Key: 275304

Url: https://administrator.de/contentid/275304

Printed on: April 23, 2024 at 13:04 o'clock

Member: Dani
Dani Jun 22, 2015 updated at 07:48:09 (UTC)
Goto Top
Moin,
über die Microsoft Script Center wird ein kl. Powershell-Skript bereitgestellt, welches die Remoteverbindung einbindet und die entsprechenden Programme im Startmenü anzeigt. Leider funktioniert dieses nicht immer zuverlässig und sauber. Daher haben wir ein paar Veränderungen am dem Script vorgenommen:
<#
.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 
    )
 
    [bool] $bFound = $false
    
    Get-ChildItem -Path Registry::HKEY_CURRENT_USER\Software\Microsoft\Workspaces\Feeds\* | Select PsPath | foreach {
        
        if( ( (Get-ItemProperty -Path $_.PsPath | Select -ExpandProperty url) -eq $URL) -and ($bFound -eq $false) ) {
            $bFound = $true
        }
    }
    return $bFound
}


# 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!" -ForegroundColor Red  
}
else {
    if ($wcxPathResults.Count -gt 1) {
        Write-Host "Please specify a single .wcx file." -ForegroundColor Red  
    }
    else {
        [string] $wcxFile = $wcxPathResults.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!" -ForegroundColor Red  
        }
        else {
            if (CheckForConnection $connectionUrl) {
                Write-Host "The connection in RemoteApp and Desktop Connections already exists." -ForegroundColor Yellow  
            }
            else {
                
                #
                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. !" -ForegroundColor Green  
                }
                else {
                    Write-Host "Connection setup failed. `n  
                                Consult the event log for failure information: `n
                                (Applications and Services\Microsoft\Windows\RemoteApp and Desktop Connections)." -ForegroundColor Red  
                }
            }
        }
    }
}

pause
Kann leider nur pro User ausgeführt werden, was aber natürlich seinen Sinn hat.


Gruß,
Dani
Member: Mr.White
Mr.White Jun 22, 2015 at 07:59:29 (UTC)
Goto Top
Hi Dani,

danke dir für deine Hilfe - also gibt es keine einfachere Lösung?
D.h. man müsste diesen Skript evtl. als "Datei" erstellen und ausführen?

Danke dir für deine Hilfe.

VG
Mr.White
Member: Dani
Dani Jun 22, 2015 updated at 08:10:57 (UTC)
Goto Top
danke dir für deine Hilfe - also gibt es keine einfachere Lösung?
Ich wüsste nichts... aber das mag nichts heißen. Kollege @DerWoWusste ist in solchen Themen sicherlich fitter wie ich.

D.h. man müsste diesen Skript evtl. als "Datei" erstellen und ausführen?
Jup, eine GPO anlegen, unter Benutzerkonfiugration einbinden und ausführlich testen.


Gruß,
Dani
Member: Th0mKa
Solution Th0mKa Jun 22, 2015, updated at Jun 24, 2015 at 06:47:28 (UTC)
Goto Top
Moin,

im Technet gibts dafuer eine Anleitung.
https://technet.microsoft.com/en-us/library/dd772639(v=ws.10).aspx

VG,

Thomas
Member: DerWoWusste
Solution DerWoWusste Jun 22, 2015, updated at Jun 24, 2015 at 06:47:30 (UTC)
Goto Top
Moin.

Haben wir so gemacht:
75edd7a268ac88ab719b90abcf10fdf6
Von dem Bild aus kannst Du analog auf Deine Anwendungen schließen.
Member: Mr.White
Mr.White Jun 22, 2015 at 10:06:26 (UTC)
Goto Top
Hi tkr104,

danke dir für deine Antwort, habe ich adhoc nicht gefunden - ich schau mal weiter nach.

VG
Mr.White
Member: Mr.White
Mr.White Jun 22, 2015 at 10:07:06 (UTC)
Goto Top
Hi DerWoWusste,

vielen Dank für deinen Tipp - muss ich auf jedenfall testen face-smile.

Melde mich dann nochmal.

VG
Mr.White