Question Locked

Changing Users Registry remotely on Windows 2000

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hey guys I'm having difficulty modifying a users registry remotely on windows 2000 PC's using vbscript.

When attempting to alter the registry settings on Win XP using this script it works fine but when applying the same script to Win2000 workstations it doesnt seem to work

I'm attempting to connect to the registry by identifying the SID of a client and altering the users current hive

Method I'm using to alter the registry is as follows

Set oRegistry = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strWorkstation & "\root\default:StdRegProv")

Result = oRegistry.SetStringValue(sstrRoot, sstrPath, sstrName, sstrValue)

Windows 2000 Pc's use SP4

1 reply

This discussion is closed to new replies.