Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Microsoft PowerShell
#1
An MS Powershell snapin that exposes a number of CQC items via cmdlts. Currently it only supports Driver and field status/writes/reads but am finishing up macro, image support and repository cmdlts.

I'm contemplating rolling a Powershell CQC provider which will allow CQC to be represented as a full data server, exposing it's drivers, image repository, media Categories, etc. to both the operating system and from things like the command line, vbscript, .Net apps or even MS System Center Operations Manager packages.

I plan on having an installer package tested and available within the next 2 weeks if anyone's interested.

Examples of some of the cmdlts:

Get-CQCDriver [-ComputerName <cqchost>] -Credentials <name>,<password> [-List] [-DriverName <drivername>]
[INDENT]if -ComputerName is left out the local server is used

-Credentials are required

-List as the lone switch will simply list the driver names out as string objects to be used on the pipeline or simply to view.

-DriverName <drivername> will display the status of the driver, or drivers if an array is used.
[/INDENT]
Get-CQCField [-ComputerName <cqchost>] -Credentials <name>,<password> -FieldName <moniker.field>
[INDENT]if -ComputerName is left out the local server is used

-Credentials are required

-FieldName <moniker.field> required parameter representing the field, or fields, to retrieve values from. Does except pipeline objects.
[/INDENT]
Set-CQCField [-ComputerName <cqchost>] -Credentials <name>,<password> -FieldName <moniker.field> - Value <value(s)>
[INDENT]if -ComputerName is left out the local server is used

-Credentials are required

-FieldName <moniker.field> required parameter representing the field, or fields, to set values to. Does except pipeline objects.

-Value <value(s)> required parameter representing the value to set.
[/INDENT]
~~~ B01nk
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)