-
-
Notifications
You must be signed in to change notification settings - Fork 270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: missing Private folder #35
Comments
invoke-sqlcmd2 bugWhen run from cmd (such as a scheduled task) the invoke-sqlcmd2 module is missing a Private folder. It does not do this when run from inside powershell. Cannot find path 'C:\Program Files\PowerShell\Modules\Invoke-SqlCmd2\1.6.4\Private' because it does not exist. TestingTo demonstrate I have created some test scripts. Since cmd.exe does not catch errors (does it) To recreate the problem run cmd.exe then run the script
ConfigurationIf you want email output and database testing, edit Config.ps1 and update all parameters for your network. WorkaroundI manually created the Private folder as a workaround but this should be done by |
When running from cmd.exe (like a scheduled task) I get an error.
Cannot find path 'C:\Program Files\PowerShell\Modules\Invoke-SqlCmd2\1.6.4\Private' because it does not exist.
You can't easily see the error as the powershell sub process throws it away. To demonstrate I have created some scripts. I will attach to this issue.
The text was updated successfully, but these errors were encountered: