Search found 38 matches
- 18 Jul 2012 07:44
- Forum: DOS Batch Forum
- Topic: Continue batch after UAC disable
- Replies: 37
- Views: 22396
Re: Continue batch after UAC disable
then how do i keep this UAC box from popping up?
- 17 Jul 2012 14:54
- Forum: DOS Batch Forum
- Topic: Continue batch after UAC disable
- Replies: 37
- Views: 22396
Re: Continue batch after UAC disable
yes I can do that and run the batch but if you take out the first_time statement the reg setting will not get changed and the UAC will not get shut off. The only way to run the batch as an admin is to create a shortcut and tell it to run with admin rights. Thats when we get the UAC popup. Since UAC ...
- 17 Jul 2012 11:00
- Forum: DOS Batch Forum
- Topic: Continue batch after UAC disable
- Replies: 37
- Views: 22396
Re: Continue batch after UAC disable
the whole reason i am doing this is so this batch will turn off the UAC without user intervention. That is the purpose of the code you wrote. The only issue is how to elevate the command prompt so we do not get the uac popup
- 17 Jul 2012 09:41
- Forum: DOS Batch Forum
- Topic: Continue batch after UAC disable
- Replies: 37
- Views: 22396
Re: Continue batch after UAC disable
Still getting access denied. I i right click and run as administrator it comes up with a UAC prompt asking if this is OK. I am using an admin account. I double checked under users and the account i am using is marked as administrator. rem @ECHO OFF :: Disable UAC :: This check for the Registry chang...
- 17 Jul 2012 08:30
- Forum: DOS Batch Forum
- Topic: Continue batch after UAC disable
- Replies: 37
- Views: 22396
Re: Continue batch after UAC disable
Sorry it was not removed i just did not copy the whole thing. This is getting to be a pretty big batch with all my other stuff i have in it. My problem is i still cannot get past the registry entry. I have had no luck fixing that issue yet. Here is the first part of my code. rem @ECHO OFF :: Disable...
- 17 Jul 2012 07:11
- Forum: DOS Batch Forum
- Topic: Continue batch after UAC disable
- Replies: 37
- Views: 22396
Re: Continue batch after UAC disable
If i do a runas administrator by right clicking it pops up an authentication box. My apologies for being ignorant but i am not familiar with "lib" command. I have looked on both pages for a download site and cannot find what you are trying to tell me. Can you point me to the download site ...
- 17 Jul 2012 07:09
- Forum: DOS Batch Forum
- Topic: doskitXPx86
- Replies: 39
- Views: 41618
Re: doskitXP32x86
I have looked on both pages for a download site and cannot find what you are trying to tell me. Can you point me to the download site you are refering to? I am using win7
- 16 Jul 2012 15:56
- Forum: DOS Batch Forum
- Topic: Continue batch after UAC disable
- Replies: 37
- Views: 22396
Re: Continue batch after UAC disable
[edit by Ed Dyreen] Why no code tags ? I am getting an access denied when it tries to change the registry entry. Here is the begining of the script and results, I had added some pauses to keep it from rebooting during testing. Any ideas? rem @ECHO OFF :: Disable UAC :: This check for the Registry c...
- 16 Jul 2012 13:18
- Forum: DOS Batch Forum
- Topic: Continue batch after UAC disable
- Replies: 37
- Views: 22396
Re: Continue batch after UAC disable
Thanks i will put all that together and test as soon as i get a chance. Will let you know as soon as i find out.
Many thanks
Many thanks
- 16 Jul 2012 10:05
- Forum: DOS Batch Forum
- Topic: Continue batch after UAC disable
- Replies: 37
- Views: 22396
Re: Continue batch after UAC disable
I tried running the code you showed but it errors out on the reg.fullpath C:\Users\p1tech\Desktop>set "$regHive=HKCU" C:\Users\p1tech\Desktop>set "$reg.fullPath=!$regHive!\Software\Microsoft\Windows \CurrentVersion\RunOnce" C:\Users\p1tech\Desktop>if !$isAdmin! NEQ 0 (("!$re...
- 16 Jul 2012 09:26
- Forum: DOS Batch Forum
- Topic: Continue batch after UAC disable
- Replies: 37
- Views: 22396
Re: Continue batch after UAC disable
can you use this in a batch or is this simply for vbs. I am doing this out of a batch file. Can you explain autorun portion more this has me confused.
- 16 Jul 2012 09:08
- Forum: DOS Batch Forum
- Topic: Continue batch after UAC disable
- Replies: 37
- Views: 22396
Re: Continue batch after UAC disable
I believe that will work but won't that leave the batch file in the startup menu. Also i have several exe that this batch runs i would need to copy those to a temp file as well
- 16 Jul 2012 08:02
- Forum: DOS Batch Forum
- Topic: Continue batch after UAC disable
- Replies: 37
- Views: 22396
Continue batch after UAC disable
I have a batch file i use for setting up new computers. I would like to add the function of disabling UAC. But i would need to reboot for it to take effect. Is there a way to disable UAC, reboot, and continue with the batch file? This is the code i am using to disable UAC. C:\Windows\System32\cmd.ex...
- 11 Jul 2012 10:40
- Forum: DOS Batch Forum
- Topic: Pulling the manufacturer from computer
- Replies: 18
- Views: 10482
Re: Pulling the manufacturer from computer
That seems to have worked. Thanks again everyone. Nice to simplify the batch. Here is final code and results. REM @ECHO OFF for /f "skip=1 tokens=1" %%a in ('WMIC csproduct get vendor') do if not defined machine set "machine=%%a" ECHO Computer model: "%machine%" IF %mac...
- 11 Jul 2012 10:03
- Forum: DOS Batch Forum
- Topic: Pulling the manufacturer from computer
- Replies: 18
- Views: 10482
Re: Pulling the manufacturer from computer
this will work
@echo off
cls
For /F "skip=1 tokens=1" %%A IN ('WMIC csproduct get vendor') DO echo %%A
pause
but it will not work with the set statement so i can use the if statement
@echo off
cls
For /F "skip=1 tokens=1" %%A IN ('WMIC csproduct get vendor') DO echo %%A
pause
but it will not work with the set statement so i can use the if statement