If you have a shellscript thats run okay from shell, but not will running from cron, run this command (This is what it looks like when cron run it)
/bin/sh -c "(export PATH=/usr/bin:/bin; /usr/local/bin/shellscript.sh)"
If you have a shellscript thats run okay from shell, but not will running from cron, run this command (This is what it looks like when cron run it)
/bin/sh -c "(export PATH=/usr/bin:/bin; /usr/local/bin/shellscript.sh)"
I have this error:
Moving VM “VDINAME” to “VDINAME” on “Storage” This operation cannot be performed because this VDI OpaqueRef:8d37bee1-f85b-fb22-e47e-1b8f48b68b84 is in use by some other operation – copy
When i was try moving a VM from from storage to another on XenServer. It was just because there was a DVD ISO mounted on the VM, when i Eject that one, the move was just running fine.
Example: If you want to log off user after 120 minutes of disconnect time. You can set this up though Powershell
ASNP Citrix.* set-BrokerDesktopGroup -name "Desktop Group Name" -OffPeakDisconnectTimeout 120 set-BrokerDesktopGroup -name "Desktop Group Name" -OffPeakExtendedDisconnectTimeout 120 set-BrokerDesktopGroup -name "Desktop Group Name" -PeakDisconnectTimeout 120 set-BrokerDesktopGroup -name "Desktop Group Name" -PeakExtendedDisconnectTimeout 120 set-BrokerDesktopGroup -name "Desktop Group Name" -OffPeakDisconnectTimeout 120 set-BrokerDesktopGroup -name "Desktop Group Name" -OffPeakExtendedDisconnectAction "shutdown" set-BrokerDesktopGroup -name "Desktop Group Name" -OffPeakExtendedDisconnectAction "shutdown" set-BrokerDesktopGroup -name "Desktop Group Name" -PeakDisconnectAction "shutdown" set-BrokerDesktopGroup -name "Desktop Group Name" -PeakExtendedDisconnectAction "shutdown" set-BrokerDesktopGroup -name "Desktop Group Name" -OffPeakDisconnectAction "shutdown"
If you want to change a desktop group logoff behavior, this is done by PowerShell.
To turn off shutdown af use:
ASNP Citrix.* Set-BrokerDesktopGroup -Name "Desktop Group Name" -ShutdownDesktopsAfterUse $FALSE
To turn on shutdown af use:
ASNP Citrix.* Set-BrokerDesktopGroup -Name "Desktop Group Name" -ShutdownDesktopsAfterUse $TRUE
If you need to get a list of names of you Desktop Groups, you can run this:
ASNP Citrix.* get-BrokerDesktopGroup | select Name
Today i should convert a machine with XenConvert to XenServer, but it come with these errors:
Failed to discover 1 of 2 volumes on the destination disk!
Enable Automount on windows server Enterprise edition and run Disk Management once to take effect
What i did to fix it was:
First enable automount
C:\> DiskPart DISKPART> automount enable DISKPART> exit
If it still not working try this:
cvhdmount -p 1 <VHD file path>
cvhdmount -e 1
Then try run XenConvert again.
This command will kill all instance from
ps aux | grep samba
kill $(ps aux | grep 'samba' | awk '{print $2}')
if you want to export all you mailboxes sizes to CSV/Excel, you can run this command in you powershell:
get-mailbox | get-mailboxstatistics | select-object displayname, itemcount, totalitemsize | export-csv c:\mailbox-size.txt
New-ReceiveConnector -Name RelayConnector -usage Custom -Bindings ’192.168.1.10:25′ -fqdn server.domain.com -RemoteIPRanges 192.168.1.20 -server MYEXCHANGESERVER -permissiongroups ExchangeServers -AuthMechanism ‘TLS, ExternalAuthoritative’
The easist way is just to run this command in powershell:
Where:
192.168.1.10:25 is the IP address of the Exchange server
192.168.1.20 is the ip of the clients how need access to relay
server.domain.com is you exchange server FQDN
MYEXCHANGESERVER is you exchange server hostname
To allow Citrix Receiver to used non secure http access, you need to first ofcouse install Citrix Receiver client.