search
Categories
Sponsors
VirtualMetric Hyper-V Monitoring, Hyper-V Reporting
Archive
Blogroll

Badges
MCSE
Community

Cozumpark Bilisim Portali
Updating PowerShell Module Path (PSModulePath) of Azure VM
Posted in Windows Powershell | No Comment | 24,561 views | 02/05/2014 23:01

You can add Windows Azure PowerShell module into PSModulePath with following:

1
2
3
4
5
6
7
8
#Save the current value in the $p variable.
$p = [Environment]::GetEnvironmentVariable("PSModulePath")
 
#Add the new path to the $p variable. Begin with a semi-colon separator.
$p += ";C:\Program Files (x86)\Microsoft SDKs\Windows Azure\PowerShell\"
 
#Add the paths in $p to the PSModulePath value.
[Environment]::SetEnvironmentVariable("PSModulePath",$p)

Save it into C:\Users\yusufozturk\Documents\WindowsPowerShell\profile.ps1.



Leave a Reply