{"id":357,"date":"2010-12-22T12:38:48","date_gmt":"2010-12-22T01:38:48","guid":{"rendered":"http:\/\/threemillion.net\/blog\/?p=357"},"modified":"2014-01-03T16:07:48","modified_gmt":"2014-01-03T05:07:48","slug":"warning-this-script-is-obsolete","status":"publish","type":"post","link":"https:\/\/threemillion.net\/blog\/?p=357","title":{"rendered":"WARNING This script is obsolete"},"content":{"rendered":"<p>Had this warning appear this morning when starting Powershell.<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">WARNING: This script is obsolete. Use Initialize-PowerCLIEnvironment.ps1 instead<\/pre>\n<p>My first thought was that I haven&#8217;t changed anything, in my profile at least. Since I have put in my powershell profile transcript logging for all Powershell sessions, I decided to search for the error and found it had happened a number of time before. I realised that I have installed PCLI4.1 Update 1, which lead me to check the shortcut I use from the Quick Launch and compare it to the one in the start menu.<\/p>\n<p>Previous version<br \/>\n<code>C:\\WINDOWS\\SYSTEM32\\WindowsPowerShell\\v1.0\\powershell.exe -psc \"C:\\Program Files\\VMware\\Infrastructure\\vSphere PowerCLI\\vim.psc1\" -noe -c \". \\\"C:\\Program Files\\VMware\\Infrastructure\\vSphere PowerCLI\\Scripts\\Initialize-<span style=\"color: #0000ff;\"><strong>VIToolkit<\/strong><\/span>Environment.ps1\\\"\"<\/code><\/p>\n<p>PowerCLI 4.1 Update 1<br \/>\n<code>C:\\WINDOWS\\SYSTEM32\\WindowsPowerShell\\v1.0\\powershell.exe -psc \"C:\\Program Files\\VMware\\Infrastructure\\vSphere PowerCLI\\vim.psc1\" -noe -c \". \\\"C:\\Program Files\\VMware\\Infrastructure\\vSphere PowerCLI\\Scripts\\Initialize-<span style=\"color: #0000ff;\"><strong>PowerCLI<\/strong><\/span>Environment.ps1\\\"\"<\/code><\/p>\n<p>So simply update my shortcut and warning goes away.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Had this warning appear this morning when starting Powershell. My first thought was that I haven&#8217;t changed anything, in my profile at least. Since I have put in my powershell <a href=\"https:\/\/threemillion.net\/blog\/?p=357\" class=\"more-link\">[&hellip;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"Layout":""},"categories":[8,18],"tags":[],"_links":{"self":[{"href":"https:\/\/threemillion.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/357"}],"collection":[{"href":"https:\/\/threemillion.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/threemillion.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/threemillion.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/threemillion.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=357"}],"version-history":[{"count":9,"href":"https:\/\/threemillion.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/357\/revisions"}],"predecessor-version":[{"id":475,"href":"https:\/\/threemillion.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/357\/revisions\/475"}],"wp:attachment":[{"href":"https:\/\/threemillion.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=357"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/threemillion.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=357"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/threemillion.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=357"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}