Comments (13)
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.
Please, see #67
from plexbackup.
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.
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.
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.
So, have you tried the x86 switch?
from plexbackup.
not yet. I'll try it and let you know.
from plexbackup.
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.
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.
this worked:
runas /machine:x86 /trustlevel:0x20000 "C:\Program Files (x86)\Plex\Plex Media Server\Plex Media Server.exe"
from plexbackup.
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.
Cool. I think I will add a switch for this since it happens to people once in a while.
from plexbackup.
Added a workaround in https://github.com/alekdavis/PlexBackup/releases/tag/v2.1.7.
from plexbackup.
Related Issues (20)
- issue with backup HOT 5
- Cannot import run-time settings from default configuration file (if any). Invalid JSON primitive: Skip. HOT 1
- Validation error. Backup version does not match HOT 3
- Can't start Plex after backup HOT 6
- After backup completes getting an error when the script attempts to start Plex HOT 3
- Plex Media Server Not Restarting HOT 1
- Email Notification Not Working HOT 2
- Plex Backup Failing-Nothing Changed HOT 16
- question/enhancement HOT 4
- Only receiving the error "Error processing dependencies. You cannot call a method on a null-valued expression." HOT 6
- Fix typo in log message HOT 1
- Add support for PowerShell 7.
- RUNAS ERROR: Unable to run ... 87: The parameter is incorrect. HOT 2
- Plex Backup Fails Through Task Scheduler (Win 10 Pro) HOT 2
- Create a workaround for the error 87: The parameter is incorrect HOT 1
- Restore didn
- Restore didn't work too well for me HOT 16
- Sub folders not being created by backup process HOT 5
- Add the option to exclude Cache folder HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plexbackup.