Tuesday, August 29, 2017

Powershell command to get the inventory for XenApp 6.0

Get-XAApplicationReport * | select DisplayName,FolderPath,Enabled,CommandLineExecutable, @{n="Servers";e={[string]::join("-", $_.ServerNames)}} | Export-Csv Inventory.csv

Sunday, August 20, 2017

Command to send email from Office 365

Command to send email from Office 365


 $EmailFrom = “myaccount@domain.com”

$EmailTo = “emailaddress@domain.com”

$Subject = “Test from O365 SMTP”

$Body = “Test from O365 SMTP Authentication”

$SMTPServer = “smtp.office365.com”

$SMTPClient = New-Object Net.Mail.SmtpClient($SmtpServer, 587)

$SMTPClient.EnableSsl = $true

$SMTPClient.Credentials = New-Object System.Net.NetworkCredential(“myaccount@domain.com”, “*****”);

$SMTPClient.Send($EmailFrom, $EmailTo, $Subject, $Body)

Tuesday, August 8, 2017

default.ica


default.ica

;
; ICA Override File
;
; Add ICA file settings that you want to be sent to client devices
; to this file.  Settings contained in this file override any
; settings generated by Delivery Services.
;

[WFClient]
Version=2
RemoveICAFile=yes
ProxyTimeout=30000
ProxyFavorIEConnectionSetting=Yes
ProxyUseFQDN=Off

[ApplicationServers]
Application=

[Application]
DesktopViewer-ForceFullScreenStartup=On
TransportDriver=TCP/IP
DoNotUseDefaultCSL=On
BrowserProtocol=HTTPonTCP
LocHttpBrowserAddress=!
WinStationDriver=ICA 3.0
ProxyTimeout=30000
AutologonAllowed=ON

[EncRC5-0]
DriverNameWin16=pdc0w.dll
DriverNameWin32=pdc0n.dll

[EncRC5-40]
DriverNameWin16=pdc40w.dll
DriverNameWin32=pdc40n.dll

[EncRC5-56]
DriverNameWin16=pdc56w.dll
DriverNameWin32=pdc56n.dll

[EncRC5-128]
DriverNameWin16=pdc128w.dll
DriverNameWin32=pdc128n.dll

[Compress]
DriverNameWin16=pdcompw.dll
DriverNameWin32=pdcompn.dll