Pages

Showing posts with label Links. Show all posts
Showing posts with label Links. Show all posts

4/14/2015

1/02/2014

Dealing with WMI Timeouts — Steven Murawski

Dealing with WMI Timeouts — Steven Murawski: Dealing with WMI Timeouts

Get-WmiCustom (aka: Get-WMIObject with timeout!) - musc@> $daniele.work.ToString() - Site Home - MSDN Blogs

Get-WmiCustom (aka: Get-WMIObject with timeout!) - musc@> $daniele.work.ToString() - Site Home - MSDN Blogs: Unfortunately, the Get-WmiObject cmdlet does not let you specify a timeout. Therefore I cooked my own function which has a compatible behaviour to that of Get-WmiObject, but with an added “-timeout” parameter which can be set.

Function Get-WmiCustom([string]$computername,[string]$namespace,[string]$class,[int]$timeout=15) 
{ 
$ConnectionOptions = new-object System.Management.ConnectionOptions 
$EnumerationOptions = new-object System.Management.EnumerationOptions 

$timeoutseconds = new-timespan -seconds $timeout 
$EnumerationOptions.set_timeout($timeoutseconds) 

$assembledpath = "\\" + $computername + "\" + $namespace 
#write-host $assembledpath -foregroundcolor yellow 

$Scope = new-object System.Management.ManagementScope $assembledpath, $ConnectionOptions 
$Scope.Connect() 

$querystring = "SELECT * FROM " + $class 
#write-host $querystring 

$query = new-object System.Management.ObjectQuery $querystring 
$searcher = new-object System.Management.ManagementObjectSearcher 
$searcher.set_options($EnumerationOptions) 
$searcher.Query = $querystring 
$searcher.Scope = $Scope 

trap { $_ } $result = $searcher.get() 

return $result 
}

12/20/2013

11/21/2013

Website/URL/Link Scanner Safety Check for Phishing, Malware, Viruses [results: DOMAIN.com] - ScanURL.net

Website/URL/Link Scanner Safety Check for Phishing, Malware, Viruses [results: domain.com] - ScanURL.net: Enter a URL/link (web address) or website/domain below, and we'll see if it's been reported for phishing, hosting malware/viruses, or poor reputation.

ALSO - it includes a long list of links to other resources at the bottom of a search.

urlquery.net - Free URL scanner

urlquery.net - Free URL scanner: urlQuery.net is a service for detecting and analyzing web-based malware. It

1/08/2013

Classical Data

Classical Data
Good blog doing what I am trying to do here.
Useful and various topics.

4/11/2011