Tag Archives: w-script

Fixed: Windows Script Host access is disabled on this machine

If you receive this Windows Script Host access is disabled on this machine, Contact your administrator for details message box, on your Windows 10/8/7 computer, then this post may interest you. Today we will see how you can enable or disable Windows Script Host.

Windows Script Host access is disabled on this machine

Windows Script Host or WSH, is a Microsoft technology that provides scripting abilities like batch files, but includes many more features. Such Scripts can be run directly from the desktop by double-clicking a script file, or from a command prompt. It can be run from either the protected-mode Windows-based host wscript.exe, or the real-mode command shell-based host cscript.exe.

Several “HTML malware” have been reported to use WSH objects as a result of which, those who do not require this feature, tend to disable it. But disabling WSH, will prevent users from running any scripts, including VBScript and JScript scripts, that rely on this technology – and some software may require this feature to be enabled.

Enable, disable Windows Script Host

To enable or disable Windows Script Host, type regedit.exe in Run box and hit Enter to open the Registry Editor.

Navigate to the following key:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows Script Host\Settings


In the right panel, you will see Enabled. If you see the entry 0, it means that the Windows Script Host access is disabled on your Windows machine.

Double Click on it and give it Value Data 1 to enable it.

A value of 1 will enable Windows Script Host

A value of 0 will disable Windows Script Host.

Click on OK and exit the Registry. If you don’t see this entry, then you may need to create it, as it does not exist by default in Windows.

You will now, no longer receive the Windows Script Host access is disabled on this machine. In this way you can enable or disable Windows Script Host.

=========================================

The existing ESSO-AA cannot be uninstalled, and the installation reports the following error.

Solution: Download Microsoft’s repair tool. Uninstall it first, then reinstall it.

https://www.cnblogs.com/rusking/p/10125483.html

How to log off the computer after inactivity

Dim fso
Set fso = CreateObject(” Scripting.FileSystemObject “)
dim systemfolder
const systemfolderflag = 1
‘bind FSO object, take% systemroot% directory
set systemfolder= fso.GetSpecialFolder (systemFolderFlag)

Dim WshShell
Set WshShell = WScript.CreateObject (” WScript.Shell “)
‘installation Winexit.src
fso.copyfile ” winexit.scr “,systemFolder+”\\ winexit.scr “
WshShell.RegWrite “HKCU\Control Panel\Screen Saver.Logoff \”,””,”REG_ SZ”
WshShell.RegWrite “HKCU\Control Panel\desktop\ SCRNSAVE.EXE “, systemFolder+”\\ winexit.scr “,”REG_ SZ “
‘setting screen saver is available
” WshShell.RegWrite “HKCU\Control Panel\desktop\ScreenSaveActive”,1,”REG_ SZ “
‘set the duration of screen saver 600s
” WshShell.RegWrite “HKCU\Control Panel\desktop\ScreenSaveTimeOut”,200,”REG_ SZ”

http://windows.chinaitlab.com/skill/768790.html

http://support.microsoft.com/kb/314999/zh-cn

the scheme of log off when the computer is idle for 15 minutes| winexit.scr Group policy deployment

Computer idle 15 minutes to log off the program| winexit.scr Group policy deployment. There are a number of public computers in the company. When someone uses them well, they leave the computer and do not cancel their account. After 15 minutes, the computer will be locked and the administrator must be asked to unlock it or shut it down. Is there a plan to automatically cancel the computer when it is idle for 15 minutes?My company has an Internet bar. I want an account to enable this group policy when I log in to the Internet bar, but not when I log in to the work computer. How can I do that?

Answer: according to my research, Microsoft Windows 2000 resource kit includes a Winexit.scr Tool, you can use it to automatically exit the user’s program and log the user off the workstation. For detailed operation steps, please refer to the following link:

how to: in Windows XP Users are forced to quit the program and log out after a certain period of inactivity http://support.microsoft.com/kb/314999/zh-cn
screen saver and logout are two different concepts. Logout needs to stop open applications, while screen saver does not need to stop open applications. We can’t log off the computer automatically after a period of idle time through group policy. We can activate “Screen Saver”, set “screen saver executable name” and “screen saver timeout” through group policy – user configuration – management template – control panel – display. However, the policy is for users, not for computers. When the policy takes effect for user a, it will take effect no matter which computer user a logs on to.

We can’t automatically log off users through WMI filtering. Winexit.scr The tool can achieve your requirements, the tool is not an ordinary screen saver, it can be forced to log off the current application, and ordinary screen saver does not have this function.

Wang Zhengmao online technical support engineer Microsoft global technical support center

Winexit.scr To meet your needs, you can set up an Ou in which only computers in Internet cafes are placed, and then implement policies for the Ou to winexit.scr Deploy to the computer of the Internet bar, and then winexit.scr Specify as the screen saver and set the time for the screen saver to 15 minutes. In this way, when the idle time reaches 15 minutes, the computer of the Internet bar will execute winexit.scr To force the current logged on user to log off.