Hello,
I have a question regarding moving data from format-list/format-table to database to the database
I want to pull out data about ODBC created on the server and load them to the database - so far I have wrote code which gives me data about ODBCs:
Get-ChildItem -path "HKLM:\SOFTWARE\Wow6432Node\ODBC\ODBC.INI" | ForEach-Object {Get-ItemProperty $_.pspath} | Select-Object PSChildName,Driver,Server,LastUser
The question is: how to load data to different columns when data is like at the bootom of the post(info about DSNs are seperated only by Blank space)?Add variables to which I add data? Any other way? Any ideas will be appreciated :)
Results:
PSChildName : test-server
Driver : C:\Windows\system32\SQLSRV32.dll
Description : Some desc
Server : TEST
Database : mobile
LastUser : sa
BLANK SPACE
PSChildName : test-server
Driver : C:\Windows\system32\SQLSRV32.dll
Description : Some desc
Server : TEST
Database : mobile
LastUser : sa
BLANK SPACE
PSChildName : test-server
Driver : C:\Windows\system32\SQLSRV32.dll
Description : Some desc
Server : TEST
Database : mobile
LastUser : sa