How to Disable UAC on Vista (user access control)

User Access Control is a new feature which was introduced with Microsoft Vista. UAC is an important (although sometimes annoying) security feature which makes it harder for malware or a virus from getting onto your system without your knowledge. I strongly recommend you keep UAC turned on.

If you have a real reason for disabling user access control you can do this by a few methods.

Click on your Start button then Control Panel

Select User Accounts and Family Safety

disableuac1

Select User Accounts

disableuac2

Select Turn User Account Control on or off

disableuac3

Click Continue on the UAC dialogue then untick the Use User Access control (UAC) to help protect your computer checkbox and click OK

disableuac4

Click on Restart Now to make the change or Restart Later if you cant reboot now.

disableuac5

Share

Delete user profiles on a regular basis.

I generally have a lot of users who log in and out of machines and the “c:\documents and settings” folder gets clogged up with gigabytes of data over time.

To delete the user profiles on a machine you can use a little utility called Delprof which is a microsoft tool. I generally copy the delprof.exe file to my c:\windows\system32 folder on the machines that I manage so that typing the command delprof /Q /I into a run Window or a command prompt will start deleting the users profiles which reside on the system. Really useful if you need to take a quick image of a machine and want to clean up the documents and settings area immediatly.

To schedule delprof to run every weekday open a command prompt window and type:

at 16:00 /every:Monday,Tuesday,Wednesday,Thursday,Friday “delprof /Q /I”

For the above to work the delprof.exe will need to be in your path somewhere (eg. C:\windows\System32)

You can also copy the below text into notepad and and save it as delprof.vbs. Running it will copy the delprof.exe file from somewhere on your network chose to the c:\windows\system32 folder. It will then schedule a “delprof /Q /I” task to run every Tuesday, Thursday and Saturday.

——— Start Copy Here ———

Const OverwriteExisting = True
Set objFSO = CreateObject(“Scripting.FileSystemObject”)
objFSO.CopyFile “\\servername\ShareName\Utilities\Delprof\delprof.exe” , “C:\Windows\system32\”, OverwriteExisting

strComputer = “.”
Set objWMIService = GetObject(“winmgmts:” _
& “{impersonationLevel=impersonate}!\\” & strComputer & “\root\cimv2″)
Set objNewJob = objWMIService.Get(“Win32_ScheduledJob”)
errJobCreated = objNewJob.Create _
(“delprof /Q /I”, “********220000.000000-420″, _
True , 1 OR 4 OR 16, , , JobID)
Wscript.Echo errJobCreated

———End Copy Here ———

If you get a Script error like the below it means the file your trying to copy from your file share does not exist.

delprof1

A successful completion should show:

delprof21

When I was testing this script under vista I noticed that the Windows Script Host was showing a 2 instead of a 0. This was because the vbscript was not run from an elevated Command prompt (right click command prompt icon and select “Run as Administrator”. If you are going to run under vista please test it fully as I have not had an opportunity to do so.

Share