| |
NewBee
Posts: 32
Score: 0
Joined: 2/10/2006
Status: offline
|
i have the following script which works jus fine, however for the strDescription i like to use the current logged on user name. can anyone show me how it would be done. thanks, Const HKEY_LOCAL_MACHINE = &H80000002 strComputer = "." Set objRegistry = GetObject _ ("winmgmts:\\" & strComputer & "\root\default:StdRegProv") strKeyPath = "System\CurrentControlSet\Services\lanmanserver\parameters" strValueName = "srvcomment" strDescription = "Description changed programmatically" objRegistry.SetStringValue HKEY_LOCAL_MACHINE, strKeyPath, strValueName, strDescription
|
|