r/PowerShell • u/LordFaquaad • Aug 22 '18
Powershell for a Noob
I just started learning about powershell. Ironically, i learned Linux command line first. From what i've read, linux command line and powershell have similar syntax. Are there any good resources for learning powershell. I mainly want to use powershell to do certain office functions. Is that even possible?
8
Upvotes
View all comments
Show parent comment
7
u/[deleted] Aug 22 '18
Any Office product automation outside VBA quickly becomes a quagmire Microsoft recommends against, and has little to do with PowerShell.
PowerShell uses .NET and just like in C# you'd have to learn about COM objects and how to properly release resources.
If it's simple data reads and writes then ADO.NET will do the trick using OLEDB and the JET provider in 32 bit or ACE in 64 bit, but those are limited to a maximum of 255 columns, a limit I've frequently encountered during my reverse-engineering hacks.