This repository has been archived on 2020-04-19. You can view files and clone it, but cannot push or open issues or pull requests.
2017-07-14 23:58:11 +02:00
|
|
|
function Remove-Public-Desktop-Icons
|
|
|
|
{
|
|
|
|
$computername = Read-Host 'Enter the name of the computer'
|
|
|
|
Remove-Item \\$computername\c$\users\public\desktop\*.lnk `
|
|
|
|
-Exclude "SAP Logon Pad.lnk"
|
2017-07-15 12:18:07 +02:00
|
|
|
Write-Host
|
|
|
|
Write-Host 'Desktop icons removed' -backgroundcolor green
|
|
|
|
Write-Host
|
|
|
|
Read-Host 'Press a key to continue'
|
2017-07-14 23:58:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
Remove-Public-Desktop-Icons
|