I am trying to run a batch file at shutdown in Vista containing :
C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Pol icies\System /v EnableLUA
/t REG_DWORD /d 0 /f
so I can automatically turn off UACand keep UAC off at every boot (it keeps
turning back on).
I could do a script in XP but it seems I have no gpedit.msc in Vista. The
Group Policy and Group Policy Users folders are both empty in
C:\Windows\system32.
This is an upgrade version of Vista Home Premium installed as a clean
install and it is activated. What am I missing?
I am trying to run a batch file at shutdown in Vista containing :
C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Pol icies\System /v EnableLUA
/t REG_DWORD /d 0 /f
so I can automatically turn off UACand keep UAC off at every boot (it keeps
turning back on).
I could do a script in XP but it seems I have no gpedit.msc in Vista. The
Group Policy and Group Policy Users folders are both empty in
C:\Windows\system32.
This is an upgrade version of Vista Home Premium installed as a clean
install and it is activated. What am I missing?
That's kinda like buying a Playboy or Penthouse and finding someone removed
the centrefold.
"Carey Frisch [MVP]" <cnfrisch@nospamgmail.com> wrote in message
news:8C22AFD6-8B0B-4911-8893-09E6E6DCA3CE@microsoft.com...
> Gpedit.msc is only available with Vista Business, Ultimate or
> Enterprise editions.
>
> Perhaps the following will help you out:
>
> The easy way to disable Vista's UAC
> http://www.edbott.com/weblog/?p=1829
>
> --
> Carey Frisch
> Microsoft MVP
> Windows Shell/User
>
> ---------------------------------------------------------------
>
> "Wildcat" wrote:
>
> I am trying to run a batch file at shutdown in Vista containing :
> C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD
> HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Pol icies\System /v
> EnableLUA
> /t REG_DWORD /d 0 /f
>
> so I can automatically turn off UACand keep UAC off at every boot (it
> keeps
> turning back on).
>
> I could do a script in XP but it seems I have no gpedit.msc in Vista.
> The
> Group Policy and Group Policy Users folders are both empty in
> C:\Windows\system32.
> This is an upgrade version of Vista Home Premium installed as a clean
> install and it is activated. What am I missing?
>
> Wildcat
I get a syntax error when trying to run your script on Vista Business. Type
reg add /? for usage.
"Wildcat" <wildxcat2000@hotmail.com> wrote in message
news:OY$ZRU0OIHA.3532@TK2MSFTNGP04.phx.gbl...
>I am trying to run a batch file at shutdown in Vista containing :
> C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD
> HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Pol icies\System /v
> EnableLUA /t REG_DWORD /d 0 /f
>
> so I can automatically turn off UACand keep UAC off at every boot (it
> keeps turning back on).
>
> I could do a script in XP but it seems I have no gpedit.msc in Vista.
> The Group Policy and Group Policy Users folders are both empty in
> C:\Windows\system32.
> This is an upgrade version of Vista Home Premium installed as a clean
> install and it is activated. What am I missing?
>
> Wildcat
>
Another problem is that this batch will need to be initiated from an
elevated command prompt.
The easiest way around this would be to run the batch as a Scheduled Task
and set the task to
'Run at shutdown'
and
'Run with highest privileges'.
--
Ronnie Vernon
Microsoft MVP
Windows Shell/User
"Wildcat" <wildxcat2000@hotmail.com> wrote in message
news:%232Aon$1OIHA.2308@TK2MSFTNGP05.phx.gbl...
> That's kinda like buying a Playboy or Penthouse and finding someone
> removed the centrefold.
>
>
> "Carey Frisch [MVP]" <cnfrisch@nospamgmail.com> wrote in message
> news:8C22AFD6-8B0B-4911-8893-09E6E6DCA3CE@microsoft.com...
>> Gpedit.msc is only available with Vista Business, Ultimate or
>> Enterprise editions.
>>
>> Perhaps the following will help you out:
>>
>> The easy way to disable Vista's UAC
>> http://www.edbott.com/weblog/?p=1829
>>
>> --
>> Carey Frisch
>> Microsoft MVP
>> Windows Shell/User
>>
>> ---------------------------------------------------------------
>>
>> "Wildcat" wrote:
>>
>> I am trying to run a batch file at shutdown in Vista containing :
>> C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD
>> HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Pol icies\System /v
>> EnableLUA
>> /t REG_DWORD /d 0 /f
>>
>> so I can automatically turn off UACand keep UAC off at every boot (it
>> keeps
>> turning back on).
>>
>> I could do a script in XP but it seems I have no gpedit.msc in Vista.
>> The
>> Group Policy and Group Policy Users folders are both empty in
>> C:\Windows\system32.
>> This is an upgrade version of Vista Home Premium installed as a clean
>> install and it is activated. What am I missing?
>>
>> Wildcat
>