Bart's Weblog

Just a blog…

Archive for September, 2011

PowerShell: Return wandering VMs to their preferred ESX host

Posted by bartvdw on 0303/0909/2011

For the people that want to place VMs at specific ESX hosts, the scripts in the link below will make your life easy!

Return wandering VMs to their preferred ESX host

Posted in PowerShell, VMware | Leave a Comment »

PowerShell: Outlook unified signature based on Active Directory information

Posted by bartvdw on 0303/0909/2011

I came across this nice PowerShell solution to have unified Outlook signature based on Active Directory information in your company. Check it out!

Outlook signature based on user information from Active Directory

Deploying a Unified Email Signature Template in Outlook

Microsoft TechNet Script Center link: Outlook signature based on user information from Active Directory

Posted in Active Directory, Outlook, PowerShell | Leave a Comment »

Create WPAD/PAC files the easy way…

Posted by bartvdw on 0303/0909/2011

A very basic but flexible WPAD/PAC file with which you can start:

function FindProxyForURL(url, host) {
    //check for local domains
    if (dnsDomainIs(host,"fqdnA.internal.domain"))   {return "DIRECT";}

    //check for local IP addresses
    if ((shExpMatch(host,"127.0.0.1"))
        || (shExpMatch(host,"10.*.*.*"))  // Enter you local IP subnets
        ) {return "DIRECT";}

    //check for short host names
    if (isPlainHostName(host)) {return "DIRECT";}
   
    //else return proxy
    return "PROXY proxyA.internal.domain:8080";
}

 

McAfee KnowledgeBase – Web Gateway: Using PAC files with Web Gateway

Posted in Windows | Leave a Comment »