Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 8583

Import data from Powershell to SQL Server

$
0
0

Hi everyone, 

Not sure of this is the easist way. But id like to get a list of all the Servers in AD into a table in SQL Server. I can get the list of servers from AD in powershell. But i cant find a way to take data from powershell and put it directly into SQL. Lots of articles and blogs on importing CSV data or a txt file. but none that i can find on using the pipeline. 

Any ideas on how to do it? Or if there's a better way to do it! 

 

Thanks 


Viewing all articles
Browse latest Browse all 8583

Trending Articles