Hello
I am writing a powershell script and can you please let me know how i have initialize object in it.
I want initialize object for "QAProfileInfo " and UserInfo these Quest one password management web API.
Thanks
Technology Tips and News
Hello
I am writing a powershell script and can you please let me know how i have initialize object in it.
I want initialize object for "QAProfileInfo " and UserInfo these Quest one password management web API.
Thanks
Thanks Mike
Can you please let me know how i have to create list and iterate that.
Please let me know if you have any idea about Quest One password Management API.
http://documents.software.dell.com/DOC203139
You need to post Quest issues in the Dell forums for that product.
ok JRV
But how I have to create list and iterate that list in Powershell.
Can you please give example
Thanks Mike
Can you please let me know how i have to create list and iterate that.
Please let me know if you have any idea about Quest One password Management API.
http://documents.software.dell.com/DOC203139
Sorry, I don't have any experience with any Quest products so I'm not even sure where to start. I'd follow jrv's suggestion and post over in the Quest forums. They should have some better help for you there.
Good luck.
Something like this?
Hi sreepp,
you can create a list of items and iterate it like this:
# Create List $list = @(1, 2, 3) # Add item to list $list += 4 # iterate over list foreach ($item in $list) { # Do whatever you want with it Write-Output $item * $item }
There are more ways to iterate over items and other methods to create lists, but this should get you started in the right direction.
Cheers,
Fred
thanks
but how i can create a list based type of class.
Hi,
that list is not type-specific. You can simply add whatever you want into it (and mix it too).
If you want a list for a specific type only you can cast to an array for a specific task. Here an Example for IP Addresses:
[System.Net.IPAddress[]]$IPs = @()
If you need something more product specific, you really should ask in the forums of the developer (Dell apparently in your case) for more support.
Cheers,
Fred
Hi Mike/JRV
I am not asking about quest, how we can make a List object and iterate them in Powershell.
Thanks
What is it that you are calling a list object.
Here is an arraylinst:
$alist=[collections.arraylist](get-Process)
Again - since you are trying to follow insstructions for using Quest you really need to post inquest forums.