Guest User

Untitled

a guest
Jan 21st, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. function Install-dbatools {
  2. Import-Module dbatools -ErrorAction SilentlyContinue
  3. if((Get-Module | Where-Object {$_.Name -eq "dbatools"}) -eq $null) {
  4. Write-Output "dbatools module installing"
  5. Install-Module dbatools -force
  6. }
  7. else {
  8. Write-Output "dbatools module already installed"
  9. }
  10. }
Add Comment
Please, Sign In to add comment