Export (0) Print
Expand All
Expand Minimize

Name Property (Deployment class)

Published: June 20, 2005

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

Member Of

Deployment class

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft