Name Property (Deployment class)
Name Property (Deployment class)
Gets and sets the unique name that identifies a deployment.
obj.Name = string
Part |
Description |
---|---|
obj |
An instance of the Deployment class. |
string |
A string that uniquely identifies a deployment. |
Qualifier
Qualifier |
Description |
---|---|
Key |
A string that uniquely identifies this instance of the Deployment class |
Windows Management Instrumentation (WMI) Script Example
strDeploymentName = "Default" ' Connect to MSS namespace on the specified computer. Set objLocator = CreateObject("WbemScripting.SWbemLocator") Set objNamespace = objLocator.ConnectServer("localhost", "root/MSS") ' Get the WMI deployment object. Set objDeployment = objNamespace.Get("Deployment.Name='" & strDeploymentName & "'") ' Display the value of the Name property. WScript.Echo objDeployment.Name