by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Mar 18 01:59
    danoagithub starred bklockwood/PSPerf
  • Feb 23 2018 00:03
    posh-cja starred bklockwood/PSPerf
  • May 08 2017 10:04
    jimaek commented #23
  • Jan 31 2017 04:54
  • Mar 24 2016 15:42
  • Mar 12 2016 06:36
    bklockwood opened #55
  • Feb 27 2016 07:08

    bklockwood on master

    Update README.md (compare)

  • Feb 27 2016 07:07

    bklockwood on master

    Update README.md (compare)

  • Feb 14 2016 00:11
    jcislowski starred bklockwood/PSPerf
  • Nov 12 2015 21:40
    bklockwood commented #34
  • Nov 07 2015 15:08

    bklockwood on master

    working to find memory leak (no… Merge pull request #54 from bkl… (compare)

  • Nov 07 2015 15:08
    bklockwood closed #54
  • Nov 07 2015 15:07
    bklockwood opened #54
  • Nov 07 2015 15:07

    bklockwood on bkl-dev

    working to find memory leak (no… (compare)

  • Nov 06 2015 11:16
    bklockwood commented #34
  • Nov 06 2015 11:14

    bklockwood on master

    new psperf.html is cleaner, add… Merge pull request #53 from bkl… (compare)

  • Nov 06 2015 11:14
    bklockwood closed #53
  • Nov 06 2015 11:14
    bklockwood opened #53
  • Nov 06 2015 11:13

    bklockwood on bkl-dev

    new psperf.html is cleaner, add… (compare)

  • Nov 06 2015 07:20

    bklockwood on master

    minor changes to output-page Merge pull request #52 from bkl… (compare)

Bryan Lockwood
@bklockwood
I tried Gadja's PSWindowsUpdate module some time back, got a bit frustrated with how it handles remote work, tried writing my own. I don;t think I improved on his work much ... truth is, the WU API is a pain.
impersonation function?
Oliver Lipkau
@lipkau
Yes.
Did you manage to retrieve the severity of the updates?
Will send you the link and examples
Bryan Lockwood
@bklockwood
ah, found your impersonation function, will look more closely
Bryan Lockwood
@bklockwood
I haven't worked on the part that retrieves outstanding updates (kinda dreading it). But I've been thinking my mockup display looks dumb anyway. Will probably just return the number of updates outstanding, with the advice that admins should hide updates they don't care to apply.
Oliver Lipkau
@lipkau
As it is best practice never to log in with a domain admin account, I think the impersonation is important to run it
Bryan Lockwood
@bklockwood
Also, I know from experience that it can take up to 2 minutes per PC, even running locally, to retreive the list of outstanding updates. So this check may only run once or twice daily
Oliver Lipkau
@lipkau
I will be waiting for your new mockup them
Bryan Lockwood
@bklockwood
again, it's because the WU API sucks. every time you ask it how many updates are outstanding, it does a full check with the update servers at MS (or configured wsus server)
Oliver Lipkau
@lipkau
I forgot to include the property lastonline . will be adding this soon
Bryan Lockwood
@bklockwood
I keep hoping MS will overhaul WU in win10 and forward, but ... dunno yet. there have been hints, no updated API docs I have seen.
my latest version stores timestamps for either 'upsince' or 'downsince'
(see Get-Uptime)
Oliver Lipkau
@lipkau
The function I used for wu shows you to diff between software updates and drivers. In case you find it interesting
Bryan Lockwood
@bklockwood
that's gadja's module, right?
Oliver Lipkau
@lipkau
I thing I just thought of a good approach to the events
Yes
Bryan Lockwood
@bklockwood
yeah, I know how he does that (its pretty easy in code to query for either or both, software|drivers)
Oliver Lipkau
@lipkau
During a timestamp of last retrial and just count errors
I am also playing with the idea of running the days retrieval in jobs. So they can run in parallel
Bryan Lockwood
@bklockwood
I have them all in jobs.
Right now, playing with get-eventlog -logname system -entrytype error,warning |where {Index -gtr $lastindex}
it still takes a long time
oops, $_.Index -gt $lastindex
Oliver Lipkau
@lipkau
The job thing was a recent addition, right?
I don't remember seeing it in the code I forked
Bryan Lockwood
@bklockwood
yes, just this last 48 hours or so. see issue #28
I thought it killed two birds with one stone - allowing me to kill anything that takes too long, and opening the way to supplying invoke-command with securestring creds later on
what I have is still kinda lame. ideally I would wrap up all checks for a system into one scriptblock. or at least, have them all use one pssession. but I'll get there later on.
<---- slow coder, learning as he goes!
Bryan Lockwood
@bklockwood
OK, there it is. I have all fields populated now. http://i.imgur.com/M9NU9pv.png
All of the above is "live" from real systems, not mockup.
Bryan Lockwood
@bklockwood
Oliver, I have finally gotten around to working on psperf again. Using Javascript/jquery to build the page now.
Oliver Lipkau
@lipkau
I have seen the updated to wiki, issues and the commits
I am currently finetuning sublime Text 3 for powershell
and stumbled across something you might find useful
Bryan Lockwood
@bklockwood
thanks. iirc, in testing I learned wmi checks the same registry keys
(the ones I have in my get-rebootstatus)
Oliver Lipkau
@lipkau
ok
I did not test that :P
Bryan Lockwood
@bklockwood
memory fuzzy. at one point get-rebootstatus had 5 or six different tests in it
Oliver Lipkau
@lipkau
what editor do you use?
Bryan Lockwood
@bklockwood
just the ISE
Oliver Lipkau
@lipkau
ps v 4 or 5?
Bryan Lockwood
@bklockwood
4 mostly. my dev environment is a win2012r2 server (my personal machine is win10 though)