bzzzt!

bzzzt!

What's Going On?

  • Home
  • About

PowerShell Snippet #2 Check and Install a Module

By Richie Lee

2017-12-02

Hello!

Today’s PowerShell Snippet will check if a module is installed, and if it isn’t will install it. Finally it will import the module.

Tags

  • aboutme10
  • analysisservices37
  • azure11
  • azure-devops12
  • build23
  • builds20
  • cumulativeupdates14
  • cumulativeupdates210
  • dacfx9
  • database10
  • databasedevelopment10
  • deploy18
  • independentlearning19
  • microsoft31
  • msbuild14
  • opinion10
  • powershell76
  • sql48
  • sqlpackage12
  • sqlserver101
  • sqlserver201220
  • sqlserver201432
  • ssas29
  • ssdt21
  • technology19
  • tfs201213
  • tsql56
  • unknownsunknowns12
  • unknownunknowns35
  • visualstudio201213

Recent Musings

    Managing ACLs on Gen 2 Data Lake
    Posts
    Using Az in an Azure DevOps Powershell Task
    Azure DevOps and Running The Azure PowerShell Task on a Self-Hosted Build Agent
    Install Terraform 0.14 beta2 on AzDo Ubuntu Hosted Agent
    November 2020 Musings
    Authenticating with Azure Datbricks API as a Service Principal
    Update Azure DevOps YAML Build Name With Pipeline Variables

Archive

  • 2021-031
  • 2021-021
  • 2021-011
  • 2020-121
  • 2020-112
  • 2020-105
  • 2020-092
  • 2020-071
  • 2020-061
  • 2020-051
  • 2020-046
  • 2020-031
  • 2020-014
  • 2019-123
  • 2019-112
  • 2019-102
  • 2019-091
  • 2019-084
  • 2019-074
  • 2019-063
  • 2019-051
  • 2019-043
  • 2019-036
  • 2019-025
  • 2019-012
  • 2018-121
  • 2018-112
  • 2018-101
  • 2018-091
  • 2018-082
  • 2018-073
  • 2018-064
  • 2018-056
  • 2018-043
  • 2018-033
  • 2018-023
  • 2018-015
  • 2017-1212
  • 2017-116
  • 2017-106
  • 2017-0911
  • 2017-082
  • 2017-074
  • 2017-062
  • 2017-054
  • 2017-045
  • 2017-037
  • 2017-023
  • 2017-012
  • 2016-123
  • 2016-116
  • 2016-1010
  • 2016-095
  • 2016-087
  • 2016-0710
  • 2016-069
  • 2016-051
  • 2016-044
  • 2016-036
  • 2016-026
  • 2016-012
  • 2015-124
  • 2015-119
  • 2015-106
  • 2015-094
  • 2015-084
  • 2015-073
  • 2015-064
  • 2015-053
  • 2015-045
  • 2015-032
  • 2015-022
  • 2015-013
  • 2014-123
  • 2014-1112
  • 2014-1013
  • 2014-0914
  • 2014-081
  • 2014-077
  • 2014-0610
  • 2014-053
  • 2014-043
  • 2014-039
  • 2014-0216
  • 2014-013
  • 2013-125
  • 2013-118
  • 2013-108
  • 2013-0910
  • 2013-0810
  • 2013-079
  • 2013-0613
  • 2013-059
  • 2013-0410
  • 2013-037
  • 2013-024
  • 2013-0112
  • 2012-125
aboutme analysisservices azure azure-devops bids build builds cumulativeupdates cumulativeupdates2 dacfx database databasedevelopment deploy deployment independentlearning microsoft msbuild opinion poshssdtbuilddeploy powershell sixofthebest softwaredevelopmentlifecycle sql sql2 sqlagent sqlbits sqlpackage sqlserver sqlserver2012 sqlserver2014 ssas ssdt storedprocedures technology testing tfs tfs2012 tsql unknownsunknowns unknownunknowns visualstudio2012 vsts wix wixwednesday

Richie Lee is a man of many hats, both literally and figuratively. When either not at work nor running to and from work he can be found at home in Carshalton, probably playing Pokémon Go.

Powered by hugo and Theme by hugo-pacman-theme © 2021 bzzzt!