Share via

need help creating a PS script to do full backups; when running the get-pssnappin windows.serverbackup I receive a PS snapin does not exsist

Jeff 21 Reputation points
2022-11-22T19:52:50.63+00:00

I am currently creating a script to backup my windows servers, but I am running into issues with the server backup snap-in. the error message i get is

get-pssnapin : No Windows PowerShell snap-ins matching the pattern 'windows.serverbackup' were found. Check the
pattern and then try the command again.
At line:1 char:1

  • get-pssnapin windows.serverbackup
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • CategoryInfo : InvalidArgument: (windows.serverbackup:String) [Get-PSSnapin], PSArgumentException
  • FullyQualifiedErrorId : NoPSSnapInsFound,Microsoft.PowerShell.Commands.GetPSSnapinCommand

my main objective is to create a PS script that does a onetime backup, using task scheduler to run it at certian intervals

Windows for business | Windows Server | Devices and deployment | Set up, install, or upgrade
Windows for business | Windows Server | User experience | PowerShell
0 comments No comments

Answer accepted by question author

  1. Rich Matheisen 48,116 Reputation points
    2022-11-22T22:25:23.053+00:00

    Snap-ins are passe, to say the least.

    I think you're looking for the WindowsServerBackup module: windowsserverbackup

    Was this answer helpful?

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.