Hi,
I found this somewhere else and it disables the File Sharing Wizard in windows 7. The first time I ran it things looked good. On a second run after re-enabling the File Sharing Wizard it did not appear to work. Any thoughts on the code:
Option Explicit
Dim objShell, FileExt, SharWiz, CheckBox, strModify, strDelete
FileExt = "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\HideFileExt\DefaultValue"
SharWiz = "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\SharingWizardOn\DefaultValue"
CheckBox= "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\AutoCheckSelect\DefaultValue"
Set objShell = CreateObject("WScript.Shell")
strModify = objShell.RegWrite(FileExt,"00000000","REG_DWORD")
strModify = objShell.RegWrite(SharWiz,"00000000","REG_DWORD")
strModify = objShell.RegWrite(CheckBox,"00000000","REG_DWORD")
Wscript.Quit
Thanks.
I found this somewhere else and it disables the File Sharing Wizard in windows 7. The first time I ran it things looked good. On a second run after re-enabling the File Sharing Wizard it did not appear to work. Any thoughts on the code:
Option Explicit
Dim objShell, FileExt, SharWiz, CheckBox, strModify, strDelete
FileExt = "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\HideFileExt\DefaultValue"
SharWiz = "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\SharingWizardOn\DefaultValue"
CheckBox= "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\AutoCheckSelect\DefaultValue"
Set objShell = CreateObject("WScript.Shell")
strModify = objShell.RegWrite(FileExt,"00000000","REG_DWORD")
strModify = objShell.RegWrite(SharWiz,"00000000","REG_DWORD")
strModify = objShell.RegWrite(CheckBox,"00000000","REG_DWORD")
Wscript.Quit
Thanks.