Why do you need a script to do it? Why not just use the GUI once and be done with it?That worked fine in XP, but no longer in Win7
Anybody has a good script that can do it in 7 ?
Then how did they get past the UAC prompt to install VCD in the first place? If it needs to be a predefined letter, the admin needs to set it in Disk Management right after installing VCD; if it's already installed, you gotta go back to each PC and do it yourself. (If you "ghost" your PCs, install VCD and set its letter on the initial PC before making your ghost image.)Come on guys, that is not a single user machine, it is multi user, multi machine environment
I need to have it scripted so users (that are users, not admins) can do the change themselves to predefined letter (lots depends on this very letter)
Come on guys, that is not a single user machine, it is multi user, multi machine environment
I need to have it scripted so users (that are users, not admins) can do the change themselves to predefined letter (lots depends on this very letter)
That's basically what I was saying, except I didn't have any specific tool in mind. Surely any network admin worth his Microsoft certifications uses some sort of tool to set drive letters (this one, Disk Management, etc.); because of how VCD works, any of those should work on VCD drives just like ordinary optical drives.
$VCD = Get-WmiObject -Class Win32_CDROMDrive -Filter "Caption = 'ELBY CLONEDRIVE SCSI CdRom Device'" | Select-Object -ExpandProperty Drive
#Sadly CIM_LogicalDevice does NOT have Drive as property - http://wutils.com/wmi/ROOT/cimv2/CIM_ManagedSystemElement/CIM_LogicalElement/CIM_LogicalDevice.html
#$VCD = Get-WmiObject -Class CIM_LogicalDevice -Filter "PNPDeviceID = 'SCSI\\CDROM&VEN_ELBY&PROD_CLONEDRIVE&REV_1.4\\1&2AFD7D61&0&000000'" | Select-Object Drive
$Letter = Get-WmiObject -Class Win32_Volume -Filter "DriveLetter = '$($VCD)'"
Set-WmiInstance -InputObject $Letter -Arguments @{DriveLetter="V:"}