Looking for Help - DCM Item to check if Computer Rebooted within 7 days

Hi,
I would like to use DCM to tell me if computers have rebooted within 7 days.  I would like to audit compliance for this reboot status. 
I would like to target my Windows servers (14K of them) to tell me if they have rebooted recently.  Is there a way to do this in SCCM using DCM?
I've been looking at WQL query and think the LASTBOOTUPTime is a good place to check for the (well) last boot time.  But I am having trouble figuring out how to evaluate 7 days and use DCM to report on this for compliance.
Does anyone have any ideas...
Note: I have seen post on how to do this using hardware inventory data - but this is too slow for me as our hardware inventory SCCm client schedule is set to 2 weeks for servers.

Thanks for the script, we are using to see which system haven't rebooted on 35 days.
We had a few false non-compliant results based on the computer regional settings. 
I updated your script to and changed it look at days rather than hours.
strComputer = "."
 Set objWMIService = GetObject _
     ("winmgmts:\\" & strComputer & "\root\cimv2")
 Set colOperatingSystems = objWMIService.ExecQuery _
     ("Select * from Win32_OperatingSystem")
 For Each objOS in colOperatingSystems
     'dtmBootup = objOS.LastBootUpTime
     dtmLastBootupTime = WMIDateStringToDate(objOS.LastBootUpTime)
  txtLocalDateTime = WMIDateStringToDate(objOS.LocalDateTime)
     'dtmSystemUptime = DateDiff("h", dtmLastBootUpTime, Now)
  dtmSystemUptime = DateDiff ("d", dtmLastBootupTime, txtLocalDateTime)
     'Wscript.Echo "time since last reboot " & dtmSystemUptime
 Next
 Function WMIDateStringToDate(dtmBootup)
     WMIDateStringToDate = CDate(Mid(dtmBootup, 5, 2) & "/" & _
          Mid(dtmBootup, 7, 2) & "/" & Left(dtmBootup, 4) _
          & " " & Mid (dtmBootup, 9, 2) & ":" & _
          Mid(dtmBootup, 11, 2) & ":" & Mid(dtmBootup, _
          13, 2))
 End Function
 'dtmsystemuptime is hours since last reboot.  840 hours is 35 days.
 'changed to days
 if dtmSystemUptime < 35 then
 Result = "Good"
 wscript.echo Result
 Else
 Result = "Bad"
 wscript.echo Result
 End if

