PowershellModules/Install-PowershellModules.ps1

4 lines
182 B
PowerShell

$ModulePath="$($env:windir)\system32\WindowsPowerShell\v1.0\Modules\"
Get-ChildItem $PSScriptRoot -Directory | ForEach-Object{
Copy-Item -Recurse -Force $_.FullName $ModulePath
}