rblog

Me so lonely

This message was sent to my personal FB-account, quite sure that she (is it really) only did try to contact me

Hello
I saw your nice profile,and something motivated me to communicate with you,My Dear in your usual time may it pleases you to
write me back in email address so that i can send you my pictures and also tell you more about
myself.A friendship is the foundation build on other relative things to come.May God bless you as i wait impatiently to hear
from you. Your lonely friend,
Christiana Edwards
PLEASE CONTACT ME DIRECT TO MY EMAIL ADDRESS. FOR FURTHER COMMUNICATION

Kinda funny finding my profile …nice… since it is blocked as much as possible for outsiders. Well, well, just by looking at my profile picture she guessed that I was such a nice guy.

Dalslands X-Country 2014

Yesterday Espen and I with Roy as the serviceman headed for Bengtsfors to participate in Dalslands X-Country. 60 km of mostly gravel roads, some single tracks but not very technical. Fun to compete again, and extra fun since we participated as a team – ending up as #7 of 23 teams, not to bad for two fathers of young children.

And when heading home stopping at Töcksfors to eat a burger and get some b vitamins.

(Roy / Instagram: royzvoice)

LED-lights mounted

Bought a pair of led lamps about a month ago, hoping for an easy job mounting them, but no. Turned out that there was a lot of rust on the roof, so that needed to be repaired. Now that is done, and I have mounted the rear lights.

They turn night into day

How to get uptime for a Windows service

Needed to know the uptime of a service on a Windows 2012 server to verify that the suggested solution for restarting all Splunk Universial Forwarders did work, see answers.splunk.com/../how-can-i-restart-all-my-forwarders.

Solution found here /blogs.technet.com/…/how-can-i-get-the-uptime-of-a-service, did make some minor adjustments to the vbscript as shown below.

strComputer = "."

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

Set colServices = objWMIService.ExecQuery _
    ("Select * From Win32_Service WHERE displayname = 'SplunkForwarder'")
 
For Each objService in colServices

    intProcessID = objService.ProcessID

    Set colProcesses = objWMIService.ExecQuery _
        ("Select * From Win32_Process Where ProcessID = " & intProcessID)

    For Each objProcess in colProcesses
        Wscript.Echo objService.Name + "/" + objProcess.Name + " " + objProcess.CreationDate
    Next
Next

Running it from the Powershell prompt like this PS D:\Temp> cscript.exe .\uptime.vbs

Hjem