Skip to content

Instantly share code, notes, and snippets.

@posaunehm
Created November 27, 2013 04:55
Show Gist options
  • Save posaunehm/7670851 to your computer and use it in GitHub Desktop.
Save posaunehm/7670851 to your computer and use it in GitHub Desktop.
環境変数をPowerShellから設定する。 参考:http://mtgpowershell.blogspot.jp/2011/01/blog-post_14.html 呼び出すメソッドはこれ。 http://msdn.microsoft.com/ja-jp/library/96xafkes.aspx 第3引数は、Machine, User, Processのいずれか。 http://msdn.microsoft.com/ja-jp/library/system.environmentvariabletarget.aspx
[Environment]::SetEnvironmentVariable(“temp”, “D:\temp”, “User”)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment