From / TO | Ports |
User machine / Web Interface | tcp/80 |
User machine / VDI | tcp/1494 tcp/3389 |
Cisco ASA get Site 2 Site VPN PSK – decrypt PSK S2S VPN
If you only see asterisks, in the ASA configuration of you ASA when you want to find the PSK of a Site2Site (S2S)VPN, you can type this command:
more system:/running-config
then it will show the PSK in clear text.
Get number of all desktops in Citrx Xendesktop with powershell in all desktop groups
To get sum of all desktops in the Citrix Xendesktop (5) farm, just run this commands:
Asnp Citrix.*
Get-BrokerDesktopGroup | measure-object -property TotalDesktops -sum | select sum
Remove-RoutingGroupConnector – The operation couldn’t be performed because ‘rg-exchange’ matches multiple entries.
I have this problems that i could delete a routinggroup between an old Exchange 2003 and a new Exchange 2010.
When i type Get-RoutingGroupConnector
Name SourceRoutingGroup TargetRoutingGroup
—- —————— ——————
RG-Exchange Exchange Routing Group (DWBGZMFD01QNBJR) First Routing Group
RG-Exchange First Routing Group Exchange Routing Group (DWBGZMFD01QNBJR)
So i have 2 Routinggroup Connector with the same name. So when i type
Remove-RoutingGroupConnector -id “RG-Exchange”
I got
The operation couldn’t be performed because ‘rg-exchange’ matches multiple entries.
+ CategoryInfo : NotSpecified: (0:Int32) [Remove-RoutingGroupConnector], ManagementObjectAmbiguousExcepti
on
+ FullyQualifiedErrorId : 6C29C43B,Microsoft.Exchange.Management.SystemConfigurationTasks.RemoveRoutingGroupConnec
tor
So all i did was typing this instead:
get-routinggroupconnector -id “RG-Exchange” | remove-routinggroupconnector
Then it will ask you if you want to delete all routingsgroup with the name “RG-Exchange”
Backup msSQL server – Operating system error 5(error not found).
If you want to take a backup from Microsoft SQL Server management Studio, and get this error: Operating system error 5(error not found), then the problems is that the user running SQL Server services dosen’t have access to the destanation folder of you backup.
Ahsay restore Microsoft SQL (MSSQL) server database
If you want to restore a Microsoft SQL database, from a fuld backup, and put some transaction log file into it. (This backup has backup by ahsay)
This is the why to do it:
- Start Microsoft SQL Server Management Studio
- Right click on Databases, and select restore database
Type a database “To database”, and select from device , and press the butten with the 3 dots (…)
Select file, and then click Add
Select the database file you want to restore, and click ok
Then select options, and click “Leave the database non-operational, and do not roll back uncommitted transactions. (Restore with NORECOVERY), then click OK- Start a new query, and type this (Change it to yours database and files).
- RESTORE LOG RestoreTest
FROM DISK = ‘F:\RestoreTest\2011-09-13(09-00-00)_LOG_RestoreTest_2011.bak’
WITH NORECOVERYRESTORE LOG Farma_test
FROM DISK = ‘F:\RestoreTest\2011-09-13(10-00-00)_LOG_RestoreTest_2011.bak’
WITH NORECOVERYRESTORE LOG Farma_test
FROM DISK = ‘F:\RestoreTest\2011-09-13(11-00-00)_LOG_RestoreTest_2011.bak’
WITH NORECOVERYRESTORE LOG Farma_test
FROM DISK = ‘F:\RestoreTest\2011-09-13(12-00-00)_RestoreTest_2011.bak’
WITH NORECOVERY - When you have takende the sekund last backup file, just type this:
- RESTORE LOG Farma_test
FROM DISK = ‘F:\RestoreTest\2011-09-13(13-00-00)_RestoreTest_2011.bak’
WITH RECOVERY
Microsoft Exchange 2010 – Ahsay restore to recovery mailbox database / storage group.
Ahsay have no support for native restore to Exchange recovery group, but here is a workaround of that problems.
First create a recovery storagegroup
New-MailboxDatabase -Recovery -Name RDB1 -Server exch2010 -EdbFilePath “F:\Backup\Restore\Data\rdb1.edb” -LogFolderPath “F:\Backup\Restore\Log”
Where RDB1 is the name of the Recovery database and Exch2010 is the name of the servere where recovery database should be located.
Restore the Exchange 2010 database to a alternative location in ahsay. With both logfiles and the database files, restore it to “F:\Backup\Restore\Data\Mailbox Database.edb” or where you location is.
Then run repair of the restored database.
Eseutil /p “F:\Backup\Restore\Data\Mailbox Database.edb”
Then mount the database
Mount-Database -Identity ‘Mailbox Database’
Example restore a mailbox to a Restore mailbox in the real database.
Restore-Mailbox -Identity ‘mailbox_to_restore_content_to’ -RecoveryDatabase RDB1 -RecoveryMailbox ‘Mailbox_Restore’ -TargetFolder Recovery
This will create a folder name Recovery under mailbox_to_restore_content_to, with the content of Mailbox_Restore
[PS] C:\Recovery20110909>Restore-Mailbox -Identity jvrestore -RecoveryDatabase RDB1 -RecoveryMailbox ‘Jesper Vernegaard’
-TargetFolder Recovery
Disable password complexity password policy
Logon to you Domain Controller, and start Group Policy Manager.
Right click on you “Default Domain Policy” and press edit
Go to Computer Configuration -Policies -> Windows Settings -> Security Settings -> Account Policy -> Password Policy
And set all settings to 0 (zero) or disable.
Do not set it to Not defined, that will set is as default behavior = Password complexity enabled.
XenDesktop 5 Provisioning firewall ports
The following ports need to be open from the VDI to the Provision servers.
UDP 69
UDP 6905-6930
UDP 4011
TCP 54321-54322
TCP 10802-10803
Citrix VDI Xendesktop Ekspert
Jeg er blevet certificeret i Citrix XenDesktop, samtidig med at jeg har sat et komplet redudant Citrix Xendesktop miljø op.
Citrix Xendesktop tilbyder dig en hosted desktop løsning, der hvor Citrix Xendesktop virkelig kommer til udtryk er hvis i f.eks. i jeres virksomhed er 50 ansatte, istedet for at skulle købe 50 computer, vedligeholde image til disse, hvilket i tilfælde af 50 nye maskiner ikke er så svært men med tiden, vil man efterhånden for mange foreskellige computere man skal have image til.
Her kan man istedet for med Citrix Xendesktop, have et image, som ligger på en hypervisor, enten fra Vmware eller Citrix, og så bare have tynde klienter ude istedet for en fysisk computer.
Så begynder man at spare meget tid i forbindelse med vedligeholdelse, og er der så et problem med en klienter, så for brugeren bare et nyt image.
Derudover har man også 100% kontrol over ens maskiner, for “computeren” forlader aldrig serverrummet.
Der er mulighed for at arbejde med shared grund image, således at image er låst af administratoren og alle arbejde i samme image, nå så man logger af, genstarter ens VDI og den bliver så automatisk nulstillet til “fabriksindstillinger”.
Der er også mulighed for at nogle bruger for deres egen VDI, som de selv kan administrere. Gå den i stykker ruller man bare en ny klient ud til brugeren, som de kan rode i.
Citrix Xendesktop virker på den måde at nå den tynde klienter starter op, starter den op med at kalde Citrix Xendesktop og for præsenteret en virtuel maskine hosted på en fælles server.
Citrix har også noget de kalder XenApp. I Citrix Xenapp arbejderalle brugere på en terminalserver eller flere i en farm, men med Xendesktop for hver medarbjeder sin egen virtuelle computer, og derved kan man ikke belaste systemet så meget at det gør det umuligt for de andre medarbejde at arbejde i deres setup.
Med f.eks. så Microsoft APP-V, kan man streame applikationer ud til ens VDI, og derved nøjes med et grundimage, hvor der er installeret basic tingende som alle brugere, og så have resten af sine applikationer liggende på sin APP-V server.
Der hvor APP-V adskiller sig fra Xenapp, er at programmerne kører på den maskine de bliver streamet til og ikke køres fra en central server. Igen en fordel da en bruger ikke kan belastede systemet så meget at det ødelægger de andres performence.
Jeg glæder mig til arbjede rigtigt meget med Citrix Xendesktop. Kontakt mig endelig for spørgsmål angående dette produkt.