> #create a new shortcut of shutdown
> $ShutdownShortcutPath = "$env:ProgramData\Microsoft\Windows\Start Menu\Programs\Shutdown.lnk"
> $ShutdownShortcut = $WshShell.CreateShortcut($ShutdownShortcutPath)
Ooopps - und was ist $WshShell? Doch nicht "Nothing"? :-D
NO THEY ARE NOT EVIL, if you know what you are doing:
Good or bad GPOs?
Wenn meine Antwort hilfreich war, freue ich mich über eine Bewertung! If my answer was helpful, I'm glad about a rating!