Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

We Value Your Feedback!
Could you please spare a few minutes to share your thoughts on Cloud Connected vs On-Premise Services. Your feedback can help us shape the future of services.
Learn more about the survey or Click here to Launch the survey
Schneider Electric Services Innovation Team!

Unable to uninstall PCNS v2.2.3 from Hyper-V Windows 2008 R2

APC UPS Data Center & Enterprise Solutions Forum

Schneider, APC support forum to share knowledge about installation and configuration for Data Center and Business Power UPSs, Accessories, Software, Services.

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • APC UPS, Critical Power, Cooling and Racks
  • APC UPS Data Center & Enterprise Solutions Forum
  • Unable to uninstall PCNS v2.2.3 from Hyper-V Windows 2008 R2
Options
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
BillP
Administrator BillP Administrator
5060
voidstar_apc
Janeway voidstar_apc
196
Erasmus_apc
Sisko Erasmus_apc
112
Teken
Spock Teken
111
View All

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to APC UPS Data Center & Enterprise Solutions Forum
Solved
Anonymous user
Not applicable

Posted: ‎2021-06-29 02:26 AM . Last Modified: ‎2024-03-13 04:17 AM

0 Likes
4
838
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-29 02:26 AM . Last Modified: ‎2024-03-13 04:17 AM

Unable to uninstall PCNS v2.2.3 from Hyper-V Windows 2008 R2

Dear all

I need to install the PCNS v3.01 but to install it I need to uninstall the current installation which is at version 2.2.3 and is running on Hyper-V Windows Server 2008 R2 (Server Core i.e no GUI).

When I run cscript uninstall.vbs with administrator privileges nothing happens. Very strange. 

Has anyone encountered this before and how can I resolve it? Any help with this would be appreciated.

Thanks

Pierre

Labels
  • Labels:
  • UPS Management Devices & PowerChute Software
Reply

Link copied. Please paste this link to share this article on your social media post.

  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
Anonymous user
Not applicable

Posted: ‎2021-06-29 02:26 AM . Last Modified: ‎2024-03-13 04:17 AM

0 Likes
0
837
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-29 02:26 AM . Last Modified: ‎2024-03-13 04:17 AM

Hi Bill

Thanks for these detailed instructions. The reason I haven't installed PCNS 4.1 on our Hyper-V 2008 R2 servers was because I have the Hyper-V Powershell module absent from all our three servers. All I have present is the FailOverCluster Powershell module. I am now trying to find from where to find the Hyper-V PS module so as to install it on these servers and hopefully install PCNS 4.1 so as to properly shut down our Hyper-V hosts and Guest OS VMs in the event of a power failure.

Pierre

See Answer In Context

Reply

Link copied. Please paste this link to share this article on your social media post.

Replies 4
BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-06-29 02:26 AM . Last Modified: ‎2024-03-13 04:17 AM

0 Likes
0
837
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-29 02:26 AM . Last Modified: ‎2024-03-13 04:17 AM

Hi,

Follow these instructions 

Please edit install.vbs and replace the subroutine IsRootUser()  - lines 253 to 288 - with the updated code below.

Sub IsRootUser ()
    Dim strUserName, strComputerName, strUserDomain, strAdminPath, objAdminInfo, strAdminPath2
    Dim objNetwork, objAdminGroup, objAdminGroup2
    Dim objWMIService, colAccounts, objAccount
    Dim bResult
    bResult = False
    
    Set objNetwork = CreateObject("Wscript.Network")
    strUserName = objNetwork.UserName
    strComputerName = objNetwork.ComputerName
    strUserDomain = objNetwork.UserDomain

    Set objWMIService = GetObject("winmgmts:\\" & strComputerName & "\root\cimv2")
    Set colAccounts = objWMIService.ExecQuery _
        ("Select * From Win32_Group Where Domain = '" & strComputerName & "' AND SID = 'S-1-5-32-544'")
