Re: StdRegProv creates user profile on remote machine

Tech-Archive recommends: Fix windows errors by optimizing your registry



What OS are you running on the Client and the Server?

Here is an KB Article that has similarities with your situation.

http://support.microsoft.com/default.aspx?scid=kb;en-us;816740


--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm


<brian.arsenault@xxxxxxxxx> wrote in message
news:1130432092.749275.126910@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hello,
>
> Can someone explain if there is a way to NOT create a local profile on
> a remote machine while executing the following VBScript.
>
> const HKEY_LOCAL_MACHINE = &H80000002
>
> Set objReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" _
> & strComputer & "\root\default:StdRegProv")
>
> strKeyPath = "SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
> objReg.EnumValues HKEY_LOCAL_MACHINE, strKeyPath, arrValueNames,
> arrValueTypes
> For each strValueName in arrValueNames
> objReg.GetStringValue
> HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue
> msgbox strValueName & " " & strValue
> Next
>
> Thanks a bunch!
>
> BA
>


.