create your script. copy it to the appserver.
create a nsh script that copies the 1st script to your target. in this script you call nexec to run the 1st script like "nexec $NSH_RUNCMD_HOST cmd /c "cscript /nologo c:\script.vbs"
or you can write the script in nsh and not have to use ps or vbs... what specifically are you trying to ?
In this case my change is very simple.
I have to change a registry setting on a few hundred Windows servers.
I have written this in the past using vb (WMI)....but now that I have BL I do not need to script the scope(what to push to) or authentication (admin access to the remote servers).
My script can now be very simple...simply apply a .reg file to the servers....a cmd file with the line "regedit /s regfile.reg" will apply the registry change for me.
I guess I need to copy the reg file to the appserver?
You should try creating a blpackage of the registry object directly and push that. the benefit is you can easily do a rollback. Live browse to the reg key on one of your servers, right click and say ‘add to depot as blpackage’. Then edit the value in the package to be what you need, then deploy that package.
This is one powerful piece of work!
80 lines of vb code reduced to 5 clicks of a mouse!
Cheers fella, fantastic help....I need to get on the course.
Need to start working out how one can run .exe or .msi but you've started me off.
for the msi, exes you can add them in the depot - right click on a depot folder, new software, msi or whatever the exe format is - install shield or custom. then you just need to use the silent install args for the software.
Same problem i am facing here for installation of .msi on windows servers, so as you suggested above that one can use the "Silent Install Arguments" for the software. So can you please tell me what kind of these silent args is??? Reply soon....its urgent....
msiexec has some generic silent install option - run a msiexec /? to list them. the software being installed may have other silent install options that need to be passed to enable features, etc.
typically something like:
msiexec /i /qn YOUR.msi REBOOT=ReallySuppress
will do it.