Windows Script Host: Difference between revisions
CSV import |
CSV import |
||
| Line 1: | Line 1: | ||
== Windows Script Host == | == Windows Script Host == | ||
Windows Script Host | [[File:Windows Script Host Icon.png|thumb|right|Windows Script Host Icon]] | ||
'''Windows Script Host''' ('''WSH''') is a [[Microsoft]] technology that provides scripting abilities similar to [[batch file]]s, 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 == | |||
Windows Script Host provides a set of features that make it a powerful tool for [[system administration]] and [[automation]]. Some of these features include: | |||
Windows | * '''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 == | |||
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 == | |||
[[File:Windows Script Host Icon.png|thumb|left|WSH Icon]] | |||
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 == | |||
* [[VBScript]] | |||
* [[JScript]] | |||
* [[Microsoft Windows]] | |||
* [[Batch file]] | |||
* [[Command line]] | |||
{{Microsoft}} | |||
[[Category:Microsoft technologies]] | |||
[[Category:Scripting languages]] | [[Category:Scripting languages]] | ||
[[Category: | [[Category:Windows administration]] | ||
Latest revision as of 16:31, 16 February 2025
Windows Script Host[edit]
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]
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]
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]
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]
| Microsoft | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
* Category
|