Lab5 ‐ PS - ryanm292002/SEC480 GitHub Wiki

Licensing Vcenter

VSCODE // Powershell module setup

Please visit "code" to see the cloning powershell script

  • Install Vscode from browser

  • Setup module directory: image

  • In powershell within the newly created structure run: New-ModuleManifest -Path ./480-Utils.psd1 -Author 'ryanm292002' -CompanyName 'RyanM' -RootModule '480-Utils.psm1' -Description 'vSphere automation module for DevOps'

  1. Create 480-utils module file touch 480-utils.psm1
  2. in modules directory "PS /home/sa_ryan/SEC480/modules> code $profile", created new vs profile
  3. in new profile run $env:PSModulePath = $env:PSModulePath + ":/home/sa_ryan/SEC480/modules>"
  4. check module path was created: $env:PSModulePath
  5. import-module '480-utils' -force