Functions/Open-RunAdvertisedPrograms.ps1
|
function Open-RunAdvertisedPrograms { <# .Notes AUTHOR: Skyler Hart LASTEDIT: 08/18/2017 21:10:15 KEYWORDS: REQUIRES: #Requires -Version 3.0 #Requires -Modules ActiveDirectory #Requires -PSSnapin Microsoft.Exchange.Management.PowerShell.Admin #Requires -RunAsAdministrator .LINK https://wanderingstag.github.io #> [CmdletBinding()] [Alias('rap')] param() if (Test-Path "C:\Windows\SysWOW64\CCM\SMSRAP.cpl") {Start-Process C:\Windows\SysWOW64\CCM\SMSRAP.cpl} elseif (Test-Path "C:\Windows\System32\CCM\SMSRAP.cpl") {Start-Process C:\Windows\System32\CCM\SMSRAP.cpl} else {Throw "Run Advertised Programs not found"} } |