Tag: Script
Running a command on all computers within an AD OU
by Phil Eddies | Jan 24, 2016 | Active Directory, Scripts | 1 |
The below VBS script will run a command on all computers in the Active Directory OU defined by...
Read MorePowershell: Audit Logon and Logoff times from the event log
by Phil Eddies | Jan 20, 2016 | Scripts, Windows | 0 |
The below PowerShell script queries a remote computers event log to retrieve the event log...
Read MoreVBS Script to get a computers screen aspect ratio
by Phil Eddies | Jan 4, 2016 | Scripts, Windows | 0 |
The below script will find the screen aspect ratio of a computers primary video controller by...
Read MoreSQL Snippet – Get the number of tables in a database
by Phil Eddies | Dec 21, 2015 | Scripts, SQL | 0 |
The below SQL snippet will return a count of the number of tables in a database. Make sure to...
Read MoreSQL Script – Report a databases table sizes in megabytes
by Phil Eddies | Mar 19, 2015 | Scripts, SQL | 0 |
The below SQL script will return a list of tables in a database along with the table sizes in MB....
Read MorePowerShell script to show the state of your laptop battery
by Phil Eddies | Jul 8, 2011 | Scripts, Windows | 0 |
Windows holds so much great information in the WMI including information on the battery. The below is a little PowerShell function that will show you what state your laptop battery is in full, charging etc. Function...
Read MoreVBS Script to list the network printers a user is connected to
by Phil Eddies | Apr 4, 2011 | Scripts, Windows | 0 |
The below little VBS script is an example of how to pull back a list of network printers a users is connected to. This script is only pulling back the server and share names but you could retrieve other properties in the same...
Read MoreVBS Script to report the properties of all files in a folder and its sub folders
by Phil Eddies | Nov 25, 2010 | Scripts, Windows | 11 |
I recently had a need to list the properties of all files in a folder and its sub folders to find files that had not been used in a long time, or files where the owner had left. In my case I needed to run a report on...
Read MoreVBS Script to export properties of all groups in IBM Lotus Domino using LDAP
by Phil Eddies | Oct 26, 2010 | Lotus Notes \ Domino, Scripts | 0 |
The attached script will extract the common name and email address of every group stored within a domino directory to a CSV file. You will need to change the dominoserver within the select statement to the name of your server,...
Read MoreVBS Script to get the location of the current script
by Phil Eddies | Jul 30, 2010 | Scripts, Windows | 0 |
Here is just a quick example of how to get the location of the currently running script. currentScriptPath = Replace(WScript.ScriptFullName, WScript.ScriptName, “”) strLogFile = currentScriptPath &...
Read MoreVBS Script to perform an action after a computer either starts or stops pinging
by Phil Eddies | Jul 15, 2010 | Scripts, Windows | 0 |
The below script can be used to perform an action after a computer either starts or stops pinging....
Read More
Recent Comments