Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Install-dbatools {
- Import-Module dbatools -ErrorAction SilentlyContinue
- if((Get-Module | Where-Object {$_.Name -eq "dbatools"}) -eq $null) {
- Write-Output "dbatools module installing"
- Install-Module dbatools -force
- }
- else {
- Write-Output "dbatools module already installed"
- }
- }
Add Comment
Please, Sign In to add comment