ALoInfo.exe To display an accounts password ages from a domain controller, at a command prompt, type the following: To display all local service startup account information and mapped drive information for a user who is currently logged on, at a command prompt, type the following command: Source: http://technet.microsoft.com/en-us/library/cc738772(v=ws.10).aspx
Author: David Kittell
FormatDateTime Function
This is a default function within VBScript that should work in any VBScript situation. Date is required and has to be in a valid format but easily can accept date() or now() Date() would only display the current date where now() would be date and time. Format would be something…
Prevent Browser Cache
Sources: ASP – http://support.microsoft.com/kb/311006/en-us PHP – http://www.php.net/manual/en/function.header.php ColdFusion – http://www.bpurcell.org/blog/index.cfm?entry=1075&mode=entry JSP – http://www.jguru.com/faq/view.jsp?EID=377&page=2
Windows Login Page Restriction
Sometimes you have to restrict the visitor of a page to a username, if you don’t want to take the time to build a database you can simply use the username on the domain. In the code below make sure you replace “<DOMAIN>” with your companies domain
PHP – File Size
Example: [insert_php] function getsize($file,$type) { $size = filesize(“$file”); if($type = ‘Bytes’) { echo $size; } elseif($type = ‘Kb’) { $kbmath = 1024 * $size; echo $kbmath; } elseif($type = ‘Mb’) { $mbmath = 1024 * $kbmath; echo $mbmath; } } echo getsize(getcwd() . $_SERVER[‘PHP_SELF’],’Bytes’) . ‘ Bytes’; [/insert_php]