VBS Script to get the location of the current script Files attached

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 & "log.txt"

wscript.echo strLogFile

On a Ciscio IOS device when you view the logs or the debug logs the date and time is not displayed

If when you run show logging or try to view the debug logs on a Cisco IOS device the date and time is not displayed and instead you get something like the below, here is the solution.

6w4d: %ETHCNTR-3-LOOP_BACK_DETECTED: Loop-back detected on FastEthernet2/0/8.

Get into configure terminal mode and enter the below

service timestamps log datetime localtime
service timestamps debug datetime localtime

Active Directory: Finding and Copying the DN of an Object using LDP.exe

If you want a graphical tool to find the DN of an Active Directory object then the free Microsoft tool LDP.exe should do the trick. The tool is included with the Windows Server OS and can be accessed from your local computer if you have the Windows Server 2003 Admin Pack or the 2008 RSAT installed.

Note: The steps below are from the 2008 R2 RSAT version of LDP, the process is very similar for the 2003 version however some of the memu names etc at a bit different.

Active Directory: Redirecting New Users and New Computers to a Specified OU

By default when a new user is created in Active Directory the object will be created under the top level User container (CN=User), similarly when a computer is created it will be created in the top level Computers container (CN=Computers).

If you would like to change this behaviour then this is how.

Note: Your domain functional level must be at at least Windows Server 2003'

First create your desired Organisational Units for both Users and Computers.

Connections to this Domain Controller from client machines whose IP addresses don't map to any of the existing sites in the enterprise - NETLOGON 5807

Problem:

On one or more of you domain controllers you are receiving a message similar to the below in the System log from Netlogon with the event ID of 5807.

VBS Script to perform an action after a computer either starts or stops pinging Files attached

The below script can be used to monitor when a computer either starts or stops pinging and then run an action.

 

Usage:

Call the function WaitForPing(SuccessOrFailure, "Name or IP", TIMEOUT_PING_SUCCESS)

Set SuccessOrFailure to TRUE to wait for the computer to start pinging

Set SuccessOrFailure to FALSE to wait for the computer to stop pinging

Windows 7 and 2008 R2 SP1 will not be here until 2011

Earlier this week it was announced that Service Pack 1 for Windows 7 and Windows 2008 R2 had been released for public beta, most people would therefore assume that the final release date would be later this here however we are gong to have to wait until the first half of 2011.

VBS Script to export the file properties of all files in a folder and its sub folders Files attached

The below scripts allows you to select a folder and generate a CSV report detailing the below file properties of all of the file in that folder and the folders sub folders.

 

  • Path
  • Name
  • Size
  • File Type
  • Date Created
  • Date Last Access
  • Date Last Modified

How to use:

1) Download the attached script or copy and save the below as something like report_file_properties.vbs

2) Run the script

Phoenix Instant Boot BIOS video

Cool stuff

Changing the baground on a Windows Home Basic Computer

By design Windows 7 Home Basic does not allow the user to change the wallpaper if you right click on the desktop the "Personalize" option is missing.

However the option is simple hidden and not removed, the workaround is to open the start menu and type "Change desktop background" in the search box and press enter.

Source: http://support.microsoft.com/kb/2005592/en-gb

Design by
ThemeShark.com - Drupal Themes with Bite!
Drupal Themes
with bite!