|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
VBScript - Edit Windows environment via vb
Does anyone know how to do the following via wsf and vb scripts..I searched internet but could only find a partial answer...Im trying to do a noninteractive installtion of many applications that need these options...
Click the StartSettingsControl PanelAdd or Remove Programs start menu option In the Add or Remove Programs window, click the Add/Remove Windows Components button In the Windows Components Wizard: Windows Components window, de-select the following option under components: • Internet Explorer Enhanced Security Configuration Click ‘Next’ Click ‘Finish’ Close the Add or Remove Programs window Modify the Data Execution Prevention (DEP) settings to allow the IWPC installers to run by doing the following: Click the StartSettingsControl PanelSystem start menu option In the System Properties window, click the Advanced tab Under the Performance section, click the Settings button In the Performance Options window Click the Data Execution Prevention tab Select Turn on DEP for essential Windows programs and services only radio option Click the OK button In the System Properties window, click the OK button |
|
#2
|
||||
|
||||
|
It would be too hard to automate those dialog windows. It's better to revert to the command line.Note that uninstalling IE's ESC does require a system reboot.
__________________
Click the image if at any point you don't like my decision.Scripting problems? Windows questions? Ask the Windows Guru! |
|
#3
|
|||
|
|||
|
Nilpo
I read that the command " Turn off IE Enhanced Security Configuration WshShell.Exec("rundll32.exe setupapi.dll,InstallHinfSection IESoftenAdmin 128 %windir%\inf\IEHARDEN.INF")" was just for Administrators...or did I understand it wrong...I need it to be off for ALL users all the time... THanks for all your help....I am still working the other issue and Ill post again when I figure something out or figure out errors... Quote:
|
|
#4
|
||||
|
||||
|
Quote:
|
|
#5
|
|||
|
|||
|
Nilpo
When I run the code it says Untermiated opauq block and highlights the last line....also i need the DEP setting to be Turn on DEP for essential Windows programs and services only thanks again for your help...oh I am running it command line is that right? Quote:
|
|
#6
|
||||
|
||||
|
Quote:
Since this is not a standard VBScript error, I'm not sure where it's coming from. |
|
#7
|
|||
|
|||
|
yeah ...dont listen to me....Its because I was trying everything to make it run...ignore that error...
Is there a way to make the command window PAUSE besides SLEEP...I see some kind of message but it flashes so fast I cant read it.... |
|
#8
|
||||
|
||||
|
Quote:
The reason I say yes and no to your question is that you CAN force the command window to remain open, but that will pause your script execution in many cases causing it not to terminate properly. To do that just prepend "cmd /k" to the beginning of your command line. The K switch instructs the command window to execute and remain open. Your script may not complete until this window is manually closed. |
|
#9
|
|||
|
|||
|
Windows Server 2003 Std Eddoesnt have bcdedit...is there something else I can use?
Quote:
|
|
#10
|
|||
|
|||
|
I tried to run the bcdedit command line...and realized its not available on windows 2003 server...is there another command I can use instead to change the DEP options?
Quote:
|