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
  • build23
  • builds20
  • cumulativeupdates14
  • cumulativeupdates210
  • dacfx9
  • database10
  • databasedevelopment10
  • deploy18
  • independentlearning19
  • microsoft31
  • msbuild14
  • opinion10
  • powershell67
  • sql48
  • sqlpackage12
  • sqlserver101
  • sqlserver201220
  • sqlserver201432
  • ssas29
  • ssdt20
  • technology19
  • tfs201213
  • tsql56
  • unknownsunknowns12
  • unknownunknowns35
  • visualstudio201213

Recent Musings

    Databricks InferSchema Performance
    Posts
    Unexpected Modifications to Notebooks Azure Databricks
    Migrating from AzureRM to Az Module In Azure DevOps Pipelines
    Set Azure DataBricks BearerToken to Never Expire
    Help! My Build Badge Showing Never Built!
    Installing Pester on Linux Build Agents!
    Printing Out Secret in Azure Databricks

Archive

  • 2019-122
  • 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 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 © 2019 bzzzt!