Powershell Script to get Client IP connected to Windows Server & IP Access Filter
$250-750 USD
Cerrado
Publicado hace más de 7 años
$250-750 USD
Pagado a la entrega
Modify the following PowerShell script which runs on a XenDesktop application server (Windows 2008 R2 or Windows 2012 R2) so it'll work without requiring a specific Citrix command which in turn requires read/only access to the Citrix XenDesktop Broker:
Part #1:
Powershell:
Set-ExecutionPolicy Unrestricted -force
aspn citrix*
Get-BrokerSession -AdminAddress "[login to view URL]"
[Environment]::SetEnvironmentVariable("ClientIP", $(Get-BrokerSession -UserName $($env:USERDOMAIN + "\" + $env:USERNAME) | select -ExpandProperty ClientAddress), "User”)
In the above code, the part were it says SetEnvironmentVariable("ClientIP"
This part I'd like to replace with a standard Windows call not requiring Get-BrokerSession
Based on Citrix discussion website
[login to view URL]
Possibilities include something like the following:
[Environment]::SetEnvironmentVariable("HKLM\Software\Citrix\ICA\Session\$SessionID\Connection\"ClientAddress")
Part #2:
XenApp 6.5 and previous versions of Citrix had the ability to load balance based on IP address. I'm not able to locate this in XenDesktop 7.9. In policies there are several settings related to Load Balancing, but nothing concerning IP address To be clear, the load balancing is so that Users are directed to certain servers based on a particular load balancing criteria. Let's say RAM and CPU were used and the XenApp 6.5 QFARM /LOAD equivalent is 4500 because. Is there something similar in XenDesktop when you're working with Windows 2008 R2 / Windows 2012 R2 hosted desktops?
New-BrokerAccessPolicyRule -Name ‘Branch_B001' -AllowedConnections filtered -AllowedProtocols ‘HDX’ -AllowedUsers filtered -IncludedClientIPFilterEnabled $true -IncludedClientIPs ‘[login to view URL]’ -IncludedDesktopGroupFilterEnabled $true -IncludedDesktopGroups ‘B001’
Based on Citrix discussion website
[login to view URL]
Hi,
I will be pleased to join your project as i possessed the required skills and experience.
I have excellent skills on networking and Windows server adminatrationand am confidant to execute your project successfully.
Please spare just minutes and pay attention to my profile.
Thank you!
Regards,
Gul Nawaz
I'm an experienced system administrator with over a decade of experience.
I have worked with PowerShell for several such requirements.
Please initiate a chat to discuss further