Get the Users AD Site Name

This tiny VB script will return the current users Active Directory site name, which is very useful in a login script for doing things like adding printers or mapping drives based on what site the user is at.

Set objADSysInfo = CreateObject("ADSystemInfo")
 
msgbox objAdSysInfo.SiteName

Using xcopy to copy files and folders and keeping the ntfs permissions

Xcopy is including will all modern Windows Operating Systems, it has some great switches for doing things such as verifying the copy and only coping file that are newer than the destination.

Run: xcopy /? for a full list of switches but here are some usful one if you are moving a large amount of data and want to keep NFTS permission.

An Initial Full Copy
xcopy "C:\Source Folder" "\\Destination Server\Share\Folder" /X /H /E /V

You Were not connected because a duplicate name exists on the network

If like me you are tring to add an alias to an existing computer so you can access it via two different DNS names and you receive the below message, then read on;

“You Were not connected because a duplicate name exists on the network. Go to System in Control Panel to change the computer name and try again”

 

First in DNS create a CNAME record instead of a normal Host(A) record.

Re-creating the IMA Cache in Presentation Server 4

If the IMA server will not start with messages in the event log such as the following, then the IMA database may be corrupt

The OSI Model

Overview of the OSI Model

For Host-to-Host communications to to take place a consistent model is required especially when the Host-to-Host communications is taking place between different vendors. The OSI model was created so different vendors would have a standard way to get data from application to the physical wire.

The OSI model consists of seven layers or steps that data should go though while getting from an application to the physical wire.

Function to return a folders size (vbs)

Here is a little vbs function that will return the size of a folder in bytes.

File attached: You must be a member to download

 

“You Need Execute Access in Order to Connect with the VMware Console…."

If you get the below message when tring to use the Console in the Virtual Infrastructure Client it is because the permissions have been lost on the configuration file (.vmx) for that Virtual machine

Restarting the Management Service on a ESX Host

Restarting the VMware management server can resolve lots of problems mainly problem where the VMware Host cannot be contacted correctly by the Virtual Infrastructure Client, or Virtual machine will not start or vmotion

Restarting the service does the same things as restarting the host but done properly it leaves the Virtual Servers running!

VMWare VCB & Backup Exec Script

I recently started using the VMWares Consolidated Backup product to backup the virtual servers on our VMWare ESX hosts. Dues to our VCB proxy server only having a 40Gb Hard Drive we where having problems with the pre-command script that comes with the Backup Exec integration module for VCB.

Active Directory User Group Membership IsMenber

Here is a very useful VBS function; I use it a lot in logon scrips.

The function will return True or False depending on if the current user running the script is a member of the AD group passed to the function.

To get the function working you will need to replace domain_name_here in the function with you active directory domain name

 

Syndicate content