T
this.tech.guy
hi,
i'm trying to get chkdsk running on my win2k workstations once in a
while through this script:
<script>
const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &_
strComputer & "\root\default:StdRegProv")
strKeyPath = "SYSTEM\CurrentControlSet\Control\Session Manager"
strValueName = "BootExecute"
arrStringValues = Array("autocheck autochk /r \??\E:", "autocheck
autochk /r \??\D:", "autocheck autochk /r \??\C:", "autocheck autochk
*")
oReg.SetMultiStringValue
HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue
</script>
while i am able to create and delete values in this key, i can't
modify them. which i find a little strange btw
of course, a similar script will work correctly in another hive
(software, for instance)
so i had a careful look at permissions for this, besides, at this
point, i am still testing it as domain admin.
while all reason points to a permissions issue, i can't figure it out.
i'm sure someone has a valid explanation for this.
regards,
this.tech.guy
i'm trying to get chkdsk running on my win2k workstations once in a
while through this script:
<script>
const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &_
strComputer & "\root\default:StdRegProv")
strKeyPath = "SYSTEM\CurrentControlSet\Control\Session Manager"
strValueName = "BootExecute"
arrStringValues = Array("autocheck autochk /r \??\E:", "autocheck
autochk /r \??\D:", "autocheck autochk /r \??\C:", "autocheck autochk
*")
oReg.SetMultiStringValue
HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue
</script>
while i am able to create and delete values in this key, i can't
modify them. which i find a little strange btw
of course, a similar script will work correctly in another hive
(software, for instance)
so i had a careful look at permissions for this, besides, at this
point, i am still testing it as domain admin.
while all reason points to a permissions issue, i can't figure it out.
i'm sure someone has a valid explanation for this.
regards,
this.tech.guy