Wednesday, 17 January 2018

Enable client drive as V Drive on Citrix Sessions


To Enable Client drives as V Drive on Citrix session :-


  1. Create this registry key if it does not exist:
    HKEY_LOCAL_MACHINE\Software\Citrix\UncLinks\
  2. Under the key, create a DWORD: UNCEnabled.
  3. Set the value of UNCEnabled to “0”.

Netscaler firmware Upgrade Plan for HA

Netscaler Upgrade Method

Method of upgrading NetScaler firmware in HA:-


Preparation
1. Please make sure we have console connectivity to the NetScaler appliances.
2. Save the configurations of Primary and secondary NS appliances. Save a copy of current configuration on local workstation.
3. Download and transfer new firmware intoPrimary and secondary NS appliances.
We can use WinScp or any SFTP tool to copy firmware to NetScaler.

Procedure to upgradefirmware to NetScaler.
1. Open an SSH connection to the NetScaler by using an SSH client, such as PuTTY.
2. > show ha node (To verify Primary and Secondary node)
3. Before we begin the upgrade login to Secondary and execute below commands to make Secondary as StaySecondary and Primary as StayPrimary to avoid any HA related issues.
set ha node -hastatus STAYSECONDARY
set ha node -hasync disabled
set ha node -haprop disable
Save ns config
or
saveconfig
4. Login to Primary and make Primary as StayPrimary
set ha node -hastatus STAYPRIMARY
set ha node -hasync disabled
set ha node -haprop disabled
Save ns config
or
saveconfig
5. Log on to the both Primary and secondary NS appliances by using the administrator credentials. Create a copy of the ns.conf file. At the shell prompt, type:
a. cd /nsconfig
b. cpns.conf ns.conf.NS-10.5_date
You should backup a copy of the configuration file on another computer.
6. On the Secondary NS appliances.create a 10.5nsinstall subdirectory in the /var/nsinstall directory.
7. Change directory to /var/nsinstall/, create a directory named 10.5_60.7, and change to this directory.
8. Download or copy the installation package to this directory and extract the contents of the installation package. To download the installation package from the Citrix Web site, follow the steps below:
b. Copy the firmware to /var/nsinstall/10.5_60.7directory.
c. To untar the installation package (build_10.5_60.7_nc.tgz) execute below command
tar xvzf build_10.5_60.7.tgz
9. Run the installns script to install the new version of the system software and select the latest configuration file.
./installns
10. When prompted, restart the NetScaler.
11. Verify NetScalerappliancerunning new firmware. Execute the below command at NetScaler (>) prompt:-
> show version
12. Verify all services and vservers are running. Execute the below command at NetScaler (>) prompt:-
> show vserver
>stat service
13. Execute the below command on both the boxes to enable HA and then execute a force failover.
set ha node hastatus enabled
force failover   (To make Secondary as Primary)

14. Verify all applications are working fine without any issue before we proceed with upgrade of another node in HA.

Proceed with upgrade of new Secondary node
1. Open an SSH connection to the NetScaler by using an SSH client, such as PuTTY.
> show ha node (To verify Primary and Secondary node)
2. Before we begin the upgrade login to Secondary and execute below commands to make Secondary as StaySecondary and Primary as StayPrimary to avoid any HA related issues.
set ha node -hastatus STAYSECONDARY
set ha node -hasync disabled
set ha node -haprop disable
Save ns config
or
saveconfig


3. Login to Primary and make Primary as StayPrimary
set ha node -hastatus STAYPRIMARY
set ha node -hasync disabled
set ha node -haprop disabled
Save ns config
or
saveconfig

4. Follow the steps 6, 7, 8, 9, 10, 11, 12 and 13 listed under Procedure to upgrade NetScaler.
5. Perform the verification of new firmware, Vservers and services-
6. Once verification has been done enable sync and prop and save the configuration on both NetScaler appliances.
set ha node -hastatus enabled
set ha node -hasync enabled
set ha node -haprop enabled
Save ns config
or
saveconfig


Procedure to downgrade NetScaler.
1. Follow the upgrade step using the installation packages for the earlier version.  
2. Verify Netscaler running new firmware.
3. Verify all services and vservers are running and everything is working fine.

Fix for No Remote Desktop License Server available

By Default when we install Remote Desktop Services Role in Windows Server then it provides unlimited User Connections for 120 Days (Grace Period) without any TS License Server.
If this Grace Period get expire then Users will unable to login and get below mentioned error:






So to Fix this issue we can regenerate Grace Period for Remote Desktop Services or you can also install RDS CAL .However I am sharing  Step to regenerate Grace Period which is  mentioned below:
· Open Run
· Type "Regedit" and click OK












· Go to Location:  
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\RCM\GracePeriod















· Right Click on GracePeriod and click Permissions














· Click Advanced



















· Click change













· type username to whom you want to give ownership and click OK












· Click Apply and then OK











  • Now Click Add




















· Select Domain Admin or any user whom you have given ownership above and click OK










· Give Full Control to Selected User  and click Apply and then OK



















· Now click on  GracePeriod  and delete key from right pane as mentioned in below Snapshot:











· Click yes to delete Key and reboot Server







Important Information:-

        Post Server reboot you will again have 120 days RDS evolution license and you can delete it if it gets expire again and Server can be used for any number of days by using this method without purchasing RDS Licenses from Microsoft.

       However it would be better to use Microsoft RDS CAL for Production Infra. Please use this trick only for your home lab for testing purpose 





































































































Click below link