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.
Posted: 2021-06-29 02:26 AM . Last Modified: 2024-03-13 04:17 AM
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
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
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
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
Link copied. Please paste this link to share this article on your social media post.
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.
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
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
Link copied. Please paste this link to share this article on your social media post.
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
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
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
Link copied. Please paste this link to share this article on your social media post.
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.