If (strComputerName = strUserDomain) Then
    For Each objAccount In colAccounts
        strAdminPath = "WinNT://" & strComputerName & "/" & objAccount.Name
        Set objAdminGroup = GetObject(strAdminPath)
        If objAdminGroup.PropertyCount > 0 Then
            Dim strMem
            For Each strMem In objAdminGroup.Members
                If ( Lcase(strMem.Name) = LCase(strUserName) ) Then
                    bResult = True
                End If
            Next
        Else
            WScript.StdOut.WriteLine "[Error]: Connecting to the local Administrators group on " & strComputerName & " failed."
        End If
    Next
Else
    strAdminPath2 = "WinNT://" & strUserDomain & "/Domain Admins,group"
    Set objAdminGroup2 = GetObject(strAdminPath2)
    If objAdminGroup2.PropertyCount > 0 Then
        Dim strMem2
        For Each strMem2 In objAdminGroup2.Members

            If ( LCase(strMem2.Name) = LCase(strUserName) ) Then
                bResult = True
            End If
        Next
    Else
        WScript.StdOut.WriteLine "[Error]: Connecting to the Administrators group on Domain " & strUserDomain & " failed."
    End If

    If (bResult <> True) Then
        WScript.StdOut.WriteLine "[Error]: " & WScript.ScriptName & " must be run with administrator privileges!"
        CancelUninstallation
    End If
End If
    Set objNetwork = Nothing
    Set objAdminGroup = Nothing
End Sub

You should now be able to uninstall PCNS 2.2.3 on Windows 2008 Hyper-V Server Core. 

Reply

Link copied. Please paste this link to share this article on your social media post.

Anonymous user
Not applicable

Posted: ‎2021-06-29 02:26 AM . Last Modified: ‎2024-03-13 04:17 AM

0 Likes
0
837
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-29 02:26 AM . Last Modified: ‎2024-03-13 04:17 AM

Hi Bill

Thanks for your reply. I replaced the subroutine with the one you sent me and still the uninstall doesn't work. It says attempting to start script...... and does nothing.

Regards

Pierre

Reply

Link copied. Please paste this link to share this article on your social media post.

BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-06-29 02:26 AM . Last Modified: ‎2024-03-13 04:17 AM

0 Likes
0
837
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-29 02:26 AM . Last Modified: ‎2024-03-13 04:17 AM

Hi,

You will need to remove PCNS manually by editing the system registry. Please be aware that if you mistakenly edit a file not listed below you may cause the system to not run properly and it will need to be restored or rebuilt to correct the issue.

The steps below are base on the system being 64 bit.

1 - Stop PowerChute Service

From command prompt type net stop pcns1

 

2 - Open registry editor

From command prompt type c:\windows\regedit.exe

 

3 - Back up the registry

Once the registry editor is launched click on the Computer then go to file – export and save the file to a place where it can be access if it is needed to restore. 

 

4 – Click on HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\

Delete the APC folder

 

5 - Click on HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services

Delete the PCNS1 folder

 

6 - Click on HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall

Delete the PowerChute Network Shutdown folder

 

7 - Close the registry editor

8 – cd to C:\Program Files (x86)\

Delete the APC directory

9 - Reboot the system

10 - Install PCNS 4.1 it can be downloaded here http://www.apc.com/an/en/tools/download/software_comp.cfm?sw_sku=SFPCNS41-V

 

Reply

Link copied. Please paste this link to share this article on your social media post.

Anonymous user
Not applicable

Posted: ‎2021-06-29 02:26 AM . Last Modified: ‎2024-03-13 04:17 AM

0 Likes
0
838
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-29 02:26 AM . Last Modified: ‎2024-03-13 04:17 AM

Hi Bill

Thanks for these detailed instructions. The reason I haven't installed PCNS 4.1 on our Hyper-V 2008 R2 servers was because I have the Hyper-V Powershell module absent from all our three servers. All I have present is the FailOverCluster Powershell module. I am now trying to find from where to find the Hyper-V PS module so as to install it on these servers and hopefully install PCNS 4.1 so as to properly shut down our Hyper-V hosts and Guest OS VMs in the event of a power failure.

Pierre

Reply

Link copied. Please paste this link to share this article on your social media post.

Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of