Zlodey Posted March 26, 2015 Report post Posted March 26, 2015 I've tried debug your script in winpe. After the first operation it fails $TSEnv = New-Object -COMObject Microsoft.SMS.TSEnvironment New-Object: type not found [Microsoft.SMS.TSEnvironment] make sure that assembly containing this type is loaded Quote Share this post Link to post Share on other sites More sharing options...
Peter van der Woude Posted March 26, 2015 Report post Posted March 26, 2015 Yes, that will only work when a task sequence environment exists, because that specific object can only be created in a task sequence. Quote Share this post Link to post Share on other sites More sharing options...
Zlodey Posted April 2, 2015 Report post Posted April 2, 2015 I, see, but I have this error message in Task Sequence. What's wrong? Quote Share this post Link to post Share on other sites More sharing options...
Peter van der Woude Posted April 2, 2015 Report post Posted April 2, 2015 I find that very hard to believe as it's an object that always exists in a task sequence. Can you provide some more details, like log files and or screenshot(s)? Quote Share this post Link to post Share on other sites More sharing options...
Zlodey Posted April 7, 2015 Report post Posted April 7, 2015 Hi, Peter! I've debuged your scripts and found out that they work only if machine exists no more than in one collction. If I add machine in more than one collection the variable $CollectionIds become null. Whats wrong? Quote Share this post Link to post Share on other sites More sharing options...
Peter van der Woude Posted April 8, 2015 Report post Posted April 8, 2015 That's very strange. I just ran a test in my lab without any problems. Please run through the script, line by line and output the different variables to see the values. Quote Share this post Link to post Share on other sites More sharing options...
Zlodey Posted April 8, 2015 Report post Posted April 8, 2015 I don't know what's the problem. When I start script outside ts it returns me errors about TS variable and app ids. But, if I start the script inside TS it returns me right $ContainerNodeIds, but CollectionIDs is still null. I save script with all params, but the same issue Quote Share this post Link to post Share on other sites More sharing options...
Peter van der Woude Posted April 9, 2015 Report post Posted April 9, 2015 Are you providing the right computername during the task sequence? Quote Share this post Link to post Share on other sites More sharing options...