Skip to content

Commit

Permalink
Add note importing module before Start-Transcript (dataplat#4795)
Browse files Browse the repository at this point in the history
  • Loading branch information
pauby authored and potatoqualitee committed Dec 10, 2018
1 parent d6ad280 commit cf4628c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,17 @@ If you use non-default ports and SQL Browser is disabled, you can access servers

Note that PowerShell sees commas as arrays, so you must surround the host name with quotes.

#### Using Start-Transcript

Due to an [issue](https://github.com/sqlcollaborative/dbatools/issues/2722) in the way PowerShell 5.1 works you need to use `Import-Module dbatools` before you run `Start-Transcript`. If this isn't done then your transcript will stop when the module is imported:

```powershell
Import-Module dbatools
Start-Transcript
Get-DbaDatabase -SqlInstance 'ABC'
Stop-Transcript
```

## Support

dbatools aims to support as many configurations as possible, including
Expand Down

0 comments on commit cf4628c

Please sign in to comment.