Group Policy

W

Wildcat

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\Policies\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
 
C

Carey Frisch [MVP]

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

---------------------------------------------------------------

:

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\Policies\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
 
W

Wildcat

That's kinda like buying a Playboy or Penthouse and finding someone removed
the centrefold.
 
J

John

I get a syntax error when trying to run your script on Vista Business. Type
reg add /? for usage.
 
R

Ronnie Vernon MVP

Wildcat

Just for reference, the 'Home' versions of Windows have never included the
advanced .MSC tools like SecPol, GPEdit, etc.

Most of the settings included in these advanced tools can be set using the
registry, as you are trying to do here.

Change your batch to:

C:\Windows\System32\cmd.exe /k
reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v
EnableLUA /d 0 /f

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top