VeeamON 2024 - Use Code "COMMUNITY10" for 10% Off!
Hi Everyone, I'm sharing the script to collect the latest Malware Detection logs from specific lists of Veeam Backup servers in their default directory as the attachment with the server name at the end.When there is no new malware detection log file generated on the day, then no email will be sent out.You can update the $Servers and the $ParamSendmailMessage accordingly to suit your needs, as well as the CSS styling.$Servers = 'VBR01', 'BACKUP01', 'BKP-SVR', 'VBRSVR02'$LocalIPAddress = (Resolve-DnsName -Name $ENV:COMPUTERNAME | Where-Object { $_.Type -eq 'A' } | Select-Object -ExpandProperty IPAddress) -join ', '$Filter = '*.LOG'$paramSendMailMessage = @{ From = "$ENV:COMPUTERNAME@$env:userdnsdomain" To = 'your.email@veeam.com' Subject = "Malware report summary as of $(Get-Date -Format 'F')" SmtpServer = 'smtp.domain.com' BodyAsHtml = $true Priority = 'High'}$HtmlHead = @"<style> body { font-family: Calibri; }
Hi Everyone, I’m sharing this script to find where the Veeam Agent is running in the AD domain.It uses ADSI so there is no need for the Active Directory module installation.You can change the first two lines to suit your needs in finding some other resources and the service name to check the status as well.$SPNKeyword = 'VeeamAgentWindows'$ServiceKeyword = 'Veeam' Try { $adsiSearcher = [adsisearcher]"(&(objectCategory=computer)(servicePrincipalName=*$($SPNKeyword)*))" $propList = 'CanonicalName', 'description', 'name', 'operatingSystem', 'ServicePrincipalName' ForEach ($prop in $propList) { [void]$adsiSearcher.PropertiesToLoad.Add($prop) } $adsiSearcher.FindAll() | ForEach-Object { Write-Host "Processing $($_.Properties['name'][0]) " -ForegroundColor Yellow [PSCustomObject]([ordered]@{ Name = $_.Properties['name'][0] Description = $_.Properties['description'][0] OperatingSystem = $_.Properties['operatingSystem'][0] IPAddresses
Hi Folks, I’m sharing a script to remotely check the VBR Repo disk size.Invoke-Command -ComputerName VBR1-VM, BKPSVR1, VBRSVR2 -ScriptBlock { Get-VBRBackupRepository | ForEach-Object { $container = $_.GetContainer() $_ | Select-Object -Property ` Name, @{ n = 'TotalSpace'; e = { [Math]::Round($container.CachedTotalSpace.InMegabytes / 1024, 1) } }, @{ n = 'FreeSpace'; e = { [Math]::Round($container.CachedFreeSpace.InMegabytes / 1024, 1) } } }} | Select-Object -Property PSComputerName, Name, TotalSpace, FreeSpace Hope this can be helpful for you, as the script can also be used to remotely execute any command remotely. This is the limitations of the command you can execute remotely: https://learn.microsoft.com/en-us/powershell/scripting/learn/remoting/ps-remoting-second-hop?view=powershell-7.3#cons-1
Hi Folks,I’m trying to follow the below to create the XFS partition for the hardened Linux repo using article:https://helpcenter.veeam.com/docs/backup/vsphere/backup_repository_block_cloning.html?ver=120#configuring-a-linux-repository and the Step #1 throws me some warning or error:repouser@BKPSVR01:~$ sudo mkfs.xfs -b size=4096 -m reflink=1,crc=1 /dev/sdb -flog stripe unit (1048576 bytes) is too large (maximum is 256KiB)log stripe unit adjusted to 32KiBmeta-data=/dev/sdb isize=512 agcount=32, agsize=28672000 blks = sectsz=512 attr=2, projid32bit=1 = crc=1 finobt=1, sparse=1, rmapbt=0 = reflink=1 bigtime=0 inobtcount=0data = bsize=4096 blocks=917504000, imaxpct=5 = sunit=256 swidth=256 blksnaming =version 2 bsize=4096 ascii-ci=0, ftype=1log =internal log bsize=4096 blocks=44
Hi Folks, I’m sharing a snippet of code which can help you in restarting some services in multiple remote computers:$ServiceName = 'Veeam'$Path = "$([System.Environment]::GetFolderPath("Desktop"))\Servers.txt"Get-Content -Path $Path | ForEach-Object { Write-Host "Processing $($_)" Get-Service -Name "*$($ServiceName)*" -ComputerName $_ | Where-Object { ($_.Status -eq 'Stopped') -and ($_.StartType -eq 'Automatic') } | Start-Service -Verbose} Hope this can help you in performing the start and stop of the services that you may need.
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.