running scripts from Active Directory

Associate
Joined
8 Mar 2007
Posts
2,176
Location
between here and there
hey all,

I help support about 120 users and I'm thinking of installing VNC on all the machines to make the software support side a little easier.

I reakon my best way to do this is to add a script to the group Policy at logon in active directory.

somthing along the lines of;

Code:
if not exist c:\porgram files\realvnc\ (goto install) else goto end


The question i have is, when running these sort of scripts what loaction is it run from? knowing that I'll save it somewhere on the network and point AD at it, but if i said 'if not exist c:\porgram files\realvnc\' would it look at the c:\ of the machine that it is being logged on, or the c:\ of the machine thats storing it??


cheers in advance.
 
Tried deploying it via pushfast?

Have a look here: http://www.darkage.co.uk/howtos/setupfp.htm

I can see how this would be useful. however, I'm confindent that Ad will distrubte this with mininal fuss, All i have to do is attach it the the gruop policy for all users, leave it there for say a month, and everyone who has a AD account should have logged on and installed VNC.

the only issue i have is weather it is run localy or not. ie, is the c:\ drive the server where the batch file is or is c:\ the local machine that is being logged on.
 
You could batch a script to install it as such:

winvnc4.exe /SP- /VERYSILENT /NORESTART
vncconfig -service -generatekeys

You can then copy over a pre-configured .reg key containing all the configuration settings making sure not to include the RSA_Private_Key parameter as this will mean all your machines have the same encryption key, and the above command will create a random key for you.

You can use the above method to silently push a VNC deployment with a default configuration.
 
Back
Top Bottom