Windows Script Host
Windows Script Host[edit | edit source]
Windows Script Host (WSH) is a Microsoft technology that provides scripting abilities similar to batch files, but with a wider range of supported features. It is language-independent, meaning it can work with different scripting languages, such as VBScript and JScript.
WSH is included in all versions of Microsoft Windows since Windows 98, and it allows for the automation of tasks and the execution of scripts directly from the Windows desktop or the command line.
Features[edit | edit source]
Windows Script Host provides a set of features that make it a powerful tool for system administration and automation. Some of these features include:
- Language Independence: WSH supports multiple scripting languages, allowing users to choose the language they are most comfortable with.
- Object Model: WSH provides a rich object model that allows scripts to interact with the Windows operating system and perform tasks such as file manipulation, registry editing, and network communication.
- Ease of Use: Scripts can be executed directly from the desktop or command line, making it easy to automate repetitive tasks.
- Extensibility: WSH can be extended with additional COM objects, allowing for even more functionality.
Usage[edit | edit source]
WSH scripts can be executed in several ways:
- Double-clicking: Users can double-click a script file in Windows Explorer to execute it.
- Command Line: Scripts can be run from the command line using the `cscript` or `wscript` command.
- Scheduled Tasks: Scripts can be scheduled to run at specific times using the Task Scheduler.
Security[edit | edit source]
Security is a significant concern with WSH, as scripts can potentially perform harmful actions on a system. To mitigate this, WSH includes several security features:
- Script Signing: Scripts can be digitally signed to verify their authenticity and integrity.
- Execution Policy: Administrators can set execution policies to control which scripts are allowed to run.
- User Account Control (UAC): WSH scripts may require elevated privileges to perform certain actions, which can be controlled through UAC.
Related Pages[edit | edit source]
Search WikiMD
Ad.Tired of being Overweight? Try W8MD's physician weight loss program.
Semaglutide (Ozempic / Wegovy and Tirzepatide (Mounjaro / Zepbound) available.
Advertise on WikiMD
WikiMD's Wellness Encyclopedia |
Let Food Be Thy Medicine Medicine Thy Food - Hippocrates |
Translate this page: - East Asian
中文,
日本,
한국어,
South Asian
हिन्दी,
தமிழ்,
తెలుగు,
Urdu,
ಕನ್ನಡ,
Southeast Asian
Indonesian,
Vietnamese,
Thai,
မြန်မာဘာသာ,
বাংলা
European
español,
Deutsch,
français,
Greek,
português do Brasil,
polski,
română,
русский,
Nederlands,
norsk,
svenska,
suomi,
Italian
Middle Eastern & African
عربى,
Turkish,
Persian,
Hebrew,
Afrikaans,
isiZulu,
Kiswahili,
Other
Bulgarian,
Hungarian,
Czech,
Swedish,
മലയാളം,
मराठी,
ਪੰਜਾਬੀ,
ગુજરાતી,
Portuguese,
Ukrainian
Medical Disclaimer: WikiMD is not a substitute for professional medical advice. The information on WikiMD is provided as an information resource only, may be incorrect, outdated or misleading, and is not to be used or relied on for any diagnostic or treatment purposes. Please consult your health care provider before making any healthcare decisions or for guidance about a specific medical condition. WikiMD expressly disclaims responsibility, and shall have no liability, for any damages, loss, injury, or liability whatsoever suffered as a result of your reliance on the information contained in this site. By visiting this site you agree to the foregoing terms and conditions, which may from time to time be changed or supplemented by WikiMD. If you do not agree to the foregoing terms and conditions, you should not enter or use this site. See full disclaimer.
Credits:Most images are courtesy of Wikimedia commons, and templates, categories Wikipedia, licensed under CC BY SA or similar.
Contributors: Prab R. Tumpati, MD