Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.comp.os.ms-windows.misc > #234552
| From | Werner Tann <wtann@gmx.at> |
|---|---|
| Newsgroups | de.comp.os.ms-windows.misc |
| Subject | Re: Powershell function ohne Admin-Rechte |
| Date | 2026-01-04 08:25 +0100 |
| Message-ID | <mruivuFnl3cU1@mid.individual.net> (permalink) |
| References | <HGAcmfIYVaB@point04.soemtron.de> |
christian_dcomwm-ENTF@soemtron.de (Christian @Soemtron) schrieb:
> ==test.ps1==
> write-host "Start"
> function FTest {
> write-host "Function"
> }
> ============
Die erste Zeile soll wohl Kommentar sein. Wenn die so im Skript steht,
kommen Fehlermeldungen. Setze ein # davor zum Auskommentieren.
"function" definiert nur die Funktion, ruft sie aber noch nicht auf!
Es braucht also hintennach den Aufruf.
So geht's:
# ==test.ps1==
write-host "Start"
function FTest {
write-host "Function"
}
FTest
Back to de.comp.os.ms-windows.misc | Previous | Next — Previous in thread | Next in thread | Find similar
Powershell function ohne Admin-Rechte christian_dcomwm-ENTF@soemtron.de (Christian @Soemtron) - 2026-01-03 20:56 +0200
Re: Powershell function ohne Admin-Rechte Werner Tann <wtann@gmx.at> - 2026-01-04 08:25 +0100
Re: Powershell function ohne Admin-Rechte Werner Tann <wtann@gmx.at> - 2026-01-04 11:54 +0100
Re: Powershell function ohne Admin-Rechte christian_dcomwm-ENTF@soemtron.de (Christian @Soemtron) - 2026-01-04 13:21 +0200
Re: Powershell function ohne Admin-Rechte Arno Welzel <usenet@arnowelzel.de> - 2026-01-08 14:06 +0100
Re: Powershell function ohne Admin-Rechte Joerg Gerlach <jger@gmx.de> - 2026-01-05 19:29 +0100
Re: Powershell function ohne Admin-Rechte christian_dcomwm-ENTF@soemtron.de (Christian @Soemtron) - 2026-01-06 11:16 +0200
Re: Powershell function ohne Admin-Rechte christian_dcomwm-ENTF@soemtron.de (Christian @Soemtron) - 2026-01-13 09:32 +0200
Re: Powershell function ohne Admin-Rechte "Christoph Schneegans" <christoph@schneegans.de> - 2026-01-14 17:49 +0100
Re: Powershell function ohne Admin-Rechte christian_dcomwm-ENTF@soemtron.de (Christian @Soemtron) - 2026-01-15 21:53 +0200
Re: Powershell function ohne Admin-Rechte "Christoph Schneegans" <christoph@schneegans.de> - 2026-01-16 08:21 +0100
Re: Powershell function ohne Admin-Rechte christian_dcomwm-ENTF@soemtron.de (Christian @Soemtron) - 2026-01-19 11:41 +0200
Re: Powershell function ohne Admin-Rechte "Christoph Schneegans" <christoph@schneegans.de> - 2026-01-23 23:28 +0100
csiph-web