Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

geplante Tasks per Skript

Empfohlene Antworten

Veröffentlicht

Hey Folks!

Ich möchte bei mir im Netzwerk gerne geplante Tasks per VBS erstellen. An sich kein Problem:


Set objWMIService = GetObject("winmgmts:\\.\root\cimv2") 

Set objNewJob = objWMIService.Get("Win32_ScheduledJob")

errJobCreated = objNewJob.Create ("c:\tasks\del_temp.vbs", "********145500.000000-200",True,1 Or 4 Or 16, , , JobID) 

WScript.Echo errJobCreated 

Und wenn man sich erstmal durch das Datumsformat gewurstelt hat geht auch das. Aber nun die Frage:

Kann man, und wenn wie, auf diese Art und weise einen Job erstellen, der z.B. beim Starten des Computers ausgeführt wird - diese Option steht beim manuellen erstellen von geplanten Tasks schliesslich auch zur Verfügung (nicht beim Anmelden, was Autostartmäßig wäre)?

Schonmal THX für eventuelle Hilfe...

MfG Erratum

vorab: Win32_ScheduledJob hat *nichts* mit "geplante tasks" zu tun.

The Win32_ScheduledJob WMI class represents a job created with the AT command. The Win32_ScheduledJob class does not represent a job created with the Scheduled Task Wizard from the Control Panel. You cannot change a task created by WMI in the Scheduled Tasks UI.

du solltest das hier IMO mit schtasks.exe automatisieren:

schtasks /create /tn Taskname /tr AuszuführenderTask /sc onstart [/sd Startdatum] [/it] [/ru {[Domäne\]Benutzer [/rp Kennwort] | System}] [/s Computer [/u [Domäne\]Benutzer [/p Kennwort]]]

zusätzlich wäre immer die info wertvoll, um welches system es sich handelt - windows 98? server 2008?

s'Amstel

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.