VBScript - Aufruf von bestimmter Stelle auf Remoteserver
Hallo !
Ich bin noch recht neu im VBScript Bereich, habs aber mittlerweile hinbekommen, via Remote-Verbindung
auf einen anderen PC zuzugreifen.
Mein Problem:
Ich rufe eine Batch-Datei auf, diese muss hier allerdings in C:\WINDOWS\system32 liegen.
Ich bräuchte die File bzw den Aufruf allerdings in C:\temp. Ich tip mal drauf, das liegt an /root/cimv2 ?
Wie kann ich dies abändern ?
*thx*
Ich bin noch recht neu im VBScript Bereich, habs aber mittlerweile hinbekommen, via Remote-Verbindung
auf einen anderen PC zuzugreifen.
Set objWMIService = getobject("winmgmts://"_
& strComputer & "/root/cimv2")
Set objProcess = objWMIService.Get("Win32_Process")
Set objProgram = objProcess.Methods_( _
"Create").InParameters.SpawnInstance_
objProgram.CommandLine = strExe
Set strShell = objWMIService.ExecMethod( _
"Win32_Process", "Create", objProgram)
Mein Problem:
Ich rufe eine Batch-Datei auf, diese muss hier allerdings in C:\WINDOWS\system32 liegen.
Ich bräuchte die File bzw den Aufruf allerdings in C:\temp. Ich tip mal drauf, das liegt an /root/cimv2 ?
Wie kann ich dies abändern ?
*thx*
Please also mark the comments that contributed to the solution of the article
Content-Key: 110959
Url: https://administrator.de/contentid/110959
Printed on: April 19, 2024 at 14:04 o'clock
2 Comments
Latest comment