How to hide desktop computers from the XenApp Services site PNAgent?

7:01 PM
How to hide desktop computers from the XenApp Services site PNAgent? -

When using XenApp Services site only to manage XenApp and XenDesktop environments or provide published desktop and applications from your XenApp farm, you probably noticed that your users will the desktop icon in the start menu and or office.

Well, I met this question recently during my project and I thought it does not just look really professional and decided to solve this little cosmetic problem.

to my surprise, I found that only a few items and used all description field to hide the application (CTX123969). But that's not what I want. - I just want to ignore the type of application and do not want to explicitly specify which ones will be hidden

Once it is proven that it is quite unique what I'm doing, I have decided to abandon my search Google and started searching Web Interface SDK.

After a few minutes, the first prototype was made and it works out of the box as expected.

To implement it, just follow the original instructions KB (CTX123969), but replace the code with the following:

  java.util.ArrayList filtered = java.util.ArrayList new ();   for (int i = 0; i   if ((resources [i] instanceof com.citrix.wing.webpn.DesktopInfo)!) {  filtered.add (resources [i]);  }  }   = Resources (ResourceInfo []) filtered.toArray (new ResourceInfo [0]);  

When creating backup enumeration.java, be sure not to save it in the same directory as the original file, an error message, otherwise you will get what follows:

information exception:
exception Type: HttpCompileException
exception message: c: inetpub wwwroot Citrix PNAgent App_Code PagesJava com citrix wi pna Enumeration - Copy.java (20): VJS1183 error type Redeclaration 'com.citrix.wi.pna.Enumeration' said another source file

UPDATE: to avoid confusion - this solution works for desktop computers from XenApp and XenDesktop

of course, provided under the cover of your favorite disclaimer:

"This software application is provided to you" as is "without representation, warranty or condition of any kind. You can use and distribute it at your own risk. CITRIX DISCLAIMS ALL WARRANTIES, EITHER EXPRESS, IMPLIED, WRITTEN, ORAL OR STATUTORY, INCLUDING WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. Without limiting the generality of the foregoing, you acknowledge and agree that (a) the software application may have errors, design flaws or other problems, possibly resulting in loss of data or damage to property; (B) it may not be possible to fully functional software application; and (c) Citrix may, without notice or liability to you, cease to provide the current and / or future versions of the software application. In any case, the code must be used to support ultra-hazardous activities, including but not limited to life support or blasting operations. CITRIX, ITS AFFILIATES OR AGENTS BE LIABLE FOR BREACH OF CONTRACT OR ANY OTHER THEORY OF LIABILITY FOR ANY DAMAGES ARISING FROM THE USE OF THE APPLICATION SOFTWARE, INCLUDING WITHOUT LIMITATION DIRECT, INCIDENTAL, PUNITIVE, OR CONSEQUENTIAL OTHER SPECIAL, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. You agree to indemnify and defend Citrix against any claim arising from your use, modification or distribution of the code. "

Zugec Martin

Previous
Next Post »
0 Komentar