DoctorDeploy.com - Das unabhängige Forum für Installation und Softwareverteilung Your Ad Here    
Doctor Deploy: software deployment, - distribution, repackaging, msi, windows installer, client management, installation, setup : forum - discussion boards 
  Search   •  RSS/Newsletter   •  Shop   •  Register  •  Profile  •  Log in to check your private messages  •  Log in
 Prüfen ob NIAGNT32 auf Client aktiv ist View next topic
View previous topic
Post new topicReply to topic
Author Message
RainerS
Jeroboam
Jeroboam


Joined: 14 Jun 2004
Posts: 75
Location: Nuernberg / Germany

PostPosted: Wed, 30.Aug.2006, 15:13 Back to top

Hallo Leute,

bei unseren Rechnern kommt es immer wieder mal vor, dass sich der NetInstall Agent auf unerklärliche Weise beendet (oder vom kundigen User beendet wird Wink ).
Wenn der Rechner dann nur selten neu gebootet wird (Agent wird bei uns über Logon Script gestartet), ist das natürlich schlecht, weil ich den Rechner über NetInstall nicht mehr erreiche!

Ich habe nun ein kleines Projekt gemacht (geflagt auf Computerbezogen per Service installieren, damit es auch ohne Agent läuft):

-------------------------------------------
WMISimpleQuery('\\.\root\cimv2','Win32_Process','Name=niagnt32.exe','_')
Name

If not %_Name%='Niagnt32.exe'
...AddIni('\\niorg\NIAgnt$\%Computername%_%Username%_Agent.log')
...[%Date%_%time%]
...%_Name%=1

...NetInstall Agent läuft nicht!

...EndProc
EndProc

Ich frage über WMI ab, ob der Prozess NIAGNT32.exe läuft, wenn nicht, dann schreibt er eine INI- Datei in ein Server- Share weg, so dass ich dann prüfen kann, welcher Rechner meine Hilfe benötigt Smile.

So weit so gut, das funktioniert auch.......aber, ich bekomme dann natürlich auch eine INI weggeschrieben, wenn der Rechner läuft, aber kein User angemeldet ist, weil ja dann auch kein Agent läuft.
Dieser Fall ist ja aber o.k., benötigt auch kein Eingreifen.

Habt Ihr eine Idee, wie ich das noch wegfiltern kann, also irgendwie mit einer WMI- Abfrage, ob ein Interaktiver User angemeldet ist?
Wenn ja, welche WMI- Klasse in NetInstall nehme ich da?

Vielen Dank im Voraus

_________________
Grüße

Rainer
View user's profileSend private messageSend e-mailVisit poster's website
Frank Scholer
Imperial
Imperial


Joined: 13 Jun 2004
Posts: 22
Location: Germany

PostPosted: Wed, 30.Aug.2006, 15:51 Back to top

Hallo Rainer,

mach es doch genauso wie das SPD: prüfe, ob es einen Prozess EXPLORER.EXE gibt. Wenn ja, ist jemand angemeldet (weil ja auch schon die Start-Leiste die erste Instanz des Explorers ist), wenn nein, genau nicht...

HTH, Gruß Frank
View user's profileSend private messageSend e-mailVisit poster's website
RainerS
Jeroboam
Jeroboam


Joined: 14 Jun 2004
Posts: 75
Location: Nuernberg / Germany

PostPosted: Thu, 31.Aug.2006, 07:01 Back to top

Hallo Frank,

auf das naheliegendste kommt man oft als letztes Smile.....

Danke Dir!


P.S.: Grüße an Deinen Kollegen Hendrik, der am Montag auf Consulting bei uns war Smile!

_________________
Grüße

Rainer
View user's profileSend private messageSend e-mailVisit poster's website
AddThis Social Bookmark Button
Display posts from previous:      
Post new topicReply to topic


 Jump to:   



View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Service provided by flatbyte.com :: Powered by phpBB :: FI Theme :: Imprint :: All times are GMT + 1 Hour