Collection in objecttype and in objectview
Hi,
I have a type a_type:
create type a_type as object ( code varchar2(20));
And a collection of that type:
create type a_list as table of a_type;
and there are two tables:
create table A (id number, code a_type);
create table B (id number, a_id number, code a_type);
Then I create a objecttype b_type:
create type b_type as object (a_id number,
a_code a_type,
b_codes a_list);
And finally an objectview:
create view b_view OF b_type with object OID (a_id)
AS
SELECT a.id as a_id,
a.code as a_code,
b.??? as b_codes -- a list of all codes (table B joined with table A))
FROM A a, B b
WHERE a.id = b.a_id
AND ????
Is this possible wihout PL/SQL ?
Thanks,
Kristoffel DE GEEST
Not sure if this is exactly what you want, but it seems to work....
SQL> INSERT INTO a VALUES (1, a_type('APC'))
2 /
1 row created.
SQL> INSERT INTO a VALUES (2, a_type('XYZ'))
2 /
1 row created.
SQL> INSERT INTO b VALUES (1, 1, a_type('123'))
2 /
1 row created.
SQL> INSERT INTO b VALUES (2, 1, a_type('456'))
2 /
1 row created.
SQL> INSERT INTO b VALUES (3, 2, a_type('789'))
2 /
1 row created.
SQL> CREATE VIEW b_view OF b_type WITH OBJECT IDENTIFIER (a_id)
2 AS
3 SELECT a.id AS a_id
4 , a.code AS a_code
5 , a_list(b.code) AS b_codes
6 FROM A a, B b
7 WHERE a.id = b.a_id
8 /
View created.
SQL> select * from b_view;
A_ID
A_CODE(CODE)
B_CODES(CODE)
1
A_TYPE('APC')
A_LIST(A_TYPE('123'))
1
A_TYPE('APC')
A_LIST(A_TYPE('456'))
2
A_TYPE('XYZ')
A_LIST(A_TYPE('789'))
SQL> "It's a far cry from small boys in the park, jumpers for goalposts. Isn't it? Mmmmm. Marvellous!" -- Ron Manager
Cheers, APC
Similar Messages
-
Recently, when I create a new album (untitled), it immediately fills it immediately fills with picture either from the album above it or, if I have a Faces collection open, with the pictures from that collection. Why and how do I fix it?
When a new album is created it will fill with whatever is in the right hand window, If you're in the Events or Photos mode it will contain all photos in the library. Yes, strange behavior.
OT -
I am interested in purchasing Adobe's Creative Suite 6 Master Collection for Mac and Windows (Single User Educational License) FOR STUDENTS & EDUCATORS ONLY. I am purchasing this program for my son who attends George Washington High School: The College Academy in New York, New York. He is a sophomore and is interested in web design. I would like to know if he is eligible to use/activate the Creative Suite 6 Master Collection for Mac and Windows (Single User Educational License) FOR STUDENTS & EDUCATORS ONLY prior to my purchase.
Peru Bob makes a good point. I just assumed the OP understood what the System requirements | Adobe Creative Suite 6 were.
Nancy O. -
Collection : Popular DVD and Video Tools (For Mac)
Collection : Popular DVD and Video Tools (For Mac)
iPod softwares http://www.oursdownload.com/Mac-DVD-Video-iPod.html
iPhone softwares http://www.oursdownload.com/Mac-DVD-Video-iPhone.html
PSP softwares http://www.oursdownload.com/Mac-DVD-Video-PSP.html
Apple TV softwares http://www.oursdownload.com/Mac-DVD-Video-Apple-tv.html
DVD to Mobile(3GP) softwares http://www.oursdownload.com/Mac-DVD-3GP.html
DVD Video to MP4 softwares http://www.oursdownload.com/Mac-DVD-Video-MP4.html
DVD Converter http://www.oursdownload.com/Mac-DVD-Converter.html
Video Converter http://www.oursdownload.com/Mac-Video-Converter.html
DVD Copy softwares http://www.oursdownload.com/Mac-DVD-Copy.html
DVD ripper softwares http://www.oursdownload.com/Mac-DVD-Ripper.html
DVD to Blackberry http://www.oursdownload.com/Mac-DVD-Blackberry.html
DVD Creator http://www.oursdownload.com/Mac-DVD-Creator.html
DVD Studio Pack http://www.oursdownload.com/Mac-DVD-Studio.htmlI addition to running less concurrent processes or installing more RAM as Kappy mentioned.
I also see that you have less than 10% of free space left on your HDD.
Disk Information: ?
ST3500418AS disk0 : (500.11 GB)
S.M.A.R.T. Status: Verified
EFI (disk0s1) <not mounted>: 209.7 MB
Macintosh HD (disk0s2) / [Startup]: 499.25 GB (40.6 GB free)
Recovery HD (disk0s3) <not mounted>: 650 MB
Which is fairly low and forcing it to work on the slowest part of the HDDs platter. -
If I want to collect my email and calander by Acti...
If I want to collect my email and calander by Activesync over gprs which Nokia phone do I get?
I have to connect to our in house Exchange sever. I can do this on the rubbish SPV phone that they gave me but I mant to use a Nokia.
I alreasy have two Series 60 phone a SX1 and a Nokia 6600 but Dataviz is not going to support these in their next release of Roadsync.
Any advice apreciated. Does the E61 come out the box ready to grps to a Exchange sever?
Regards
ColinYou have to download the Mail for Exchange software from here:
http://www.businesssoftware.nokia.com/activesync_downloads.php
I expect it works on all the Series 60 release 3 phones. It works nicely on my N80. -
Is Adobe Photoshop Elements Version 9 compatible with Corel KPT Collections 5,6 and 7?
To Whom It May Concern.
Is Adobe Photoshop Elements Version 9 compatible with Corel KPT Collections 5,6 and 7?
I am using a PC computer..
Thank you in advanced..
Regards,
hypergraphicalI don't know about kpt 6 or 7, but kpt 5 and the newest kpt collection seem to work in pse 9 on a windows 8.1 x64 install.
-
Export of Objecttypes and Import of Objecttypes
Hallo,
I have tried to export 2 of my Objecttypes and their Objekttables
(worked fine without errors) and then I wanted to import these
and I get this error message:
IMP-00017: following statement failed with ORACLE error 2304:
"CREATE TYPE "Test_T" TIMESTAMP ?-08-11:16:47:02' OID 'FE11"
"78629D4D68ACE030A8C0C10C0F27' AS OBJECT("
"id NUMBER(8),"
"schl NUMBER(4),"
"name VARCHAR2(45)"
IMP-00003: ORACLE error 2304 encountered
ORA-02304: invalid object identifier literal
IMP-00063: Warning: Skipping table ...
I have looked around in the net and I can not import in a database where this oid
already exits. Is that right? Are there any possibilties I can get this data in another way
in the database. Or can I only import in a new instance where these OIDs do not exist?
If I import in a new instance there shouldn't be problems? In one of the tables I have a ref column.
thanks in advance TigApologies for picking up this late thread, however in one of my imports I ran into the same issue.
It seems that when a Database has a object type, it can belong to only one schema and when you import it into another schema, Oracle craps out saying that the OID is already there.
I wonder why this issue is not with tables or such?
Any way, what I have seen is that even if Oracle bails out with error message similar to the one below, the import completes successfully, i.e,. all tables/indexes/constraints are built.
Is this the correct behaviour?
Dr. Tom
http://asktom.oracle.com/pls/ask/f?p=4950:8:8181797251248283055::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:1323002416801 -
How to auto collect form responses and get an email notification?
Is there a way to auto collect form responses AND get an email notification? Currently I have my form set up to auto save and collect the responses and its working well but I cannot figure out how to add an email notification as well so we know when to check for new submissions.
[discussion moved to FormsCentral forum]
-
I have a licence for Master collection 6 windows and I switched to mac. Can I switch the serial somehow so I would be able to use it in my mac?
AppleWorks is not legally available for download. You would need to buy a copy. HardcoreMac.com still lists AppleWorks 6 on their website. You could also try eBay but you would need to make sure it is AppleWorks 6.2 or newer to install on OS X.
-
Collection method COUNT and performance
Hi,
I use associative arrays in my application, this kind:
TYPE ADRESSETT IS TABLE OF mig.ADRESSE%ROWTYPE INDEX BY BINARY_INTEGER;
A good many times I need the count of elements in this arrays.
Of course I can use the COUNT method for this purpose.
However could it be faster to maintain a simple counter which is incremented and decremented on inserting/deleting elements
from the array?
How expensive is the COUNT method? Does the method really calculate the count every time new?
Thomasuser447000 wrote:
Hi,
I use associative arrays in my application, this kind:
TYPE ADRESSETT IS TABLE OF mig.ADRESSE%ROWTYPE INDEX BY BINARY_INTEGER;
A good many times I need the count of elements in this arrays.
Of course I can use the COUNT method for this purpose.
However could it be faster to maintain a simple counter which is incremented and decremented on inserting/deleting elements
from the array?
How expensive is the COUNT method? Does the method really calculate the count every time new?
ThomasIf you know anthing about arrays/collections/linked lists etc. (all the sort of stuff taught in the basics of programming in the first year of university), then you'll know that retrieving the count of the number of 'elements' in those things is part of what they are about. The count method doesn't have to 'calculate' the count every time, as it will be held in the collections internal structure and internally maintained every time something is added/deleted. It's not going to be an expensive operation to perform as it's just going to return the value of an internal value that is already known.
Of course, it's far easier to avoid collections altogether as they use expensive PGA memory, and instead process your data using SQL directly against the database tables. -
Just added a third iPod touch to the family collection of devices and it won't allow me to ad apps from iTunes to the device. Can add songs though?
iTunes 11 for Mac: Set up syncing for iPod, iPhone, or iPad
iTunes 11 for Windows: Syncing overview
iTunes 11 for Windows: Set up syncing for iPod, iPhone, or iPad
If you set up the iPod originally via wifi then this computer is not your syncing computer and thus you can't sync apps from that computer/library.
To make this your syncing computer:
Syncing to a "New" Computer or replacing a "crashed" Hard Drive: Apple Support Communities -
Migrate Collections between Win and Mac versions of Bridge
Would like to know if it is possible to migrate Bridge collections between Windows and Mac machines.
On the two respective main machines one or two of the the root folder names differ, but the subfolder structures are the same.
In addition, both machines can access other resources from a common USB drive, so that any collections of images from that drive will have identical paths.
Would like to avoid repeating the collection-building process if it is possible to migrate the data from one machine to another.
Please let me know what is possible.You could just copy the photos from one machine
to another and then let the cache build. You have to make sure you export the XMP files along with the photo or you will lose edits and some info.
If you can move them with Bridge this is the best bet to keep all the pieces together. If you are using just central cache you will have to explore the option of "export xmp files"in one of the dropdown boxes. Not at a computer with Bridge on it.. -
What is the Collection that returns and removes the Object simultaneously
Hi Java Experts,
I believe I'm looking for a Collection that will allow me to (a.) return an object and (b.) remove the object from the collection simultaneously (c) without having to specify the index location of the object. Very similar to what you can do when you enumerate through a Properties Object.
Here is a description of why I think this is the solution that I want. - Perhaps some Design Pattern Experts can help.
I am making an application that is supposed to loop continuously through a collection while adding more information to the collection (example: in a while(collection.size()>0){ take some action })
The action taken inside the while loop would add more items to the collection. I'm hoping that fact would be picked up by collection.size()>0 and cause the iteration to continue.
I am doing this solution within one thread and class. But I'm also going to let this thread feed another Class (A controller thread) with different items which are added to It's collection for it's own loop. That solution will have to handle multiple threads feeding information to it's solution.
Here is example code below of how i'm proposing this would work in a single threaded class.
thanks for all the help
* DESCRIPTION: I want to loop through a collection infinitely by
* making the thread continually add to the collection.
import java.util.*;
public class TESTSOLUTION implements Runnable{
public static void main(String[] arg){
TESTSOLUTION tv = new TESTSOLUTION();
Thread t = new Thread(tv);
t.start();
System.out.println("Finished Main");
public TESTSOLUTION(){
ACollectionType = new TreeSet();
ACollectionType.add("BAT");
ACollectionType.add("BALL");
ACollectionType.add("MIT");
public void run(){
while(ACollectionType.size()>0){
//THIS IS WHERE I WANT TO BE ABLE TO REMOVE AN ITEM FROM THIS COLLECTION
//WITHOUT SPECIFYING THE index
//I just want to call a method and return the object and simultaneously
//remove to the object
outputString((String)ACollectionType.first());
counter++;
private void outputString(String s ){
try{
Thread.sleep(400);
}catch(InterruptedException e){
System.out.println("interrupted");
System.out.println("s = " + s );
//I AM TRYING to add to the object and have the result picked up
// by (perhaps) the ACollectionType.size()>0 method and run the while
// loop infinitly
ACollectionType.add("TOY#"+counter);
private TreeSet ACollectionType = null;
private int counter = 0 ;
}woops here is what i mean --- i got this code to work -- you can run it for yourself .
* DESCRIPTION: I want to loop through a collection infinitely by
* making the thread continually add to the collection.
import java.util.*;
public class TESTSOLUTION implements Runnable{
public static void main(String[] arg){
TESTSOLUTION tv = new TESTSOLUTION();
Thread t = new Thread(tv);
t.start();
System.out.println("Finished Main");
public TESTSOLUTION(){
ACollectionType = new TreeSet();
ACollectionType.add("BAT");
ACollectionType.add("BALL");
ACollectionType.add("MIT");
public void run(){
while(ACollectionType.size()>0){
//THIS IS WHERE I WANT TO BE ABLE TO REMOVE AN ITEM FROM THIS COLLECTION
//WITHOUT SPECIFYING THE index
//I just want to call a method and return the object and simultaneously
//remove to the object
Object ss = ACollectionType.first();
outputString((String)ss);
ACollectionType.remove(ss);
counter++;
private void outputString(String s ){
try{
Thread.sleep(400);
}catch(InterruptedException e){
System.out.println("interrupted");
System.out.println("s = " + s );
//I AM TRYING to add to the object and have the result picked up
// by (perhaps) the ACollectionType.size()>0 method and run the while
// loop infinitly
ACollectionType.add("TOY#"+counter);
private TreeSet ACollectionType = null;
private int counter = 0 ;
} -
How to collect a tranformation and routines in it in a transport request
how to collect a tranformation and routines in it in a transport request.
also if a tranfer rule and its routines to be collected in a transport request.goto RSA1-> Transport connections
select object types in the left pane..drop down the transformation type and select the transformation that is to be captured.
move it to the right pane. Right click on the transformation and select 'do not check any below' if you do not wanna transfer the source and the target info providers. Drill down through the transformation and select the routines that needs capturing.
select 'package' and give the appropriate package name and save it. It will ask for the request number and give the requst number.
The objects are collected.
To check go to se01 and check under the requests if the objects are captured.
-Srivatsan.S -
RDS 2012 - Virtual desktop collection with powershell and custom answerfile fails on VDI deployment
Hi Guys,
I try to deploy a new virtual desktop collection with Win8 VDI's (pooled/managed) based on a custom answer file. Everything needs to automated so working with the server manager is not an option, that's why the answer file is needed.
The lab environment is based on Windows Server 2012 and Win8 Enterprise only. So functional level etc. is off course Windows Server 2012.
I Use the following command:
New-RDVirtualDesktopCollection `
-CollectionName "Pooled Managed Win8" `
-Description "This collection contains Pooled and Managed Win 8 VDI machines." `
-OU "VDI" `
-ConnectionBroker "RDSCB01.lab.local" `
-PooledManaged `
-CustomSysprepUnattendFilePath "\\hyper02\_Unattend\OOBE-only.xml" `
-VirtualDesktopAllocation @{"hyper02.lab.local"=3} `
-VirtualDesktopNamePrefix "Pooled-Win8-" `
-UserGroups "lab.local\domain users" `
-MaxUserProfileDiskSizeGB 1 `
-VirtualDesktopTemplateHostServer "hyper02.lab.local" `
-VirtualDesktopTemplateName “_WIN8-Template” `
-UserProfileDiskPath "\\hyper02.lab.local\_UserProfileDisks" `
-StorageType LocalStorage `
-LocalStoragePath "E:\_VDI" `
-Force `
-Debug
$error[0]|format-list -force
I tried multiple answer files, but even with this simple one it fails:
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="oobeSystem">
<component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<InputLocale>en-US</InputLocale>
<SystemLocale>en-US</SystemLocale>
<UILanguage>en-US</UILanguage>
<UILanguageFallback>en-US</UILanguageFallback>
<UserLocale>nl-NL</UserLocale>
</component>
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<UserAccounts>
<AdministratorPassword>
<Value>UABhAHMAcwB3AG8AcgBkACEAQQBkAG0AaQBuAGkAcwB0AHIAYQB0AG8AcgBQAGEAcwBzAHcAbwByAGQA</Value>
<PlainText>false</PlainText>
</AdministratorPassword>
<LocalAccounts>
<LocalAccount wcm:action="add">
<Password>
<Value>UABhAHMAcwB3AG8AcgBkACEAUABhAHMAcwB3AG8AcgBkAA==</Value>
<PlainText>false</PlainText>
</Password>
<Description>Admin</Description>
<DisplayName>Admin</DisplayName>
<Group>Administrators</Group>
<Name>Admin</Name>
</LocalAccount>
</LocalAccounts>
</UserAccounts>
<OOBE>
<HideEULAPage>true</HideEULAPage>
<HideLocalAccountScreen>true</HideLocalAccountScreen>
<HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
<HideOnlineAccountScreens>true</HideOnlineAccountScreens>
<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
<NetworkLocation>Work</NetworkLocation>
<ProtectYourPC>3</ProtectYourPC>
<SkipMachineOOBE>true</SkipMachineOOBE>
<SkipUserOOBE>true</SkipUserOOBE>
</OOBE>
</component>
</settings>
<cpi:offlineImage cpi:source="wim:d:/=%20software/iso's/lic/en_windows_8_enterprise_x64_dvd_917522/sources/install.wim#Windows 8 Enterprise" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>
Everything goes fine, until is comes to the deployment of the VDI machines and the answer file is called. It fails with the following error:
PS N:\> \\dc01\isos\New-VirtualDesktopCollection.ps1
Unable to retrieve the details of the virtual desktop collection.
+ CategoryInfo : WriteError: (:) [Start-RDVMRollout], RDManagementException
+ FullyQualifiedErrorId : StartRDVirtualMachineRollout,Microsoft.RemoteDesktopServices.Management.Cmdlets.StartRDVirtualMachineRo
lloutCommand
+ PSComputerName : localhost
CollectionName Type Size PercentInUse
Pooled Managed... PooledManaged 0 0
writeErrorStream : True
OriginInfo : localhost
Exception : System.Management.Automation.RemoteException: Unable to retrieve the details of the virtual desktop
collection.
TargetObject :
CategoryInfo : WriteError: (:) [Start-RDVMRollout], RDManagementException
FullyQualifiedErrorId : StartRDVirtualMachineRollout,Microsoft.RemoteDesktopServices.Management.Cmdlets.StartRDVirtualMachineRolloutCo
mmand
ErrorDetails :
InvocationInfo :
ScriptStackTrace :
PipelineIterationInfo : {}
PSMessageDetails :
Without the answer file parameter is runs perfectly, BUT the VDI machines get the OOBE.... That's not what we want off course....
This link (http://support.microsoft.com/kb/2747656?wa=wsignin1.0) and other sources tell me that when i set the regkeys i can find a log in c:\windows\logs, but there is
nothing. I looked on the management server and the connection broker.
The only thing i could find in the event viewer was this:
The XML input specified for the VM Provisioning job is not in a valid format. Error: 0xC00CEE03
Input XML:
<?xml version="1.0"?>
<rdvp:RDVProvisioning xmlns:rdvp="http://www.microsoft.com/rdv/2010/05/">
<rdvp:ProvisionPoolRequest><rdvp:Job>
<rdvp:Action>Create</rdvp:Action>
<rdvp:OnError>Stop</rdvp:OnError></rdvp:Job>
<rdvp:Pool><rdvp:Name>Pooled_Managed_W</rdvp:Name>
<rdvp:Type></rdvp:Type>
<rdvp:VhdType>DiffDisk</rdvp:VhdType>
<rdvp:SaveDelay></rdvp:SaveDelay>
<rdvp:Version></rdvp:Version>
<rdvp:MARK_HA>No</rdvp:MARK_HA></rdvp:Pool>
<rdvp:Vm>
<rdvp:BaseVmLocation>\\RDSCB01\RDVirtualDesktopTemplate\Pooled_Managed_W\IMGS\__3</rdvp:BaseVmLocation>
<rdvp:LocalVmCreationPath>E:\_VDI</rdvp:LocalVmCreationPath>
<rdvp:LocalGoldCachePath></rdvp:LocalGoldCachePath>
<rdvp:SMBShare></rdvp:SMBShare>
<rdvp:EnableVmStreaming>0</rdvp:EnableVmStreaming>
<rdvp:RunVMsFromSMB>0</rdvp:RunVMsFromSMB>
<rdvp:NamingPrefix>Pooled-Win8</rdvp:NamingPrefix>
<rdvp:NamingStartIndex>1</rdvp:NamingStartIndex>
<rdvp:Domain>lab.local</rdvp:Domain>
<rdvp:OU>OU=VDI,OU=Computers,OU=Kamer 2101,DC=lab,DC=local</rdvp:OU>
<rdvp:ProductKey></rdvp:ProductKey>
<rdvp:UnattendXml>
<![CDATA[<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="oobeSystem">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<OOBE>
<HideEULAPage>true</HideEULAPage>
<HideLocalAccountScreen>true</HideLocalAccountScreen>
<HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
<HideOnlineAccountScreens>true</HideOnlineAccountScreens>
<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
<NetworkLocation>Work</NetworkLocation>
<ProtectYourPC>3</ProtectYourPC>
<SkipMachineOOBE>true</SkipMachineOOBE>
<SkipUserOOBE>true</SkipUserOOBE>
</OOBE>
</component>
</settings>
</unattend>]]>
</rdvp:UnattendXml>
</rdvp:Vm>
<rdvp:HyperVHosts>
<rdvp:HyperVHost>
<rdvp:Name>hyper02.lab.local</rdvp:Name>
<rdvp:NumberVms>3</rdvp:NumberVms>
</rdvp:HyperVHost>
</rdvp:HyperVHosts>
</rdvp:ProvisionPoolRequest>
</rdvp:RDVProvisioning>----------------------------------------------------------------------Log Name: Microsoft-Windows-TerminalServices-SessionBroker/Admin
Source: TerminalServices-SessionBroker
EventID: 1549
Level: Error
User: NETWORK SERVICE
Task Category: MS VM Provisioning Plugin
Computer: RDSCB01.lab.local
I hope we can get this working, thanks in advance everybody!
Regards,
BartHi Bartsp34ks,
I'm trying to make a powershell script like yours.
But at some point I receive this error:
System.Management.Automation.RemoteException: VM ASD-1: The data area passed to a system call is too small. (Exception from HRESULT: 0x8007007A)
My Powershell script is:
$CollectionName = Read-Host 'What Name should the Collection have?'
$Description = Read-Host 'Type a description of the Collection'
$OU = Read-Host 'In which OU should I put the Collection?'
$ConnectionBroker = Read-Host 'What is the Connection Broker Name? (use FQDN)'
$Sysprep = Read-Host 'Type the Unattend file location'
$DesktopAllocation = Read-Host 'On which RD Virtualization Host server should I create the Collection?'
$DesktopAllocationNR = Read-Host 'How many Virtual Desktop would you like?'
$NamePrefix = Read-Host 'What is the Prefix Name?'
$NameSuffix = Read-Host 'What is the Suffix Name?'
$UserGroup = Read-Host 'Which User Group can use the Collection?'
$UserProfile = Read-Host 'How big can the ProfileDisk be?'
$TemplateServer = Read-Host 'What is the RD Host that has the Virtual Desktop Template? (use FQDN)'
$TemplateName = Read-Host 'What is the Virtual Desktop Template Name?'
$UserProfilePath = Read-Host 'What should be the User Profile Path?'
$StorageType = Read-Host 'How should be stored?'
$StoragePath = Read-Host 'Type the Path'
New-RDVirtualDesktopCollection `
-CollectionName $CollectionName `
-Description $Description `
-OU $OU `
-ConnectionBroker $ConnectionBroker `
-PooledManaged `
-CustomSysprepUnattendFilePath $Sysprep `
-VirtualDesktopAllocation @{$DesktopAllocation=$DesktopAllocationNR} `
-VirtualDesktopNamePrefix $NamePrefix `
-UserGroups $UserGroup `
-MaxUserProfileDiskSizeGB $UserProfile `
-VirtualDesktopTemplateHostServer $TemplateServer `
-VirtualDesktopTemplateName $TemplateName `
-UserProfileDiskPath $UserProfilePath `
-StorageType LocalStorage `
-LocalStoragePath $StoragePath `
-Force `
-Debug
$error[0]|format-list -force
Thanks for help
Maybe you are looking for
-
Checkbox and date/text feild
I need to create a form with a checkbox and a date/text feild in the same row. Is this possible? An example is below: Form [ check box ] name of document [date/text feild] [ ] document name [1/30/2014]
-
My ipod classsic shows 300 plus songs when i click on the icon but the actual device says 0 songs
please help
-
Field symbols and its practical usages
I read about the field symbol but cannot think about the practical examples of how, where and when should I use it? any one have suggestions and recommendations? thanks!
-
Giving all access to UIU_COMP in CRM 7.0
If I have a one to one relationship with my business roles and pfcg roles is there any reason not to provide all employees with * for UIU_COMP object? I been adjusting this object everytime our Business Analyst make a change to business roles am I'm
-
Has anyone experienced Photoshop causing noisy images?
Everytime I start Photoshop CS6 dark images become clouded with white dots much like snow. The noise covers the images, but shows up best on dark areas and images. This has been happening over the last week, but I just realized in the last 24 hours