When you plug in a fortiextender , it will take the default route by putting its distance as 5

To change this back to secondary , change the Distance of the interface to over the default ( 10) or reduce the primary distance to under 5

GD Star Rating
loading...
GD Star Rating
loading...

If you setup a Forward for a user to an external user , and a external party email’s that user , then this counts as external to external which is an external Relay which is not allowed most of the time due to spam.

In order f0r this to work in Mimecast you would need to add the external recipient in this case ‘[email protected]’ to the ‘Relay’ profile group in administration> directories> profile groups, as the below default blocked sender policy is set to ‘take no action’ on this group and allows an external sender to send to an external recipient as long as the recipient is in this relay profile group. 

GD Star Rating
loading...
GD Star Rating
loading...

Recently had a customer where the PC would install windows via MDT but Litetouch would never appear to install the applications

A closer look and we deployed a new AV Sentinelone which did not like the below script

I changed the deployment of Sentinelone  to after MDT had finished and it fixed it

image

 

GD Star Rating
loading...
GD Star Rating
loading...

System.IO.IOException: Unable to read data from the transport connection: net_io_connectionclosed. at System.Net.Mail.SmtpReplyReaderFactory.ProcessRead(Byte[] buffer, Int32 offset, Int32 read, Boolean readLine) at System.Net.Mail.SmtpReplyReaderFactory.ReadLines(SmtpReplyReader caller, Boolean oneLine) at System.Net.Mail.SmtpReplyReaderFactory.ReadLine(SmtpReplyReader caller) at System.Net.Mail.CheckCommand.Send(SmtpConnection conn, String& response) at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, Boolean allowUnicode, SmtpFailedRecipientException& exception) at System.Net.Mail.SmtpClient.Send(MailMessage message)

Need to change ASP to use TLS 1.2 as Microsoft of EOL TLS1.1 and rejecting emails occasionally to remind you of this! 

Upgrading the .net Framework to 4.6 and over will fix this

This the web.config file for this :  

<system.web>
<compilation targetFramework=”4.6″/> <!– Changed framework from Under 4.5 to 4.6 or 4.7 –>
<!–Added this httpRuntime –>
<httpRuntime targetFramework=”4.6″ />
</system.web>

GD Star Rating
loading...
GD Star Rating
loading...

Trying to change a zerto VM’s recovery network however the new Network I created in vmware wasn’t showing

If you use Zerto Cloud Manager you will need to add the Resource to the Organisations Cloud Resources

GD Star Rating
loading...
GD Star Rating
loading...

After upgrading a RDP Broker server ( and webgateway )  from 2012 R2 – 2019 and then the session host ,  trying to connect to the Collection with the file from the web interface I was greeted by the error

“the remote resource can’t be reached”

The collection only contained one session host , testing out the connection to that session host individually worked

 

I then tested the RDP file downloaded from webaccess again and it worked which means the sessionhost seemed to need more time to register or reboot the servers again!

GD Star Rating
loading...
GD Star Rating
loading...

Recently I was using the script here to upload a VHD to Azure for Deployment to a VM

Upon the upload or the file

New-AzVM -VM $vm -ResourceGroupName $resourceGroup -Location $location

i got

ErrorCode: InvalidParameter
ErrorMessage: Required parameter ‘storageProfile’ is missing (null).
ErrorTarget: storageProfile
StatusCode: 400
ReasonPhrase: Bad Request

The script needs changing , I removed the need for the Azure Image and it does it directly from the uploaded VHD

 

# Provide values for the variables
$resourceGroup = 'myResourceGroup'
$location = 'EastUS'
$storageaccount = 'mystorageaccount'
$storageType = 'Standard_LRS'
$containername = 'mycontainer'
$localPath = 'C:\Users\Public\Documents\Hyper-V\VHDs\generalized.vhd'
$vmName = 'myVM'
$vhdName = 'myUploadedVhd.vhd'
$diskSizeGB = '128'
$subnetName = 'mySubnet'
$vnetName = 'myVnet'
$ipName = 'myPip'
$nicName = 'myNic'
$nsgName = 'myNsg'
$ruleName = 'myRdpRule'
$computerName = 'myComputerName'
$vmSize = 'Standard_DS1_v2'

