About 2,760 results
Open links in new tab
  1. installation - How can I install the SQL Server PowerShell module …

    Apr 14, 2020 · 9 I have some SQL Server machines that cannot connect to any external sites. I have been using PowerShell more and more when managing databases, so I definitely need …

  2. powershell - Why does `Get-ChildItem` require a call to `invoke …

    Mar 24, 2023 · PowerShell has a cool module for interacting with SQL Server. One of the features is the ability to navigate database objects like file system objects. For example: get-childitem …

  3. sql server 2012 - Troubleshooting Powershell errors from SQL …

    Remove the import-module from the job, SQL Server already starts up with SQLPS loaded, in 2012 it loads the 2.0 version of powershell so your scripts might need more adjustments.

  4. sql server - SQL Agent Job failing after uninstall of SQLPS and …

    May 23, 2024 · Uninstalled the old PS module and replaced it with the new SQLServer but now third step of system job syspolicy_purge_history, which is a Powershell step, fails with the …

  5. sql server - SQL Agent PowerShell Syntax Error - Database ...

    Jun 14, 2017 · I am attempting to setup a PowerShell script within a SQL Agent job (SQL Server 2016). I'm using a third party module, DBATOOLS.psd1 which appears to be where I'm getting …

  6. sql server - Is it normal for Install-Module SqlServer to clobber ...

    May 27, 2017 · I have a windows 10 box with SSMS 17. I had SSMS 2016 installed, but it is now uninstalled. When I go to install the SqlServer module I get this warning: …

  7. Powershell script SQL Server AvailabilityGroups - Database ...

    Apr 12, 2023 · Start asking to get answers Find the answer to your question by asking. Ask question sql-server powershell dbatools

  8. Execution-Policy Error running Powershell Script in SQL Server Agent

    Dec 31, 2014 · It might require restart of SQL Agent service, don't know. HKLM\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.SqlServer.Management.PowerShell.sqlps120 …

  9. sql server - Invoke-PolicyEvaluation with the new SqlServer …

    May 9, 2024 · It was working alright previously with the old PS module but the new replacement module requires TrustServerCertificate=True parameter which is missing from the syntax of …

  10. How to have SQL Server's SQL Agent pick up a new Powershell …

    Dec 20, 2018 · 0 I have a Powershell module that I've written and uploaded to my SQL Server at C:\Program Files\WindowsPowerShell\Modules.I have a SQL Agent job with a powershell step …