This repository contain script intendend to download Powershell module directly from the GitHub repo
Powershell module path can be set in one of the next ways:
- Module GitHub UserName, Repository, Branch(not required), Folder(optional)
- Github Folder Url
- Interactive mode
-
moduleName
- subfolder with module content. Live empty if the root repo folder is the module folder(contain psd1/psm1 files) -
username
- Github accout user or company name -
repoName
- user repository account
iex ('$module="{moduleName}";$user="{username}";$repo="{repoName}";'+(new-object net.webclient).DownloadString('https://raw.githubusercontent.com/PsModuleInstall/InstallFromGithub/master/install.ps1'))
iex ('$module="Bookmarks";$user="stadub";$repo="PowershellScripts";'+(new-object net.webclient).DownloadString('https://raw.githubusercontent.com/PsModuleInstall/InstallFromGithub/master/install.ps1'))
url
- url to the repo-folder
iex ('$url="{url}";'+(new-object net.webclient).DownloadString('https://raw.githubusercontent.com/PsModuleInstall/InstallFromGithub/master/install.ps1'))
iex ('$module="Bookmarks";$user="stadub";$repo="PowershellScripts";'+(new-object net.webclient).DownloadString('https://raw.githubusercontent.com/PsModuleInstall/InstallFromGithub/master/install.ps1'))
url
- url to the repo-folder
iex ('$url="{url}";'+(new-object net.webclient).DownloadString('https://raw.githubusercontent.com/PsModuleInstall/InstallFromGithub/master/install.ps1'))
iex ('$url="https://github.com/stadub/PowershellScripts/tree/7-Zip-Release-1.1/7Zip";'+(new-object net.webclient).DownloadString('https://raw.githubusercontent.com/PsModuleInstall/InstallFromGithub/master/install.ps1'))
Interactive mode represents one of modes defined above. But allow to fill in info in wizard mode
iex('(new-object net.webclient).DownloadString("https://raw.githubusercontent.com/PsModuleInstall/InstallFromGithub/master/install.ps1")')