Es kommt vor, das man das Icon Arbeitsplatz auf dem Desktop umbenennen möchte.
Zum Beispiel mit dem Computernamen.
<#
.NOTES
===========================================================================
Created with: SAPIEN Technologies, Inc., PowerShell Studio 2016 v5.2.127
Created on: 13.10.2016 05:44
Created by: commandline.info
Organization:
Filename: icon_name_arbeitsplatz.ps1
===========================================================================
.DESCRIPTION
A description of the file.
Icon-Description from Desktop for "My Computer" will be changed to "Computername"
#>
$computer = $env:COMPUTERNAME
Try {
$ShellVariable= new-object -comobject shell.application
$NameSComputer = $shellvariable.Namespace(17)
$NameSComputer.self.name = "$computer"
Write-Host "Script Check passed"
Exit 0 }
Catch {
Write-Host "Script Check Failed"
Exit 1001 }