functions/Update-dbatools.ps1

1
2
3
4
5
6
7
8
9
10
11
12
Function Update-dbatools
{
<#
.SYNOPSIS
Exported function. Updates dbatools. Deletes current copy and replaces it with freshest copy.

.EXAMPLE
Update-dbatools
#>
    
    
    Invoke-Expression (Invoke-WebRequest -UseBasicParsing https://raw.githubusercontent.com/sqlcollaborative/dbatools/master/install.ps1).Content
}