Warning: mysqli_result::fetch_assoc() expects exactly 0 parameters, 1 given in /var/www/html/powershellpower.com/page_parts/question.php on line 78

Warning: Use of undefined constant page_id - assumed 'page_id' (this will throw an Error in a future version of PHP) in /var/www/html/powershellpower.com/page_parts/question.php on line 90

Notice: Undefined index: page_id in /var/www/html/powershellpower.com/page_parts/question.php on line 90

Warning: Use of undefined constant detail - assumed 'detail' (this will throw an Error in a future version of PHP) in /var/www/html/powershellpower.com/page_parts/question.php on line 91

Warning: Use of undefined constant answer - assumed 'answer' (this will throw an Error in a future version of PHP) in /var/www/html/powershellpower.com/page_parts/question.php on line 92

Warning: Use of undefined constant link - assumed 'link' (this will throw an Error in a future version of PHP) in /var/www/html/powershellpower.com/page_parts/question.php on line 93

Warning: include(title_processing.php): failed to open stream: No such file or directory in /var/www/html/powershellpower.com/page_parts/question.php on line 114

Warning: include(): Failed opening 'title_processing.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/powershellpower.com/page_parts/question.php on line 114

Powershell how can i create a custom powershell object

How to create a custom powershell object

How can i create my own powershell objects, when i import a csv or active directory object the data is sorted into rows with header names, how can I use my own data and create a custom powershell object

Answer

This would be achieved using a new psobject. We can take strings of data from any other sources and inject them all into the new psobject giving them header names, further more we can append the psobject. We have a tutorial to help with this, click link below


Warning: mysqli_result::fetch_assoc() expects exactly 0 parameters, 1 given in /var/www/html/powershellpower.com/page_parts/question.php on line 174
Comments

Notice: Undefined variable: commentno in /var/www/html/powershellpower.com/page_parts/question.php on line 318

Notice: Undefined variable: page_id in /var/www/html/powershellpower.com/page_parts/comments.php on line 9

Fatal error: Uncaught Error: Call to a member function fetch_assoc() on boolean in /var/www/html/powershellpower.com/page_parts/comments.php:16 Stack trace: #0 /var/www/html/powershellpower.com/page_parts/question.php(327): include() #1 /var/www/html/powershellpower.com/questions/powershell_how_can_i_create_a_custom_powershell_object.php(2): include('/var/www/html/p...') #2 {main} thrown in /var/www/html/powershellpower.com/page_parts/comments.php on line 16