## Powershell script for me. Call it using:
#> install.ps1 –Mode Install
#> install.ps1 –Mode Uninstall

The uninstall looks at all the files in the content cache dir and removes them 
from the all users desktop (this is for Win7 but you can easily modify for 
other platforms if you’re still using XP

I keep the Powershell script in the root of the package directory and create a 
links DIR under it with the links I want to copy in.

############## BEGIN SCRIPT ##############
Param(
                [Parameter(Mandatory=$True)]
                [string]$Mode
                )

$DestinationDir = "C:\Users\Public\Desktop"
$CurrentDir = pwd
$SourceDir = (($CurrentDir.Path) + "\Links")
$FileList = Get-ChildItem $SourceDir

Function Install `
    {
    Robocopy $SourceDir $DestinationDir *.*
    Exit 0
    }

Function Uninstall `
    {
    ForEach ($File in $FileList) `
        {
        Remove-Item -Force ($DestinationDir + "\" + $File.Name)
        }
    Exit 0
    }

& $Mode

####### END SCRIPT #################

From: [email protected] [mailto:[email protected]] On 
Behalf Of Eswar Koneti
Sent: Tuesday, 12 November 2013 11:34 AM
To: [email protected]
Subject: RE: [mssms] Deploy RDP Shortcut using SCCM 2012

Have you seen this article using simple vbs?

http://eskonr.com/2013/04/sccm-vbscript-to-add-shortcut-files-to-users-desktop-profile-or-favorites/

Sent From Galaxy Note, please excuse any typo's as result.
www.eskonr.com<http://www.eskonr.com>

--- Original Message ---

From: "Bogdan Radu" <[email protected]<mailto:[email protected]>>
Sent: November 11, 2013 6:34 PM
To: [email protected]<mailto:[email protected]>
Subject: [mssms] Deploy RDP Shortcut using SCCM 2012
Hello,

Anyone know a smart way of deploying a RDP Shortcut using SCCM 2012 ?

RDP Shortcut target should look like this: mstsc.exe /v:192.168.1.1

Thank you.

Regards.






Reply via email to