{"action":"created","issue":{"url":"https://api.github.com/repos/PowerShell/PSScriptAnalyzer/issues/307","labels_url":"https://api.github.com/repos/PowerShell/PSScriptAnalyzer/issues/307/labels{/name}","comments_url":"https://api.github.com/repos/PowerShell/PSScriptAnalyzer/issues/307/comments","events_url":"https://api.github.com/repos/PowerShell/PSScriptAnalyzer/issues/307/events","html_url":"https://github.com/PowerShell/PSScriptAnalyzer/issues/307","id":106609118,"number":307,"title":"Invoke-ScriptAnalyzer cmdlet fails if -Path param point to a PSDrive","user":{"login":"joeyaiello","id":1255187,"avatar_url":"https://avatars.githubusercontent.com/u/1255187?v=3","gravatar_id":"","url":"https://api.github.com/users/joeyaiello","html_url":"https://github.com/joeyaiello","followers_url":"https://api.github.com/users/joeyaiello/followers","following_url":"https://api.github.com/users/joeyaiello/following{/other_user}","gists_url":"https://api.github.com/users/joeyaiello/gists{/gist_id}","starred_url":"https://api.github.com/users/joeyaiello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joeyaiello/subscriptions","organizations_url":"https://api.github.com/users/joeyaiello/orgs","repos_url":"https://api.github.com/users/joeyaiello/repos","events_url":"https://api.github.com/users/joeyaiello/events{/privacy}","received_events_url":"https://api.github.com/users/joeyaiello/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-15T17:49:15Z","updated_at":"2015-09-16T18:15:01Z","closed_at":null,"body":"[Filed by Chris J Warwick via Connect](https://connect.microsoft.com/PowerShell/feedback/details/1768049/invoke-scriptanalyzer-cmdlet-fails-if-path-param-point-to-a-psdrive): \r\n\r\n\"Create a PSDrive.  Copy a script to the drive and run Invoke-ScriptAnalyzer against the path.\r\n\r\nThe cmdlet will work if the full (native) path is specfied (e.g. C:\\Data\\PowerShell\\Scripts\\TestScript.ps1)\r\n\r\nProblem Description:\r\nIf using a PSDrive (specified explicitly or implied as the current working directory) in the -Path param value for Invoke-ScriptAnalyzer the cmdlet fails with \r\n\r\nExample output:\r\n\r\n```\r\nPS:\\> Invoke-ScriptAnalyzer .\\TestScript.ps1\r\nInvoke-ScriptAnalyzer : Unable to find the specified file.\r\nAt line:1 char:1\r\n+ Invoke-ScriptAnalyzer .\\TestScript.ps1\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : InvalidArgument: (Microsoft.Windo....ScriptAnalyzer:ScriptAnalyzer) [Invoke-ScriptAnalyzer], FileNotFoundException\r\n    + FullyQualifiedErrorId : Cannot find file 'PS:\\TestScript.ps1'.,Microsoft.Windows.PowerShell.ScriptAnalyzer.Commands.InvokeScriptAnalyzerCommand\r\n```\r\n\""},"comment":{"url":"https://api.github.com/repos/PowerShell/PSScriptAnalyzer/issues/comments/140827726","html_url":"https://github.com/PowerShell/PSScriptAnalyzer/issues/307#issuecomment-140827726","issue_url":"https://api.github.com/repos/PowerShell/PSScriptAnalyzer/issues/307","id":140827726,"user":{"login":"raghushantha","id":11727200,"avatar_url":"https://avatars.githubusercontent.com/u/11727200?v=3","gravatar_id":"","url":"https://api.github.com/users/raghushantha","html_url":"https://github.com/raghushantha","followers_url":"https://api.github.com/users/raghushantha/followers","following_url":"https://api.github.com/users/raghushantha/following{/other_user}","gists_url":"https://api.github.com/users/raghushantha/gists{/gist_id}","starred_url":"https://api.github.com/users/raghushantha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raghushantha/subscriptions","organizations_url":"https://api.github.com/users/raghushantha/orgs","repos_url":"https://api.github.com/users/raghushantha/repos","events_url":"https://api.github.com/users/raghushantha/events{/privacy}","received_events_url":"https://api.github.com/users/raghushantha/received_events","type":"User","site_admin":false},"created_at":"2015-09-16T18:15:01Z","updated_at":"2015-09-16T18:15:01Z","body":"Chris.\r\n\r\nThanks for reporting this. \r\n\r\nWe will soon have a fix to support PSDrives when using ScriptAnalyzer"}}