jack0w Posted September 16, 2008 Author Posted September 16, 2008 This is the script I ended up using: Set objFSO = CreateObject("Scripting.FileSystemObject") Set objOutFile = objFSO.CreateTextFile("C:\diskpart.txt") On Error Resume Next strComputer = "." Dim strDriveLetter Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") Set colItems = objWMIService.ExecQuery("Select * from Win32_CDROMDrive") For Each objItem in colItems If objItem.Name = "Avantis Open CDMVD001 SCSI CdRom Device" Then objOutFile.WriteLine "Select volume" & " " & objItem.Drive Next objOutFile.WriteLine "assign letter=K:" objOutFile.Close Set objFSO = nothing Set objOutFile = nothing WScript.Sleep(5000) Set objShell = CreateObject ("WScript.Shell") objShell.Run "diskpart /s C:\diskpart.txt", 6, True I dropped the script into the netlogon folder, and assigned it as a Startup script on an OU which I put all computers that have been imaged into.
User3204 Posted September 16, 2008 Posted September 16, 2008 I uninstalled the Avantis client.. it was easier... but since the hardware was failing this summer too.. 'Course our trouble would be that we have 3 avantis drives (or we did before I dumped the thing). If you use the older 1.31 version of the software, it doesn't work the same way, and actually remembers the settings after a sysprep.
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