S
Shenan Stanley
Paul Calcagno wrote:
> I'm running Windows Home Premium, SP2. Windows Defender, Spyware
> Doctor, MBAM, SAS and CCleaner. MS Office 2007. 2 GB of RAM. All
> WU's are current. System is running fine.
>
> I'm having trouble with Win Defender Definitions updates so I'm
> working via e-mail with MS to reset my Security Settings and
> Permissions. One of their suggestions is to create a batch file
> using Run==>Cmd==notepad and have this file contain the following:
>
> @echo off
>
> subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f
> subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f
> subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f
> subinacl /subdirectories %SystemDrive% /grant=administrators=f
> subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=system=f
> subinacl /subkeyreg HKEY_CURRENT_USER /grant=system=f
> subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=system=f
> subinacl /subdirectories %SystemDrive% /grant=system=f
>
> @Echo =========================
> @Echo Finished.
> @Echo =========================
> @pause
>
> Now I'm having trouble saving this file as a batch file so that I
> can double click it to make it run under a Dos application. If
> saved correctly, I'm supposed to be able to double left click it or
> right click it and select `Run As Administrator'. No matter what I
> call it (reset.bat, reset.txt) or no matter what file type I save
> is as, when I double click it, it won't `run' or when I right click
> it, Run as Administrator is not an option. Am I doing something
> wrong? Paul C.
> Any help would be greatly appreciated. Do I have a virus and that's
> why these files are behaving this way? I've waisted hours on this
> meaningless problem.
Seems you are being told to do this:
"Advanced Troubleshooting" titled,
"Method 1: Reset the registry and the file permissions"
http://support.microsoft.com/kb/949377
Correct?
But you never mentioned getting/installing SUBINACL...
Download and then install the Subinacl.exe file. To do this, visit the
following Microsoft Web site:
http://www.microsoft.com/downloads/details.aspx?FamilyID=e8ba3e56-d8fe-4a91-93cf-ed6985e3927b
Without that step - the rest will fail. After installing that - continue.
Create your document as you have shown, but add this as the first line:
cd /d "%ProgramFiles%\Windows Resource Kits\Tools"
If you save it as reset.cmd (in notepad by clicking FILE --> SAVE AS -->
Save In: "Local Disk (C" --> File name: "reset.cmd" --> Save as type: "All
Files" --> Encoding: ANSI --> click on the "SAVE" button then FILE --> EXIT)
at the root of your C drive and then do the following...
Start button --> RUN --> type in:
cmd /k dir c:\reset*.*
--> click OK
What does the resultant directory listing show?
If it shows something like:
" Volume in drive C has no label.
Volume Serial Number is ____-____
Directory of c:\
__/__/____ __:__ __ 476 reset.cmd
1 File(s) 476 bytes"
Type in EXIT at the command prompt.
Then you could could check the file associations - where CMD and BAT should
*not* be listed. If they are - they may be associated with whatever you
used to open/edit them - and there is your issue. Need to not have that
association. Most likely - you are fine - move on...
Now - what happens when you try to run it with right-click --> Run As
Administrator?
One might have you try this:
How do I reset Windows Update components?
http://support.microsoft.com/kb/971058
.... if you are running a 32-bit version of Windows Vista.
--
Shenan Stanley
MS-MVP
--
How To Ask Questions The Smart Way
http://www.catb.org/~esr/faqs/smart-questions.html
> I'm running Windows Home Premium, SP2. Windows Defender, Spyware
> Doctor, MBAM, SAS and CCleaner. MS Office 2007. 2 GB of RAM. All
> WU's are current. System is running fine.
>
> I'm having trouble with Win Defender Definitions updates so I'm
> working via e-mail with MS to reset my Security Settings and
> Permissions. One of their suggestions is to create a batch file
> using Run==>Cmd==notepad and have this file contain the following:
>
> @echo off
>
> subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f
> subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f
> subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f
> subinacl /subdirectories %SystemDrive% /grant=administrators=f
> subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=system=f
> subinacl /subkeyreg HKEY_CURRENT_USER /grant=system=f
> subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=system=f
> subinacl /subdirectories %SystemDrive% /grant=system=f
>
> @Echo =========================
> @Echo Finished.
> @Echo =========================
> @pause
>
> Now I'm having trouble saving this file as a batch file so that I
> can double click it to make it run under a Dos application. If
> saved correctly, I'm supposed to be able to double left click it or
> right click it and select `Run As Administrator'. No matter what I
> call it (reset.bat, reset.txt) or no matter what file type I save
> is as, when I double click it, it won't `run' or when I right click
> it, Run as Administrator is not an option. Am I doing something
> wrong? Paul C.
> Any help would be greatly appreciated. Do I have a virus and that's
> why these files are behaving this way? I've waisted hours on this
> meaningless problem.
Seems you are being told to do this:
"Advanced Troubleshooting" titled,
"Method 1: Reset the registry and the file permissions"
http://support.microsoft.com/kb/949377
Correct?
But you never mentioned getting/installing SUBINACL...
Download and then install the Subinacl.exe file. To do this, visit the
following Microsoft Web site:
http://www.microsoft.com/downloads/details.aspx?FamilyID=e8ba3e56-d8fe-4a91-93cf-ed6985e3927b
Without that step - the rest will fail. After installing that - continue.
Create your document as you have shown, but add this as the first line:
cd /d "%ProgramFiles%\Windows Resource Kits\Tools"
If you save it as reset.cmd (in notepad by clicking FILE --> SAVE AS -->
Save In: "Local Disk (C" --> File name: "reset.cmd" --> Save as type: "All
Files" --> Encoding: ANSI --> click on the "SAVE" button then FILE --> EXIT)
at the root of your C drive and then do the following...
Start button --> RUN --> type in:
cmd /k dir c:\reset*.*
--> click OK
What does the resultant directory listing show?
If it shows something like:
" Volume in drive C has no label.
Volume Serial Number is ____-____
Directory of c:\
__/__/____ __:__ __ 476 reset.cmd
1 File(s) 476 bytes"
Type in EXIT at the command prompt.
Then you could could check the file associations - where CMD and BAT should
*not* be listed. If they are - they may be associated with whatever you
used to open/edit them - and there is your issue. Need to not have that
association. Most likely - you are fine - move on...
Now - what happens when you try to run it with right-click --> Run As
Administrator?
One might have you try this:
How do I reset Windows Update components?
http://support.microsoft.com/kb/971058
.... if you are running a 32-bit version of Windows Vista.
--
Shenan Stanley
MS-MVP
--
How To Ask Questions The Smart Way
http://www.catb.org/~esr/faqs/smart-questions.html