Determine a computer with uptime more than week and notify Administrator

Korida8

New Member
Joined
Sep 21, 2021
Messages
1
Reaction score
6
Good day to all of you.

I've searched through TechNet for uptime scripting and had found only scripts and ways to find out the uptime.

As I am too bad at programming and scripting (trying to study now but goes badly) I ask for your generous help.

There are a few users that do not reboot their computers for an amount of time what brings problems with installing updates via WSUS and starting new parameters from GPO. I need a VB script (WInXP \ Win7 \ Win8 all present in AD) to run as a scheduled task on all computers which would check uptime of a computer and if it is more than a week - send me a message or simply save a file on a network share with computer name and uptime.
 
mhm, I wonder why you asked such a thing on a mcpe server forum on general discussion xD, its computer science thing
Anyways
Idk if PowerShell will help or not, I've never touched things like this before
View reply.
 
Good day to all of you.

I've searched through TechNet for uptime scripting and had found only scripts and ways to find out the uptime.

As I am too bad at programming and scripting (trying to study now but goes badly) I ask for your generous help.

There are a few users that do not reboot their computers for an amount of time what brings problems with installing updates via WSUS and starting new parameters from GPO. I need a VB script (WInXP \ Win7 \ Win8 all present in AD) to run as a scheduled task on all computers which would check uptime of a computer and if it is more than a week - send me a message or simply save a file on a network share with computer name and uptime.

Win11 to?
View reply.
 
Good day to all of you.

I've searched through TechNet for uptime scripting and had found only scripts and ways to find out the uptime.

As I am too bad at programming and scripting (trying to study now but goes badly) I ask for your generous help.

There are a few users that do not reboot their computers for an amount of time what brings problems with installing updates via WSUS and starting new parameters from GPO. I need a VB script (WInXP \ Win7 \ Win8 all present in AD) to run as a scheduled task on all computers which would check uptime of a computer and if it is more than a week - send me a message or simply save a file on a network share with computer name and uptime.

Thanks for bringing that up, Checking through and verifying system stability is quite important especially when scaling up with interests and with enterprise solutions.
I'm not too familiar with Visual Basic although I do know that you can check and verify system uptime through task manager as shown here with Windows 10:
upload_2021-9-21_20-5-9.png


I also found that you can deploy checks to see the system uptime on many connected computers through scripts visible on Microsoft Technet and other online platforms although I'm not too sure how to have that automated or how to have specific systems that are connected report back if your uptime exceeds a certain value.

I suppose you could use something like Grafana and Prometheus on your host to graph and notify according to the data that is collected but I'm not too sure about specifics.
I've used Grafana and Prometheus before to check network uptime and speed graphs through an awesome github project called Internet Pi hosted by Jeff Geerling.
I set it up after some configuration to ping me on Discord to notify me that the internet went down as well as information regarding downtime and stuff.

Unfortunately though, I don't believe that I could sufficiently help with monitoring of system uptime as that is outside my area of expertise although I hope the resources I provided serve as helpful for what you are setting out to do.

Also another word of advice, I wouldn't recommend using Windows XP or 7 in an enterprise or residential environment due to both versions being unsupported and insecure for modern applications even if 3d Pinball Space Cadet was an absolute bop and Aero aged really well.
View reply.
 
I think theres a way to run a exe file to detect that but I'm not studying about system things... My first idea of making a cpp code of this was to collect the uptime of the system and save it in a local data base.
If slicer doesn't know, then I think only developers can help you xD
Also xp and win7 is out of my reach so I cant really help, it's alr too old but I miss them
View reply.
 
Hi Korida, you can check your computer's uptime and installation date by right-clicking the taskbar, choose Task Manager, or tap Ctrl+Shift+Escape to open it. Now on Windows 8, you need to click the Performance tab and look under “Uptime” at the bottom of the window. See more solutions here https://appuals.com/check-your-computers-uptime-and-installation-date/ now. Now for Windows 7 or Vista, you’ll also get this information on the Performance tab look for “Uptime” under System. For the sake of knowing about the installation date open the Command Prompt tap Windows Key + R, write cmd into the Run dialog, and click the option of Enter. Here write the instruction in the bracket (systeminfo | find /i “Original”) into the Command Prompt window and click Enter. For Windows 7 and Vista you can go for systeminfo | find “Original” this command.
View reply.
 
I might have accidentally broke two and a half of my braincells of mindlessly scrolling in this thread for approximately 6.9 seconds, believe it or not
View reply.
 

Users Who Are Viewing This Thread (Total: 0, Members: 0, Guests: 0)

Back
Top