Remote control for SCCM 2012 deploy

Topics: Archive - Deployment Scripts
Mar 10, 2014 at 2:00 PM
Little Script I gave to local IT to deploy the 2012 remote logon piece of SCCM 2012.
First zip the 2012 remoteviewer into a self-extracting zip. I chose "c:\2012 remote" as my directory and used 7zip SFX. Put the 2012remote.exe in files dir.

*===============================================

* INSTALLATION

$installPhase = "Installation"

*===============================================

Execute-Process -FilePath "2012remote.exe" -Arguments '-o"c:\" -y' -WindowStyle Hidden

*===============================================

* POST-INSTALLATION

$installPhase = "Post-Installation"

*===============================================

# Perform post-installation tasks here

# Display a message at the end of the install
New-Shortcut -Path "$envProgramData\Microsoft\Windows\Start Menu\2012 remote control.lnk" -TargetPath "C:\2012 remote\CmRcViewer.exe" -IconLocation "C:\2012 remote\CmRcViewer.exe" -Description "2012 Remote Control" -WorkingDirectory "$envHomeDrive\$envHomePath"

*===============================================

* UNINSTALLATION

} ElseIf ($deploymentType -eq "uninstall") { $installPhase = "Uninstallation"

*===============================================

Show-InstallationProgress
Remove-item 'C:\2012 remote\' -Recurse
remove-item "$envProgramData\Microsoft\Windows\Start Menu\2012 remote.lnk"
Feb 2, 2015 at 2:50 PM
files I used
CMRcViewer.exe
RDPCORESCCM.dll
folder from console install I386\usually 00000409 or something like this