Categories

Thousands of experts bid on your personal project at ScriptLance.com

file exists

This will display if a file exists using Powershell

$file = Dir $env:windir\explorer.exe $file.Exists

Which will display true if explorer exists

Bookmark It

Hide Sites

$$(‘div.d67′).each( function(e) { e.visualEffect(’slide_up’,{duration:0.5}) });

Display network information using Powershell

 This example will display various snippets of network related information using Powershell

Cls
$strComputer = “.”
$colItems = get-wmiobject -class “Win32_NetworkAdapterConfiguration” `
-computername $strComputer | Where{$_.IpEnabled -Match “True”}
foreach ($objItem in $colItems)
{
write-host “MAC Address : ” $objItem.MACAddress
write-host “IPAddress : ” $objItem.IPAddress
write-host “DNS Servers : ” $objItem.DNSServerSearchOrder
Write-host “”
}

Bookmark It

Hide Sites

$$(‘div.d15′).each( function(e) { e.visualEffect(’slide_up’,{duration:0.5}) });