Git Product home page Git Product logo

Comments (13)

AKA-Axanar avatar AKA-Axanar commented on July 3, 2024 1

yes.
that is exactly what I tried last night. I ran the full script using that change and the backup worked fine with no error.

from plexbackup.

alekdavis avatar alekdavis commented on July 3, 2024

Please, see #67

from plexbackup.

AKA-Axanar avatar AKA-Axanar commented on July 3, 2024

I tried this from #67
runas /machine:amd64 /trustlevel:0x20000 "$Script:PlexServerPath"

and I got this error instead:
RUNAS ERROR: Unable to run - C:\Program Files (x86)\Plex\Plex Media Server\Plex Media Server.exe
216: This version of C:\Program Files (x86)\Plex\Plex Media Server\Plex Media Server.exe is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher.

Is the backup actually good despite subdirs 1 and 4 being empty? If so I'll I'll ignore the error. A while back I let Windows "upgrade" from Win 10 to Win 11. What a mistake that was. I hate Win 11. I am backing up the Plex data so I can reinstall with Win 10 instead of Win 11.

Thank you for making this script. It's very well written and is very useful to a lot of people.

from plexbackup.

alekdavis avatar alekdavis commented on July 3, 2024

Thanks. In 99% of cases folders 1 and 4 should be empty, so if you see the SUCCESS message, you should be fine, except that the PMS could not get started. Btw, I am running out-of-the box script on Windos 11 Pro and it works fine, so I'm wondering what is wrong on your system. Have you tried the /machine:x86 parameter instead of amd64?

from plexbackup.

AKA-Axanar avatar AKA-Axanar commented on July 3, 2024

the PC is an AMD so I didn't try /machine:x86. The PC is a little Beelink Ser 3 mini PC. I have Kodi on it to watch media on my TV for myself and I have Plex on it for my friends. Hopefully I can get the data for both restored to a Win 10 install.

from plexbackup.

alekdavis avatar alekdavis commented on July 3, 2024

So, have you tried the x86 switch?

from plexbackup.

AKA-Axanar avatar AKA-Axanar commented on July 3, 2024

not yet. I'll try it and let you know.

from plexbackup.

AKA-Axanar avatar AKA-Axanar commented on July 3, 2024

with /machine:x86 it gave me the help for runas.

PS D:> .\PlexBackup.ps1
RUNAS USAGE:

RUNAS [ [/noprofile | /profile] [/env] [/savecred | /netonly] ]
/user: program

RUNAS [ [/noprofile | /profile] [/env] [/savecred] ]
/smartcard [/user:] program

RUNAS [ [/machine:] ] /trustlevel: program

/noprofile specifies that the user's profile should not be loaded.
This causes the application to load more quickly, but
can cause some applications to malfunction.
/profile specifies that the user's profile should be loaded.
This is the default.
/env to use current environment instead of user's.
/netonly use if the credentials specified are for remote
access only.
/savecred to use credentials previously saved by the user.
/smartcard use if the credentials are to be supplied from a
smartcard.
/user should be in form USER@DOMAIN or DOMAIN\USER
/showtrustlevels displays the trust levels that can be used as arguments
to /trustlevel.
/trustlevel should be one of levels enumerated
in /showtrustlevels.
/machine specifies the machine architecture of the process.
should be one of x86|amd64|arm|arm64.
program command line for EXE. See below for examples

Examples:

runas /noprofile /user:mymachine\administrator cmd
runas /profile /env /user:mydomain\admin "mmc %windir%\system32\dsa.msc"
runas /env /user:[email protected] "notepad "my file.txt""

NOTE: Enter user's password only when prompted.
NOTE: /profile is not compatible with /netonly.
NOTE: /savecred is not compatible with /smartcard.

from plexbackup.

alekdavis avatar alekdavis commented on July 3, 2024

That's weird. I suspect there is something wrong in the command-line parameters. The /machine option is a misnomer here. It does not indicate the OS architecture. It is supposed to specify the architecture of the app: amd64 for 64-bit apps, and x86 for 32-bit apps. AFAIK, PMS has a 32-bit and a 64-bit version, so depending on the version you are using, one of these two flags should work. If I were to troubleshoot, I would've stopped PMS, and try to launch it from command line manually (and play with the flags):

runas /machine:amd64 /trustlevel:0x20000 "PATH TO PMS EXE"

or

runas /machine:x86 /trustlevel:0x20000 "PATH TO PMS EXE"

from plexbackup.

AKA-Axanar avatar AKA-Axanar commented on July 3, 2024

this worked:
runas /machine:x86 /trustlevel:0x20000 "C:\Program Files (x86)\Plex\Plex Media Server\Plex Media Server.exe"

from plexbackup.

alekdavis avatar alekdavis commented on July 3, 2024

So, if you change this line:

runas /trustlevel:0x20000 "$Script:PlexServerPath"

to

runas /machine:x86 /trustlevel:0x20000 "$Script:PlexServerPath"

it should work, too.

from plexbackup.

alekdavis avatar alekdavis commented on July 3, 2024

Cool. I think I will add a switch for this since it happens to people once in a while.

from plexbackup.

alekdavis avatar alekdavis commented on July 3, 2024

Added a workaround in https://github.com/alekdavis/PlexBackup/releases/tag/v2.1.7.

from plexbackup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.