{"id":4100,"date":"2016-09-08T21:53:14","date_gmt":"2016-09-08T19:53:14","guid":{"rendered":"http:\/\/michlstechblog.info\/blog\/?p=4100"},"modified":"2016-09-09T07:41:11","modified_gmt":"2016-09-09T05:41:11","slug":"powershell-profile-locations","status":"publish","type":"post","link":"https:\/\/michlstechblog.info\/blog\/powershell-profile-locations\/","title":{"rendered":"Powershell: Profile locations"},"content":{"rendered":"<div class=\"twoclick_social_bookmarks_post_4100 social_share_privacy clearfix 1.6.4 locale-en_US sprite-en_US\"><\/div><div class=\"twoclick-js\"><script type=\"text\/javascript\">\/* <![CDATA[ *\/\njQuery(document).ready(function($){if($('.twoclick_social_bookmarks_post_4100')){$('.twoclick_social_bookmarks_post_4100').socialSharePrivacy({\"services\":{\"flattr\":{\"uid\":\"Michl\",\"status\":\"on\",\"the_title\":\"Powershell%3A%20Profile%20locations\",\"the_excerpt\":\"Hi%2C%0D%0A%0D%0Aif%20you%20want%20to%20customize%20your%20environment%20powershell%20has%20ability%20to%20load%20or%20execute%20some%20scripts%20at%20startup.%0D%0A%0D%0AThere%20are%204%20files%20where%20you%20can%20define%20functions%2C%20aliases%20...%20The%20AllHosts%20variables%20does%20not%20mean%20Computers.%20Allhosts%20is%20relating%20to%20Programs%20with%20has%20an%20Interface%20to%20Powershell%2C%20for%20example%20Powershell%20itself%2C%20Powershell%20ISE%20and%20so%20on.%20While%20currenthost%20means%20a%20specfic%20progra%20...\",\"txt_info\":\"2 clicks for more data protection:\\r\\n\\r\\nOnly when you click here, the button will be come active and you can send your recommendation to Flattr. When activating, data are transmitted to third parties. \",\"perma_option\":\"off\"}},\"txt_help\":\"When you activate these fields by clicking, information to Flattr may be transferred abroad, and probably may also stored there.\",\"settings_perma\":\"Enable permanently and accept data transmission. \",\"info_link\":\"http:\\\/\\\/www.heise.de\\\/ct\\\/artikel\\\/2-Klicks-fuer-mehr-Datenschutz-1333879.html\",\"uri\":\"https:\\\/\\\/michlstechblog.info\\\/blog\\\/powershell-profile-locations\\\/\",\"post_id\":4100,\"post_title_referrer_track\":\"Powershell%3A+Profile+locations\",\"display_infobox\":\"on\"});}});\n\/* ]]> *\/<\/script><\/div><p>Hi,<\/p>\n<p>if you want to customize your environment powershell has ability to load or execute some scripts at startup.<\/p>\n<p>There are 4 files where you can define functions, aliases &#8230; The AllHosts variables does not mean Computers. Allhosts is relating to Programs with has an Interface to Powershell, for example Powershell itself, Powershell ISE and so on. While currenthost means a specfic program. The currenthost variables differ from Powershell to Powershell ISE.<br \/>\n<!--more--><\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\r\nPS C:\\&gt; $Profile.AllUsersAllHosts\r\nC:\\Windows\\System32\\WindowsPowerShell\\v1.0\\profile.ps1\r\nPS C:\\&gt; $Profile.AllUsersCurrentHost\r\nC:\\Windows\\System32\\WindowsPowerShell\\v1.0\\Microsoft.PowerShell_profile.ps1\r\nPS C:\\&gt; $Profile.CurrentUserAllHosts\r\nC:\\Users\\CurrentUser\\Documents\\WindowsPowerShell\\profile.ps1\r\nPS C:\\&gt; $Profile.CurrentUserCurrentHost\r\nC:\\Users\\CurrentUser\\Documents\\WindowsPowerShell\\Microsoft.PowerShell_profile.ps1\r\n<\/pre>\n<p>Michael<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, if you want to customize your environment powershell has ability to load or execute some scripts at startup. There are 4 files where you can define functions, aliases &#8230; The AllHosts variables does not mean Computers. Allhosts is relating to Programs with has an Interface to Powershell, for example Powershell itself, Powershell ISE and &hellip; <a href=\"https:\/\/michlstechblog.info\/blog\/powershell-profile-locations\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Powershell: Profile locations<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,5],"tags":[917,916,915,914,583,913,133,912,20],"class_list":["post-4100","post","type-post","status-publish","format-standard","hentry","category-windows","category-windowsknowhow","tag-allusersallhosts","tag-alluserscurrenthost","tag-currentuserallhosts","tag-currentusercurrenthost","tag-files","tag-location","tag-powershell","tag-profile","tag-windows-2"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/4100","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/comments?post=4100"}],"version-history":[{"count":3,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/4100\/revisions"}],"predecessor-version":[{"id":4103,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/4100\/revisions\/4103"}],"wp:attachment":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/media?parent=4100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/categories?post=4100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/tags?post=4100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}