Files
management-scripts/Remove-TeamViewerDesktopShortcut.ps1
T

10 lines
381 B
PowerShell
Raw Normal View History

2020-05-22 14:35:46 -04:00
$Paths = @(
"${Env:SystemDrive}\Users\Public\Desktop\TeamViewer 10 Host.lnk",
"${Env:SystemDrive}\Users\Public\Desktop\TeamViewer 12 Host.lnk",
"${Env:SystemDrive}\Users\Public\Desktop\TeamViewer 14 Host.lnk",
"${Env:SystemDrive}\Users\Public\Desktop\TeamViewer Host.lnk" )
Foreach ( $path in $Paths )
{
If ( Test-Path $path ) { Remove-Item $path -Force }
2019-11-11 19:22:39 -05:00
}