Similar Messages

  • Looking for Help with Hyperion to JAVA

    I am looking for help with connecting Hyperion to Java. We are in Maryland but would be willing to work out something for remote consulting. If you have experience with connecting web services, hyperion, and Java and would be interested in about 80 hours of consulting please contact me at:[email protected] x4846

    Hi,
    From your description, you want to achieve the following goal:
    Configure Exchange to filter the attachments if the size is over 10 MB and store it in a public folder, and then forward the email to Salesforce.
    Based on my knowledge, I'm afraid that it can't be achieved. Exchange can filter messages with attachments, but it couldn't store these attachments on public folder automatically. Also, I don't see any transport rule can do it.
    Hope my clarification is helpful.
    Best regards,
    Amy Wang
    TechNet Community Support

  • Looking for help with respect to configuring MS Exchange server to handle attachments over 10 MB for forwarding to Salesforce (Email-to-case).

    Looking for help with respect to configuring MS Exchange server to handle attachments over 10 MB for forwarding to Salesforce (Email-to-case).
    Problem - SFDC does not create cases from emails that have more than 10 MB of attachments. Our clients will not go-live if their clients cannot send in emails with attachments over 10 MBs
    Potential resolution - Configure MS exchange to strip off the attachments(if over 10 MB) and store it in a public folder, forward the email to Salesforce (so the case gets created or the email
    is associated to an existing case), the client should have some way to know if the attachments were stripped off and should be able to dlownload the attachments and continue with case resolution.
    Any help is appreicated!
    Thanks

    Hi,
    From your description, you want to achieve the following goal:
    Configure Exchange to filter the attachments if the size is over 10 MB and store it in a public folder, and then forward the email to Salesforce.
    Based on my knowledge, I'm afraid that it can't be achieved. Exchange can filter messages with attachments, but it couldn't store these attachments on public folder automatically. Also, I don't see any transport rule can do it.
    Hope my clarification is helpful.
    Best regards,
    Amy Wang
    TechNet Community Support

  • One question I am looking for help with is, when you hit the history button I want my last fifty pages to show up instead of just fifteen. Is it possible to

    one question I am looking for help with is, when you hit the history button I want my last fifty pages to show up instead of just fifteen. Is it possible to change that setting?
    TY

    The History menu can only show that fixed maximum of 15 as that is hard coded.
    Maybe this extension helps:
    *History Submenus Ⅱ: https://addons.mozilla.org/firefox/addon/history-submenus-2/

  • PLEASE PLEASE looking for help cant believe this terrible way to look for help

    looking for help to print my pictures by  by-passing pop-up window stating :access denied due to missing files.".. theres NO MISSING FILES

    looking for help to print my pictures by  by-passing pop-up window stating :access denied due to missing files.".. theres NO MISSING FILES

  • My new ipod classic 160 gb powered off and won't turn back on. if i plug in to computer, itunes will not open. if i start itunes first then plug in ipod, itunes freezes up. Looking for help. thanks

    my new ipod classic 160 gb powered off and won't turn back on. if i plug in to computer, itunes will not open. if i start itunes first then plug in ipod, itunes freezes up. Looking for help. thanks. Was not connected to the computer when ipod died.

    I have not heard of a good reason for this to happen or how to fix. 3 days later my screen lights up and says to connect to charger.... so its back "for now". Best music player on the market when it works.

  • Looking for sample template with the check on the bottom of the page

    Customer is looking for sample template with the check on the bottom of the page, anyone know of one? Their Bank doesn't like the check on the top of the page because when you rip the check from the stub is sometimes rips the microline. -Thanks

    Hi Dale,
    Check this one(template attached) : http://blogs.oracle.com/xmlpublisher/2006/04/13/#a12
    You just need to flip the invoice and check position,..
    regards..

  • Can anyone help on integrating Unifier with WebCenter Portal ? We are looking for a solution where we can show Unifier pages within WebCenter Portal application. Is this possible ?

    Can anyone help on integrating Unifier with WebCenter Portal ? We are looking for a solution where we can show Unifier pages within WebCenter Portal application. Is this possible ?

    If you simply would have posted here first, there are plenty of people who would have informed you of the current policy to have a data plan active on an account during the entire contract if purchasing a discounted smartphone.
    Unfortunately, there are just as many on here who would claim the people informing you about this policy of being Verizon plants spreading disinformation and trying to make people afraid to upgrade via this route.
    Yes this is a new policy, one which has been pointed out multiple times in these forums.  Good luck, but I doubt you will have an outcome over this which will make you happy.
    Verizon is closing as many loopholes to keep unlimited data as they can.

  • I have a question that I think I know the answer to, but am looking for confirmation.  I have a dell computer at home that has clip art available on it for putting pictures into documents.  Do I need to install an APP to get something similar to clip art?

    I have a question that I think I know the answer to, but am looking for confirmation.  I have a desktop computer at home that has clip art loaded onto it.  I recently got an iPad and am looking for something similar.  I assume I need to get an APP for it, and if that is correct, does anyone have one that they like?

    Sort of.  There is an app called art shop that gives you a place to park clip art.   But I don't think you really need it. 
    If you have a collection of clip art you want available, move it to the camera roll on your pad/ phone, then copy paste into your document the clip you want.
    You can get them into the camaera roll by putting them in a single event in your picture library and syncing them over,  or e mail them to your self, and save to the camera roll, or send them to drop box, and bring them down that way.
    The challenge is getting them all in one place to make it easy for you to find, which is why syncing might be the best approach in the long run.
    As near as I can tell there is not a ready made clip art collection in app format laying around.

  • Please help me. My YouTube app will not work. Every time I open it says 'cannot connect to youtube'. I have searched for help and tried resetting my settings and rebooting my ipad2 but nothing has solved the issue.

    Please help me. My YouTube app will not work. Every time I open it says 'cannot connect to youtube'. I have searched for help and tried resetting my settings and rebooting my ipad2 but nothing has solved the issue.

    Yes, I am connected to the Internet through my wifi. Everything is working fine with the e  eption of youtube.  I have reset all Internet settings and have tried synching to iTunes followed by rebooting.  This is all the advice I have found although none of it has been helpful.
    Has anyone else encountered this problem?

  • New Mac user looking for help with Finder, Preview, Keyboard, & Dock

    So about a month ago I switched over from a lifelong Windows user to a brand new MacBook Pro, and while I am adjusting pretty well, there are still some things that I haven't quite figured out.
    First up on the list is Finder! I like my files to be arranged just like how they are in Windows Explorer--folders first alphabetically, then files alphabetically. I've managed to acquire this setting by messing around with the "clean up by" and "arrange by" functions but I don't really know the specific combination. Most of the time these preferences are saved and set as the defaults under "View Options" but every once in a while it resets and I have to tinker around with the settings all over again. Does anyone know of a way to fix this? It's only happened twice so far, but I'd rather not have it happen again. Also, occasionally when I delete an item, there is a blank space left where the icon was instead of all the files following it bumping up a space. Any quick fixes for this bug?
    Next up is Preview. Again, I like the Windows Way and I like to be able to browse between the files in a folder while using Preview/Windows Photo Viewer. I know that there is a way to browse between files if you select the whole folder and stick it in Preview, but is there a way to achieve the same result without having to do that? An app or "extension" of some sort that adds arrows in to browse between photos? I've had no luck finding anything other than the aforementioned option. Is there a good free alternative to Preview that will function similarly with the browse between photos option?
    One of my favorite things about my new Mac is the backlit keyboard function. My old laptop didn't have it and as someone who is online more often at night it is super helpful. But is there a way to turn it off during the day/in bright settings? A way to put it on a timer? In System Preferences I selected the option "Adjust keyboard brightness in low light", which I assumed to mean would have the keyboard NOT very bright when there IS light, but it continues to light up just the same. Any apps or extensions to help with this one?
    And finally, the dock! This question is more about aesthetics than functionality but help is appreciated all the same. Currently, my dock looks like this: http://i42.tinypic.com/35ktxlz.png It is rather opaque and the indicator lights can barely be seen. However, in a lot of tutorial videos I've been watching, many people have docks that look like this: http://i.i.cbsi.com/cnwk.1d/i/tim/2011/07/19/Lion_LaunchPad.png It is a darker shade of gray, the divider is dashed rather than a straight line, and the indicator lights are clearly visible. Does anybody know how to get this look for the dock? I've looked in the dock preferences but there's not really anything in there other than magnification/size/effects.
    That about sums things up! I'm sorry if any of these seem like "silly" questions but they are all things I have been unable to find answers for. Any and all tips, tricks, and help is appreciated! Thanks in advance for all your help!!

    congratulations on coming over from the dark side.
    Seems like you are interested in column view, which would show you the hierarchy of folders and files:  Column View in Mac OS X Mountain Lion - For Dummies Not sure what's going on if your finder settings don't stay put. May be a corrupted preferences file, which is easy to fix, but is perhaps a topic for another discussion.
    What I'd suggest is to have an open mind and try to see what the mac can do, rather than force it to look like your windows machine. I mean, if you just want it to look like windows, then why bother switching? If you give it a little time, you'll start to appreciate the mac way of doing things, and see how it is infinitely more awesome, powerful, creative, intuitive, and better designed (and the software way better written)  than what you left behind. But that's your call.
    There are some threads on this forum with complaints about the backlight. Keyboard backlight settings query...: Apple Support Communities  Evidently it depends on the angle of the screen and the light sensor relative to the light. Some suggest that a SMC reset may help: Intel-based Macs: Resetting the System Management Controller (SMC)  This is not an issue for me, I just adjust the brightness with the keyboard buttons if I want. Real men shift their own gears, drink their coffee black, and adjust their own keyboard brightness. I am not aware of any software to exert more control over this feature but a search of macupdate  Download Apple Mac Software & iPhone Software : MacUpdate may help. I mean, it's up to you what is important. I can waste a lot of time playing around with the GUI and with unnecessary software, or I can just get my work (and play) done.
    You might prefer the no-glass dock, that removes the shelf, and makes the indicator lights like more discrete orbs. You can do this with the terminal. Using the terminal is also, perhaps, a topic for another discussion.I like the 2D dock much better. If you want I'll give you some directions for how to do it. Otherwise, here's a reference: 2D Dock - MacRumors Forums

  • Looking For Help for porting PC utility to Mac

    Hi,
    I am looking for local Mac developer(s)who could help me to port my MXF utility (HDV M2T=>QT conversion) to Mac OS X. I need someone who is around SF Bay Area. It's a simple program however requires knowlegde of threads. (I use worker thread. simple one) Please contact me at [email protected] if you are interested.
    <Edited by Moderator>

    Why was this merely "edited by moderator"? It should be removed or moved to the appropriate forum. Wait, there is no "solicitation" forum.
    bogiesan

  • Looking for help - Company is going to Mobile Asset Management service that does not support BB - especially BB 10.

    Hello,
    I am looking for ideas/help. I currently have a BB Z10 (10.1.0.2039) with Verizon Wireless.  The company has a BB Enterprise Server for older devices (I previously was on that).  I bought a Z10 several months ago and have been connecting to the corporate network through Lotus Traveler. They do not have and will not implement a BB 10 Enterprise Server. Some in IT informed that if the company used the BB software they could manage all devices..... not accepted.
    All my contacts, calendar, and company email is funneled to the BB Hub.....
    So my company is implementing a Mobile Asset Management Service that I have to sign up for (Airwatch?).  They only support Android and IPhone.
    Will future versions of the BB OS support Android Apps.... Soon (I have less than 2 weeks)
    I have read where it is possible to put the device in development mode to run Android Apps.  I don't know if that will work with this and have no idea how stable the phone is in that mode. I travel internationally so I don't know how a development mode would work overseas. Any thoughts?
    I like my Z10 but will need to switch to keep functionality if I can't find a work around 
    Any assistance ????
    Thanks for any help.

    Hi and Welcome to the Community!
    BB10 devices have the ability to run .apk apps via special methods. Development Mode is used only for installing the app...not for normal operation. So you install (side-load) the app in Development Mode, then go back to normal mode for normal operations.
    If a .bar file for the .apk app already exists somewhere, you can side load it to the BB10 device and see if it works or not. If there is not yet any .bar file, there is an app called SideSwype that can convert many .apk apps to .bar and install it to your device.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Looking for help getting EZdrummer to work in Logic Pro 9

    First off let me say I have looked everywhere and even talked to toontack about the following problem. Toontrack as said that the plug-in is working properly and the problem is with Logic.
    Ok so I purchased toontrack ezdrummer and drumkit from ****. After installing them and updating to ezrumming 1.2 I am unable to load ezdrummer in logic pro 9. The really strange thing is that it will launch when using garageband and fully function.
    In logic it is not in AU manager and not there for selection in the channel strip, so I thought at first that it was only installing as a VST. However, when looking in Library>Audio>Plug-Ins>Components, EZdrummer.component is there. I thought this was where Logic looked for AU plug-ins but I'm now thinking thats wrong but I've not been able to find anything saying different.
    Please guys any help you can offer would be outstanding. I'm so fed up I'm about to get a refund but I would rather use this software.
    Thanks.

    EZDrummer works fine here.
    You could try trashing this file:
    Macintosh HD/Users/YourUserName/Library/Caches/com.apple.audiounits.cache
    On the next launch, Logic will rescan all your plugins.
    You could also try a new OS X user account.
    And what exact version of Logic are you using?

  • Looking for help to improve Airport performance over LAN (WAN is fine)

    Ok, I've read through several threads on this forum that address problems people are having with slow performance with Airport. I've also checked out all of the Apple KBs that address Airport, recommended settings. Unfortunately my issue isn't addressed by anything I've read to date.
    The bottom line is that both download and upload performance between any of my devices and the internet is fine, no problems. I am paying for 30MBps download from Verizon FIOS, I routinely get 20, and I'm guessing that the delta is Verizon's problem, not my network's. However, streaming from my media server to another device on the wireless LAN is a different story entirely. I get somewhere between 1 and 2 MBps, tops, and this poses big problems for streaming music and movies.
    My network is comprised of 3 Airport Expresses. One of them is a MC414LL/A model. This one is connected to my Verizon FIOS Actiontec MI424WR router (which I have set to bridge-mode according to the instructions provided at http://www.dslreports.com/forum/r17679150-Howto-make-ActionTec-MI424WR-a-network -bridge) via CAT5 ethernet. This Airport Express is set to "create a network" network mode, "802.11 only (5GHz) - 802.11b/g/n" radio mode (although I have also tried "802.11 only (5GHz) - 802.11/n only (2.4 GHz)" radio mode, and this didn't solve the problem). Finally, I have chosen 2.4 and 5GHz channels that have little interference (2 and 161 respectively). My other two Airport Expresses are MB321LL/A models and are set to "Extend a wireless network" network mode, with the 5GHz network chosen as the network that they extend. (I have tried switching over to having them extend the 2.4GHz network, and performance gets worse, not better.)
    I am using a late 2009 Mac Mini as a media server. It is connected to the 5GHz network (though I've tried the 2.4GHz network), and it runs XBMC and JRiver media servers (not simultaneously, either one or the other.) I have a PS3 and a Sony Blu Ray player, each plugged into one of the MB321LL/A Airport Expresses via CAT5 ethernet, and I stream media to each of these devices via one or the other media server (both devices are DNLA-enabled). My Mac Mini has a 3TB external hard drive connected via FireWire 800, which is where all of my media resides. In addition to streaming media over the network, I have a TV plugged directly into the Mac Mini. When I play media to this TV, performance is outstanding, so I'm confident my poor performance to the PS3 and Sony BDP is a network issue, not an issue with the external drive.
    Although my building has several other wireless networks, only one of them is 5 GHz, and it isn't using channel 161. The 2.4 GHz band is crowded with several networks, although channel 2 is usually in the clear. I have tried switching let Airport choose a channel automatically, and I haven't noticed a difference. It has occurred to me that the problem could be with how I bridged the Verizon Actiontec router and not with any of the Airports, but I don't get any errors (e.g. double NAT errors, which some people who have bridged improperly get), and I am pleased with my download and upload speeds to the internet. The issue is only on my LAN. Finally, yes, all of my firmware is up to date, version 7.6.3 on all three Airport Expresses.
    Can anyone offer me suggestions for how I can get better performance streaming media from my server to the two playback devices? Since all 3 Airport Expresses support 5GHz, I'd have thought I'd be able to take advantage of 802.11n speeds when streaming between them. (MB321LL/A  supports "Draft N", but does this matter?) With the settings that I'm currently using, I can't stream faster than 2MBps (and that's on a good day), which is below what I ought to be able to get rom 802.11g. This is especially problematic when I try to stream hi res (96 MHz / 24 bit or higher)  music files, whether uncompressed or compressed. I hear awful pulsing sounds through my speakers. If I pause the track and let my streaming device buffer, I might get 10 or 15 seconds of clean playback, but then it starts the pulsing again as soon as the buffered music is finished playing. On occasion when I stream music from my iPhone via Airplay to one of the Airport Expresses, I get clean playback most of the time, but on occasion the music cuts out. (It's my understanding the Airplay requires ~800 Kbps, which seems consistent with my LAN speed usually being between 1 and 2 Mbps but sometimes dropping).
    I have iStubler and I've used the Apple network diagnostics -- these are the tools that led me to choose channels 2 and 161 for 2.4 and 5GHz respectively. I'm sure I could be using these tools to learn more about my network's performance, but I'm sure what to look for.
    Thanks for your suggestions.

    Ok, cool. I'm really glad that the issue has been isolated. Thanks a ton for your insight!
    Hopefully I can find a spot where the signal strength of the hub is noticably better but that isn't too inconvenient for an ethernet run. My Sony BDP, which is the device connected to the problem basestation, has wifi capability, so I could always ditch the ethernet cable if the best spot for the basestation doesn't permit a cable run. But I'm aware that ethernet usually offers faster transfer speeds than wifi. Moreover, I'm not sure that the Sony BDP supports 5GHz. It might be a 2.4GHz-only device, in which case I'll have new interference issues to contend with, since like I said in my original post, there are several other 2.4GHz networks in my building.
    Anyhow, now that I understand the problem, I can figure out a solution. Thanks again.

Maybe you are looking for

  • Editable and non editable issue in ALV OOPS

    Hi All, After giving the input in selection screen when i execute the report program will display the output in ALV OOOps. Here i need few fields in Editable and some fields are non editbale mode. I can't use Edit  ='X" in fieldcatalog. I refered few

  • I receive a message that I am unable to connect and check internet connections. I'm able to access thru Explorer. Tried re-downloading Firefox. Thoughts?

    Have been using Firefox for a number of years. About two weeks when I attempted to access a bookmark through Mozilla I got an unable to connect. Have tried multiple things including removing and reinstalling several times. Each time I attempt to got

  • Output Device Missing in Final Cut Pro while burning

    Our Output device in dropdown box is now missing all of a sudden. I wanted to know how to manually resolve this issue, if anyone could assist? We were burning a DVD from Final Cut Pro 10.0.09. and we got an error message: Not sure what happened durin

  • Asset disposal Revarsal

    Hi Guru's, Last month we have made an asset disposal,but the amount was wrongly key in as USD 1000 instead of USD 1200. We have tried using ABNK but it did not effect any accounting entry, transaction only appreared in the Asset History. Kindly advis

  • Processing Triggers - part 2

    Hello, I would like to solve the following problem using triggers: I need to change the DeptNo for all Emps working for Dept 20 to 50; Trigger (or triggers) has to create Deptno 50 and copy the data from DeptName (dname) and DeptLocation (loc) to new