Skip to content

Instantly share code, notes, and snippets.

@DinisCruz
Created April 26, 2015 01:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DinisCruz/ea3db82d68714ae185ec to your computer and use it in GitHub Desktop.
Save DinisCruz/ea3db82d68714ae185ec to your computer and use it in GitHub Desktop.
Misc Azure PowerShell scripts (executed via Kudu)
$regHive = [Microsoft.Win32.RegistryHive]::LocalMachine
$regView = [Microsoft.Win32.RegistryView]::Registry32
$regKey = [Microsoft.Win32.RegistryKey]::OpenBaseKey($regHive, $regView)
$frameworkPath = $regKey.OpenSubKey("SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full").GetValue("InstallPath")
$frameworkPath
#returns D:\Windows\Microsoft.NET\Framework\v4.0.30319\
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment