Search Results

Search found 2 results on 1 pages for 'craig620'.

Page 1/1 | 1 

  • Nmap XML parsing with Powershell

    - by Craig620
    I am trying to parse the XML output from NMAP and isolate just the hostadddress and the vendor from the osmatch. I've actually done that with the following: select-xml -path nmap.xml -xpath "nmaprun/host/address/@addr|nmaprun/host/os/osmatch/osclass/@vendor" | select -expandproperty node Which produces: #text ----- 10.20.30.1 HP 10.20.30.2 Linux 10.20.30.3 HP What I was not expecting is that it would jam it all into a single column.Silly me would like the address in one column, and the vendor in another column. I Would like: #addr #vendor ----- ------- 10.20.30.1 HP 10.20.30.2 Linux 10.20.30.3 HP In the several hours I spent learning xpath today, I also realized that this file has a single address for each host, but multiple OS guesses for each host. I would also like to use only the first osGuess in the output. Tired using: -xpath "(nmaprun/host/os/osmatch/osclass/@vendor)[1]" But that truncates the whole data set to a single line of output, instead of only limiting the only the first osclass element of each host. Changing the parens to surround only the @vendor element like .../(@vendor)[1] and .../(@vendor[1]) but both fail with "Expression must evaluate to a node-set." Thanks in advance

    Read the article

  • Explorer image thumbnails are grey/incomplete/partial

    - by Craig620
    I have recently noticed a problem on my Win7 x64 Home machine. When navigating the pictures library, I run across a fair amount of thumbnails that are grey and only partially rendered. This is not not the absence of thumbnails caused by "always show icons, never thumbnails" checkbox, and is a local drive, have seen many other posts for those issues... I've run cleanmgr for thumbnails, and also manually deleted the .db files from %LOCALAPPADAT%\Microsoft\Windows\Explorer. That did actually fix one thumbnail once (while preparing this post) but in general it doesn't work. Why do specialized imaging programs not have this problem, but Explorer does? How do you fix Explorer? It's very annoying!

    Read the article

1