tosca925 Posted March 19, 2007 Posted March 19, 2007 USBDLM V3.4 - USB Drive Letter Manager for Windows 2000, XP I know people are using this as i have seen it mentione in other posts, but has anyone worked out how to deploy this via GPO yet? I would like to try this out on certain rooms(especially 6th form common room)
ZeroHour Posted March 20, 2007 Posted March 20, 2007 Now that looks cool. You could use a startup vbs script. It checks to see if the service is there and if not runs the silent install from a unc. Also it has a MSI on http://www.uwe-sieber.de/usbdlm_e.html Cant you modify the config file and deploy the msi?
tosca925 Posted March 20, 2007 Author Posted March 20, 2007 Now that looks cool. You could use a startup vbs script. It checks to see if the service is there and if not runs the silent install from a unc. Example the Zero Please?
ZeroHour Posted March 20, 2007 Posted March 20, 2007 NOTE: I edited my orignal post. I have a script I wrote at work that queries WMI for the service and if not runs a command. It was for deploying WinINSTALL Agent. I will post the basics tomorrow.
MkII Posted March 20, 2007 Posted March 20, 2007 Or you could configure it to do this: reading [ExcludedLetters] from a foreign location so you can easily define excluded letters for all clients in a network
plexer Posted March 20, 2007 Posted March 20, 2007 Email the author about how you modify the msi he's always been very helpfull when I've emailed him in the past even doing a new version to suit what I wanted. Using uniextract on the msi didn't reveal anything. Ben
ZeroHour Posted March 20, 2007 Posted March 20, 2007 Set WshShell = WScript.CreateObject("WScript.Shell") WKSName = WshShell.Environment("PROCESS").Item("COMPUTERNAME") idSQL = "Select MACHINEID From WICON_MACHINES where NAME = '"&WKSName&"'" Set oWMI = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & WKSName & "\root\cimv2") Set cServices = oWMI.ExecQuery _ ("Select * from Win32_Service Where Name = '{SERVICE NAME}'") If cServices.count = 0 Then WshShell.run "BLAH INSTALL" End if Thats the rough idea.
ZeroHour Posted March 20, 2007 Posted March 20, 2007 WKSName = WshShell.Environment("PROCESS").Item("COMPUTERNAME") Gets the computer name (NOTE: FQDM is not returned) Set cServices = oWMI.ExecQuery _ ("Select * from Win32_Service Where Name = '{SERVICE NAME}'") If you open the service (right click->properties) it will have a servic name (not the display name). Put that in where it says {SERVICE NAME} It will then check to see if its there. If its there then a row result is sent back. If cServices.count = 0 Then Says basically if there is a result do this WshShell.run "BLAH INSTALL" You could have "\\server\apps\usbdlm\install.cmd --silent install" and that should work. Or thats the idea anyway
plexer Posted March 20, 2007 Posted March 20, 2007 I've emailed Uwe the developer of usbdlm and his repsonse was that the msi was created with wininstall le 2003 and he has no idea how to include the changes to make it gpo deployable. However it is a simple app so probably a captured msi on a clean machine would work I'll try in on my vm when I got time. Ben
ajbritton Posted March 20, 2007 Posted March 20, 2007 WKSName = WshShell.Environment("PROCESS").Item("COMPUTERNAME") Gets the computer name (NOTE: FQDM is not returned) Set cServices = oWMI.ExecQuery _ ("Select * from Win32_Service Where Name = '{SERVICE NAME}'") If you open the service (right click->properties) it will have a servic name (not the display name). Put that in where it says {SERVICE NAME} It will then check to see if its there. If its there then a row result is sent back. If cServices.count = 0 Then Says basically if there is a result do this WshShell.run "BLAH INSTALL" You could have "\\server\apps\usbdlm\install.cmd --silent install" and that should work. Or thats the idea anyway Instead of getting the computername, can't you just use a dot '.'?
tosca925 Posted March 26, 2007 Author Posted March 26, 2007 To update. I deployed the downloadable msi from the site by GPO to a couple of test machines. I nstalled it manually on my pc, set up the .ini file with the settings i want the users to use. Then i copied the .ini file to a network share and run a vb logon script to copy the file to the progame directory on the clients. It works a treat now.......easy mass deployment. I now use a vb script to check to see if the file exists and stop if it does, if not then copy the file to the directory. I like to use this sort of script just incase a lot of the laptops clients are not logged on regular. This has helped me with SiMS as this was mapped as E: and Windowws always used bloody E: on our workstaions so stopping SimS working after using a USB stick. If anyone wants the script let me know.
dezt Posted June 4, 2007 Posted June 4, 2007 just deployed USBDLM via gpo, worked a treat. Finally got usb drives working
tosca925 Posted June 4, 2007 Author Posted June 4, 2007 @anders @DSapseid Not at work at the moment so have no access to the script. drop me aPM or email in the morning and i'll send it over to you.
acrobson Posted June 4, 2007 Posted June 4, 2007 Here is a copy of the USB Drive Letter Manager USBDLM
anders Posted June 6, 2007 Posted June 6, 2007 Hello again! I'm a newbie in GPO. Can anyone please give me a complete guide on how to install usbdlm through GPO? Thanks! Anders
anders Posted June 6, 2007 Posted June 6, 2007 Thank you for the script, but I'm still having problems. When I tested it on my machine where I had manually installed the usbdlm with administrator rights earlier, the script worked without any problems. When I tested it on a machine with a user without any local privileges, it didn't. It seems like the command in _install.bat has to be executed once on the machines with local administrative rights before the script is working. (The service has to running, before the process can start?) What can I do to get the whole thing automatized so I don't have to do this manually one time on every single computer? Is it possible to make another script for GPO which checks if the right service is running, if not start it? Something similar to the script for the process? Anders
plexer Posted June 6, 2007 Posted June 6, 2007 You have to download the msi version of the software and then deploy this using a group policy object. This will then install it on your machines with the relevant priveleges. After that you use the script provided as a login script or machine startup script to copy the updated file to the machines. Otherwise you could run the install using a machine startup script this will then install it with system priveleges. Ben
anders Posted June 6, 2007 Posted June 6, 2007 Thank you very much, guys! I'll try it first thing in the morning.... Anders
anders Posted June 7, 2007 Posted June 7, 2007 I have now tried to deploy the .msi by GPO under computer configuration-software settings-software installation without any luck. When I reboot the machine, I can't see the usbdlm.exe either as a process or a service. That means that it has not installed properly, right? Is it something that I've forgotten to do? Anders
Geoff Posted June 7, 2007 Posted June 7, 2007 If a GPO deployment of a MSI has failed, there will be a error logged from the source 'Application Management' in the Application Event Log explaining what broke.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now