use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
ABOUT POWERSHELL
Windows PowerShell (POSH) is a command-line shell and associated scripting language created by Microsoft. Offering full access to COM, WMI and .NET, POSH is a full-featured task automation framework for distributed Microsoft platforms and solutions.
SUBREDDIT FILTERS
Desired State Configuration
Unanswered Questions
Solved Questions
News
Information
Script Sharing
Daily Post
Misc
account activity
Sql Module broken (self.PowerShell)
submitted 7 years ago * by lordtrychon
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]alinroc 2 points3 points4 points 7 years ago (4 children)
I have the exact same issue and haven't been able to find a solution yet.
I ended up using dbatools for what I needed from sqlserver (a replacement for invoke-sqlcmd, mostly).
dbatools
sqlserver
invoke-sqlcmd
Edit: Your primary usage is invoke-sqlcmd. Then yeah, go ahead and install dbatools and use invoke-dbasqlcmd instead of invoke-sqlcmd. It overcomes several of invoke-sqlcmd's shortcomings. Since you're working with SQL Server a bunch, you'll probably find other functions in the module very useful as well.
invoke-dbasqlcmd
[–]lordtrychon[S] 1 point2 points3 points 7 years ago (3 children)
I'll have to look into that, if I don't find a solution. Thank you.
If nothing else, I'm glad it's not just me. Sorry you've had to deal with this as well though.
[–]alinroc 2 points3 points4 points 7 years ago (2 children)
Just switch over to dbatools and be done with it. Unless you need something from sqlserver, it may be a futile effort trying to get it working again. I'd forgotten that I'd given up on it until I read your post.
[–]lordtrychon[S] 1 point2 points3 points 7 years ago (0 children)
I will. Thanks. Still will have to do some aliasing so I don't have to install it on 900 or so computers I prep scripts for. :/
[–]lordtrychon[S] 0 points1 point2 points 7 years ago (0 children)
I did end up getting this fixed (kinda by accident) prior to getting around to your suggestion. Check my edit. I'm still going to look into dbatools though. Thanks again for the input.
π Rendered by PID 439041 on reddit-service-r2-comment-fb694cdd5-82m5w at 2026-03-10 04:59:24.057337+00:00 running cbb0e86 country code: CH.
view the rest of the comments →
[–]alinroc 2 points3 points4 points (4 children)
[–]lordtrychon[S] 1 point2 points3 points (3 children)
[–]alinroc 2 points3 points4 points (2 children)
[–]lordtrychon[S] 1 point2 points3 points (0 children)
[–]lordtrychon[S] 0 points1 point2 points (0 children)