{"action":"created","issue":{"url":"https://api.github.com/repos/sacha81/XA-and-XD-HealthCheck/issues/28","repository_url":"https://api.github.com/repos/sacha81/XA-and-XD-HealthCheck","labels_url":"https://api.github.com/repos/sacha81/XA-and-XD-HealthCheck/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/sacha81/XA-and-XD-HealthCheck/issues/28/comments","events_url":"https://api.github.com/repos/sacha81/XA-and-XD-HealthCheck/issues/28/events","html_url":"https://github.com/sacha81/XA-and-XD-HealthCheck/issues/28","id":189467152,"number":28,"title":"Cannot overwrite variable","user":{"login":"Aymen80","id":23483773,"avatar_url":"https://avatars.githubusercontent.com/u/23483773?v=3","gravatar_id":"","url":"https://api.github.com/users/Aymen80","html_url":"https://github.com/Aymen80","followers_url":"https://api.github.com/users/Aymen80/followers","following_url":"https://api.github.com/users/Aymen80/following{/other_user}","gists_url":"https://api.github.com/users/Aymen80/gists{/gist_id}","starred_url":"https://api.github.com/users/Aymen80/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aymen80/subscriptions","organizations_url":"https://api.github.com/users/Aymen80/orgs","repos_url":"https://api.github.com/users/Aymen80/repos","events_url":"https://api.github.com/users/Aymen80/events{/privacy}","received_events_url":"https://api.github.com/users/Aymen80/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-11-15T18:17:50Z","updated_at":"2017-01-02T02:08:19Z","closed_at":null,"body":"hello,\r\nwhen i run the script i have directly  these error message at the beginning ,i dont know how to correct this\r\n\r\nNew-Variable : Cannot overwrite variable EnvironmentName because the variable has been optimized. Try using the\r\nNew-Variable or Set-Variable cmdlet (without any aliases), or dot-source the command that you are using to set the\r\nvariable.\r\nAt C:\\temp\\scripts\\XA-and-XD-HealthCheck.ps1:74 char:26\r\n+         If ($CreateVariable) { New-Variable -Name $_.Name -Value $VarValue -Scope $_.S ...\r\n+                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : WriteError: (EnvironmentName:String) [New-Variable], SessionStateUnauthorizedAccessExcep\r\n   tion\r\n    + FullyQualifiedErrorId : VariableNotWritableRare,Microsoft.PowerShell.Commands.NewVariableCommand\r\n\r\nNew-Variable : Cannot overwrite variable ShowXenAppTable because the variable has been optimized. Try using the\r\nNew-Variable or Set-Variable cmdlet (without any aliases), or dot-source the command that you are using to set the\r\nvariable.\r\nAt C:\\temp\\scripts\\XA-and-XD-HealthCheck.ps1:74 char:26\r\n+         If ($CreateVariable) { New-Variable -Name $_.Name -Value $VarValue -Scope $_.S ...\r\n+                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : WriteError: (ShowXenAppTable:String) [New-Variable], SessionStateUnauthorizedAccessExcep\r\n   tion\r\n    + FullyQualifiedErrorId : VariableNotWritableRare,Microsoft.PowerShell.Commands.NewVariableCommand\r\n\r\nNew-Variable : Cannot overwrite variable PvsWriteMaxSize because the variable has been optimized. Try using the\r\nNew-Variable or Set-Variable cmdlet (without any aliases), or dot-source the command that you are using to set the\r\nvariable.\r\nAt C:\\temp\\scripts\\XA-and-XD-HealthCheck.ps1:74 char:26\r\n+         If ($CreateVariable) { New-Variable -Name $_.Name -Value $VarValue -Scope $_.S ...\r\n+                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : WriteError: (PvsWriteMaxSize:String) [New-Variable], SessionStateUnauthorizedAccessExcep\r\n   tion\r\n    + FullyQualifiedErrorId : VariableNotWritableRare,Microsoft.PowerShell.Commands.NewVariableCommand\r\n\r\nThe variable '$PvsWriteMaxSize' cannot be retrieved because it has not been set.\r\nAt C:\\temp\\scripts\\XA-and-XD-HealthCheck.ps1:81 char:20\r\n+ $PvsWriteMaxSize = $PvsWriteMaxSize * 1Gb\r\n+                    ~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : InvalidOperation: (PvsWriteMaxSize:String) [], RuntimeException\r\n    + FullyQualifiedErrorId : VariableIsUndefined\r\n\r\n#### Begin with Citrix XenDestop / XenApp HealthCheck ##################################################################\r\n####"},"comment":{"url":"https://api.github.com/repos/sacha81/XA-and-XD-HealthCheck/issues/comments/269929597","html_url":"https://github.com/sacha81/XA-and-XD-HealthCheck/issues/28#issuecomment-269929597","issue_url":"https://api.github.com/repos/sacha81/XA-and-XD-HealthCheck/issues/28","id":269929597,"user":{"login":"sommerers","id":19847642,"avatar_url":"https://avatars.githubusercontent.com/u/19847642?v=3","gravatar_id":"","url":"https://api.github.com/users/sommerers","html_url":"https://github.com/sommerers","followers_url":"https://api.github.com/users/sommerers/followers","following_url":"https://api.github.com/users/sommerers/following{/other_user}","gists_url":"https://api.github.com/users/sommerers/gists{/gist_id}","starred_url":"https://api.github.com/users/sommerers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sommerers/subscriptions","organizations_url":"https://api.github.com/users/sommerers/orgs","repos_url":"https://api.github.com/users/sommerers/repos","events_url":"https://api.github.com/users/sommerers/events{/privacy}","received_events_url":"https://api.github.com/users/sommerers/received_events","type":"User","site_admin":false},"created_at":"2017-01-02T02:08:19Z","updated_at":"2017-01-02T02:08:19Z","body":"FYI, the link you referenced above for that code is not native to PowerShell and requires the Sapiens PowerShell , which makes that software/package a requirement to utilize that. "}}
{"actor":{"display_login":"sommerers"}}