Deploying Visual Studio 2005 Tools for Office Second Edition

 

  1. Download the redistributable Visual Studio 2005 Tools for Office Second Edition runtime (vstor.exe).
  2. Create an administrative installation point for VSTO and note location of the installation package (vsto.msi).
  3. Create and edit a group policy object. Ensure that the installation package will be installed with elevated privileges.
  4. Under Computer Configuration add a software installation item by referencing the vsto.msi package that is created at the administrative installation point. The path must be specified as a network share e.g.\\{server}\{path}\vsto.msi
  5. Link the GPO to OUs containing the target computers.

Getting MS stuff to work on Ubuntu

This week my personal goal is to find ways to make Microsoft stuff work in Ubuntu. So here are a few projects I have noted and will try to post my progress.

Why is this compatibility so important?

For one, most people use Microsoft Windows, and in order to get more people to use Linux as an OS you have to find workarounds and ways to make the transition smoother, and to allow these new users of Linux to continue to work with their non-linux peers.

Second, if you are a developer you would like to know how to check your code and see what it looks like for your target audience, in this case I would recommend installing Virtual Box with a windows VM.

Some packages and projects that make this transition easier:

wine – This allows you to run some windows programs in windows

likewise open – allows you to join a windows domain with ease and if you want GPOs then look into likewise enterprise.

moonlight – open source port of Silverlight

The Mono Project – allows cross-platform compatibility of .Net framework

VLC Player – allows you to play multiple video audio file formats

Check out the https://help.ubuntu.com/community/Medibuntu

After completing the commands at the above link to enable the mediabuntu then install

sudo apt-get install gecko-mediaplayer

Final as a last resort use Virtual Box and create a windows VM on your ubuntu machine, you can even use seemless mode to make it look like the widows apps are on your ubuntu desktop.

Creating your own subversion edge server

Subversion Edge is pretty easy to use, just download the version you want (even loads in windows).

Here I’m just going to list some things to do to get your Ubuntu server off the ground. Download the Subversion from

http://www.open.collab.net/go/csvne2_r2a/

and copy the correct version to a directory on your Ubuntu Server.

Install java-jre – Follow this guide:
http://www.ubuntugeek.com/how-to-install-java-runtime-environment-jre-in-ubuntu.html

Install Subversion edge – Follow this Guide:
http://help.collab.net/topic/csvn/action/installcsvnonlinux.html

To install and not just run you will need to edit your sudoers file to pass the JAVA_HOME variable, see my previous post.

Then run bin/csvn install instead of start.

You can then update the newly installed configuration as need.

At this point you should be able to connect to your subversion server console and configure and maintain it from http://host:3343/csvn

enjoy

Keeping current Environmental variables when sudo

This is pretty easy to fix just need to add an exception to the sudoers file for the variable your trying to pass.

in /etc/sudoers add the following line

Defaults      env_keep+="JAVA_HOME"

You will notice that the following line in sudoers is what resets the variables

Defaults      env_reset

IT Help Desk Software – SysAid

SysAid is more than a Help Desk software, it has Change Management, Project Management, IT Asset Management. It has a strong community base, and support many languages. We have been using this system for just over a year, and have been overwhelmed with all the features. You can use the free edition in a small environment, but large environments will find the unlimited edition not very expensive at all for all the customization and support you receive.

So check it out for your self, http://www.ilient.com/

Changing Static DNS Search List Using a VBS login Script

This script is fuctional, but rare occurance of no DNS servers has happen when either the delete takes longer then expected or something happens at login that inerupts the completion of the login script. This is why I added a pre-check to see if the change is even needed in the first place.

The only Values needed to be changed are arrNewDNSServerSearchOrder which is the list of new DNS server you wish to add, strOneOfTheOldDNSServers which is a common DNS server already used that you may wish to change or add to, and strOneOfTheNewDNSServers which is one of the new DNS servers you plan to add so the script does not need to fully run at every login (only when change is needed).

If there are any ideas for fixing the rare “No DNS issue” or a better way to do this in PowerShell, please comment. Otherwise enjoy.

'==============================================================
'Script to update DNS settings (Such as adding more then one DNS server to the targeted NIC)
'
'By Paul - https://networksavy.wordpress.com
'Date: 08/23/2010
'==============================================================

'====================================================
'New List of DNS Servers to Apply
'====================================================
arrNewDNSServerSearchOrder = Array( "192.168.1.2", _
                                    "192.168.2.2", _
                                    "192.168.3.2"  )
                                    
'to find the right adapter(s) to change:
' This is the value that checks the right nic (A common DNS server that is already used)
strOneOfTheOldDNSServers = "192.168.2.19"
' This is to check if a value is already correct (So the replacement does not run again if not needed)
strOneOfTheNewDNSServers = "192.168.1.19"


strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")


Set colNetCards = objWMIService.ExecQuery _
    ("Select DNSServerSearchOrder From Win32_NetworkAdapterConfiguration")

'============================================
'
' Test if the script even needs to be applied
' If the new DNS server exists then the script quits
'
'============================================
For Each objNetCard in colNetCards
  blnFound = 0
  arrDNSServerSearchOrder = objNetCard.DNSServerSearchOrder
  	If Not IsNull(arrDNSServerSearchOrder) Then
    	For i = 0 to UBound(arrDNSServerSearchOrder)
      		If (arrDNSServerSearchOrder(i) = strOneOfTheNewDNSServers) Then
				WScript.Quit
        Exit For
      End If
    Next    
  End If
Next

'============================================
'
' Replaces DNS Servers with new servers
'
'============================================
For Each objNetCard in colNetCards
  blnFound = 0
  arrDNSServerSearchOrder = objNetCard.DNSServerSearchOrder
  If Not IsNull(arrDNSServerSearchOrder) Then
    For i = 0 to UBound(arrDNSServerSearchOrder)
      If (arrDNSServerSearchOrder(i) = strOneOfTheOldDNSServers) Then
        arrDNSServerSearchOrder = Array()
        objNetCard.SetDNSServerSearchOrder(arrDNSServerSearchOrder)
        wscript.sleep 600
        arrDNSServerSearchOrder = arrNewDNSServerSearchOrder
        objNetCard.SetDNSServerSearchOrder(arrDNSServerSearchOrder)
        Exit For
      End If
    Next    
  End If
Next

WScript.Quit

Testing your Exchange Server Using Telnet

Very usefull, when testing SMTP connectivity, found that it still works with Exchange 2007.

Windows Vista/7 you need to install Telnet, or use putty

telnet ExchangeServer 25

Then Enter this command

helo DomainName<ENTER>

Response

205 OK

Enter the following

mail from: YourSourceEmail@domain.com<ENTER>

Response

250 OK - mail from YourSourceEmail@domain.com

Enter the following

rcpt to: RecipientEmail@domain.com<ENTER>

Response should be the following:

250 OK - Recipient RecipientEmail@domain.com

Enter the following:

data <ENTER>

response

354 Send data.  End with CRLF.CRLF

Enter the following

To: <recipient's display name><enter>
From: <your display name><enter>
Subject: <Subject field of Email message><enter>
<Enter you body text><enter><enter> . <enter>

Response

250 OK

at this point an e-mail should be sent you your destination address.