# Get the username and password to be used for the administrators account on the VM. 
# This is used when connecting to the VM using RDP.

$cred = Get-Credential

# Upload the VHD
New-AzResourceGroup -Name $resourceGroup -Location $location
New-AzStorageAccount -ResourceGroupName $resourceGroup -Name $storageAccount -Location $location `
	-SkuName $storageType -Kind "Storage"
$urlOfUploadedImageVhd = ('https://' + $storageaccount + '.blob.core.windows.net/' + $containername + '/' + $vhdName)
Add-AzVhd -ResourceGroupName $resourceGroup -Destination $urlOfUploadedImageVhd `
    -LocalFilePath $localPath

# Note: Uploading the VHD may take awhile!

# Create OS managed disk
$SAId = (Get-AzStorageAccount -ResourceGroupName $RGName -Name $SAName).Id
$OSDiskConfig = New-AzDiskConfig -AccountType "$storageType -Location $location -DiskSizeGB $diskSizeGB `
    -SourceUri $urlOfUploadedImageVhd -StorageAccountId $storageaccount -CreateOption "Import"
$OSDisk = New-AzDisk -DiskName $vhdName -Disk $OSDiskConfig -ResourceGroupName $resourceGroup
 
# Create the networking resources
$singleSubnet = New-AzVirtualNetworkSubnetConfig -Name $subnetName -AddressPrefix 10.0.0.0/24
$vnet = New-AzVirtualNetwork -Name $vnetName -ResourceGroupName $resourceGroup -Location $location `
	-AddressPrefix 10.0.0.0/16 -Subnet $singleSubnet
$pip = New-AzPublicIpAddress -Name $ipName -ResourceGroupName $resourceGroup -Location $location `
    -AllocationMethod Dynamic
$rdpRule = New-AzNetworkSecurityRuleConfig -Name $ruleName -Description 'Allow RDP' -Access Allow `
	-Protocol Tcp -Direction Inbound -Priority 110 -SourceAddressPrefix Internet -SourcePortRange * `
	-DestinationAddressPrefix * -DestinationPortRange 3389
$nsg = New-AzNetworkSecurityGroup -ResourceGroupName $resourceGroup -Location $location `
	-Name $nsgName -SecurityRules $rdpRule
$nic = New-AzNetworkInterface -Name $nicName -ResourceGroupName $resourceGroup -Location $location `
	-SubnetId $vnet.Subnets[0].Id -PublicIpAddressId $pip.Id -NetworkSecurityGroupId $nsg.Id
$vnet = Get-AzVirtualNetwork -ResourceGroupName $resourceGroup -Name $vnetName

# Start building the VM configuration
$vm = New-AzVMConfig -VMName $vmName -VMSize $vmSize

# Set the VM image as source image for the new VM
$vm = Set-AzVMOSDisk -VM $vm -ManagedDiskId $OSDisk.Id -CreateOption "Attach" -Windows

# Finish the VM configuration and add the NIC.
$vm = Set-AzVMOSDisk -VM $vm  -DiskSizeInGB $diskSizeGB -CreateOption FromImage -Caching ReadWrite
$vm = Set-AzVMOperatingSystem -VM $vm -Windows -ComputerName $computerName -Credential $cred `
	-ProvisionVMAgent -EnableAutoUpdate
$vm = Add-AzVMNetworkInterface -VM $vm -Id $nic.Id

# Create the VM
New-AzVM -VM $vm -ResourceGroupName $resourceGroup -Location $location

# Verify that the VM was created
$vmList = Get-AzVM -ResourceGroupName $resourceGroup
$vmList.Name
$NewVMConfig = Set-AzVMOSDisk -VM $NewVMConfig -ManagedDiskId $OSDisk.Id -CreateOption "Attach" -Windows
GD Star Rating
loading...
GD Star Rating
loading...