by skufel | Mar 14, 2016 | Automation, Databases, Infrastructure, Scripting, SysAdmin, Windows
Code snippet from old archives. It shows how to import Windows event log entries to database. Important is to setup database and table accordingly, so it contains apropriate columns. Set objConn = CreateObject("ADODB.Connection") Set...
by skufel | Jan 2, 2013 | Automation, Scripting, Windows
From script repository I did use in the past, VBscript which allows to clear EvenLog on Windows machine. I did use that on computers with Windows XP and Windows Server 2003. however, this script will work also on Windows 7 and Windows server 2008. By default script...
by skufel | Nov 14, 2011 | Automation, Infrastructure, Scripting
Here is quick script which connects to Active Directory, reads all computer accounts from Organization Unit (OU) indicated in script and then pings all computers found in that OU. It might be handy if all server accounts are located in one OU. Const ADS_SCOPE_SUBTREE...
by skufel | Nov 11, 2011 | Infrastructure, Scripting
Script I used as computer statup script pushed via GPO. It renames local Administrator to Admin and sets password for Admin account to one specified in script. Script was tested and used on Windows XP Professional. '...
by skufel | Nov 11, 2011 | Infrastructure, Scripting
Script changes description of My Computer icon to display Computer: ComputerName Can be very handy when troubleshooting computer remotely when we require user to tell us name of the computer user works on. Script works on Windows 2000/XP/Vista/7. '...