Windows 10: Any Powershell Guru's out there?

Discus and support Any Powershell Guru's out there? in Windows 10 Support to solve the problem; Having trouble with a backup script for Veeam which is supposed to backup all my VM's and then email a report. After a bit of tweaking the script... Discussion in 'Windows 10 Support' started by veldthui, Dec 8, 2017.

  1. veldthui Win User

    Any Powershell Guru's out there?


    Having trouble with a backup script for Veeam which is supposed to backup all my VM's and then email a report.
    After a bit of tweaking the script works as far as the backup goes and backs up all the VM's to my Synology NAS.

    Trouble I am having is that it will not send the email report. The last bit of the script looks like this

    Code: { $Message = New-Object System.Net.Mail.MailMessage $EmailFrom, $EmailTo $Message.Subject = $EmailSubject $Message.IsBodyHTML = $True $message.Body = $MesssagyBody | ConvertTo-Html -head $style | Out-String $SMTP = New-Object Net.Mail.SmtpClient($SMTPServer) $SMTP.Send($Message) }[/quote] If I run this in the PowerShell ISE windowed interface all it does is output the above to the console and does not send the email.
    Do I just remove the curly brackets? I would have thought it should have run with the curly brackets anyway.
    This is not a script I wrote but one I have adapted to my system but the bottom part said not to change things past a certain point.

    Thanks.

    :)
     
    veldthui, Dec 8, 2017
    #1
  2. Sina Andi Win User

    Output audio to multiple devices in Windows 10

    Guru,

    I do not see any of the below

    "Wave Out Mix", "Mono Mix" or "Stereo Mix"

    This is a fresh install.

    Any idea?
     
    Sina Andi, Dec 8, 2017
    #2
  3. Dictionary word information missing-E6220c

    Seems like this problem is still unresolved. Any guru out there can help? Or can the Nokia corporates answer this themselves?
     
    whenissued, Dec 8, 2017
    #3
  4. Bastet Win User

    Any Powershell Guru's out there?

    Until someone more qualified in using powershell scripts posts, my thoughts would be that you need to enter the details like from email address, to address, email subject, smtp server details & message contents/body rather than what’s written.
     
    Bastet, Dec 9, 2017
    #4
  5. veldthui Win User
    That is all there above this part. The Subject, To, and From address are all stored in variables. The message itself is built up as each VM is backed up and says where it succeeded or failed.
     
    veldthui, Apr 4, 2018
    #5
Thema:

Any Powershell Guru's out there?

Loading...
  1. Any Powershell Guru's out there? - Similar Threads - Powershell Guru's

  2. Assigning a Manager with PowerShell Graph – Manager Not Found

    in Windows 10 Gaming
    Assigning a Manager with PowerShell Graph – Manager Not Found: Hi everyone,We are currently refactoring our PowerShell scripts to align with Microsoft's recommended standards. In our script that creates new users in Azure Active Directory AAD via Microsoft Graph, we’re having trouble assigning a manager to a new user.Whether we try using...
  3. Assigning a Manager with PowerShell Graph – Manager Not Found

    in Windows 10 Software and Apps
    Assigning a Manager with PowerShell Graph – Manager Not Found: Hi everyone,We are currently refactoring our PowerShell scripts to align with Microsoft's recommended standards. In our script that creates new users in Azure Active Directory AAD via Microsoft Graph, we’re having trouble assigning a manager to a new user.Whether we try using...
  4. Was mache ich wenn in der PowerShell Befehle fehlen?

    in Windows 10 Gaming
    Was mache ich wenn in der PowerShell Befehle fehlen?: Hallöchen,meine PowerShell verweigert den Dienst. Computerverwaltung Lokal Admin:Timeout bei der Namensauflösung für den Namen t-ring-fdv2.msedge.net, nachdem keiner der konfigurierten DNS-Server geantwortet hat. Ereignis-ID:1024Ok habe bei Microsoft:...
  5. Was mache ich wenn in der PowerShell Befehle fehlen?

    in Windows 10 Software and Apps
    Was mache ich wenn in der PowerShell Befehle fehlen?: Hallöchen,meine PowerShell verweigert den Dienst. Computerverwaltung Lokal Admin:Timeout bei der Namensauflösung für den Namen t-ring-fdv2.msedge.net, nachdem keiner der konfigurierten DNS-Server geantwortet hat. Ereignis-ID:1024Ok habe bei Microsoft:...
  6. Windows PowerShell Error 80070002

    in Windows 10 Gaming
    Windows PowerShell Error 80070002: I am once again back for some Microsoft wisdom!I am trying to push out updates to my users and have a small few that are showing the error "Internal Windows PowerShell error. Loading managed Windows PowerShell failed with error 80070002."Additionally when I remote into the...
  7. Windows PowerShell Error 80070002

    in Windows 10 Software and Apps
    Windows PowerShell Error 80070002: I am once again back for some Microsoft wisdom!I am trying to push out updates to my users and have a small few that are showing the error "Internal Windows PowerShell error. Loading managed Windows PowerShell failed with error 80070002."Additionally when I remote into the...
  8. Powershell command execution in the background

    in Windows 10 Gaming
    Powershell command execution in the background: Hi,We can see powershell transcript generated however how can we find what process triggered that execution? It seems to be generated hourly. What can be seen in the transcript is that it is running "PS>Get-Process Select-Object -Property ProcessName"The transcript output as...
  9. Powershell command execution in the background

    in Windows 10 Software and Apps
    Powershell command execution in the background: Hi,We can see powershell transcript generated however how can we find what process triggered that execution? It seems to be generated hourly. What can be seen in the transcript is that it is running "PS>Get-Process Select-Object -Property ProcessName"The transcript output as...
  10. Newbie to PowerShell (need step by step assistance from a guru)

    in Windows 10 Network and Sharing
    Newbie to PowerShell (need step by step assistance from a guru): I am an IT admin at my company but I have never used PowerShell and I have no clue where to begin. I’m hoping someone smart out there could help me, maybe even do a remote session to show me the ropes some weekend. I need to run some reports. 1) Need a report showing all...