Auto Upgrade Script...
 
Notifications
Clear all

Auto Upgrade Script Fails?

3 Posts
2 Users
0 Reactions
847 Views
Posts: 11
Topic starter
(@accuraty)
Active Member
Joined: 7 years ago

I have upgraded before using the Powershell script. I can't seem to spot what I am missing or doing wrong. Anyone have an insight? The server is not in a domain. It is a single, stand-alone server running SolidCP v 1.4.2 solo (no multi-server).

First time thru I was running on PowerShell Core 6.2.3 and obviously that was bad (buffersize and dozens of other errors). So I switched to the regular, installed version of PowerShell on Windows Server 2016, "Windows PowerShell (x86)", again running As Admin. Fails as you see below.

Help or advice? Thanks in advance!

Get-ChildItem : Cannot retrieve the dynamic parameters for the cmdlet. Retrieving the COM class factory for component with CLSID {} failed due to the following error: 80040154 Class not registered ().

2 Replies
Posts: 11
Topic starter
(@accuraty)
Active Member
Joined: 7 years ago

WTH? This was not logical (for me) or easy to figure out. But I finally Googled and stumbled on this. I hope this helps someone else. Running the "SysNative" version (instance?) of powershell.exe worked. Details here.
https://stackoverflow.com/questions/40031846/new-webbinding-cannot-retrieve-the-dynamic-parameters-for-the-cmdlet

So after downloading the zip, extracting, unblocking. Get to any command line and specifically run:

C:WindowsSysNativeWindowsPowerShellv1.0powershell.exe

To get the correct SysNative powershell version for your system. Then CD to the folder where you extracted the .ps1 file and run it like normal.

I hope this helps someone else!

Reply
Posts: 1995
Admin
(@m-tiggelaar)
Noble Member
Joined: 9 years ago

Thats indeed a strange issue/solution.

Glad you figured it out tho.

Reply
Share: