Resetting Terminal Services to Administration mode remotely

R

Ron Bishop

Is there any way to reset a server Terminal Services to Administration mode
remotely??
Here is my problem....
Remote site has 3 W2k3 servers. Getting No license server available on 2 of
the systems when I try and access them via Terminal Services.
One server has Terminal Services Licensing installed. (I can access this
one) I have the Windows Server 2003 - Terminal Server Per User CAL Token
license..Type: Open Total 5 licenses. I also have one Retail Purchased
license. The other 2 servers were supposed to have been in Administration
mode, but a view of their event logs say the 120 day license has expired. (I
accessed the event log by connecting to the servers via the Manage app.)

Is there anyway to reset the other servers to Admin mode?? I cannot get
access via Terminal Services and the people at the remote site are not in
the office for a week.

Thanks......
 
D

Doug Hutchens [MS]

Ron,

Best guess is that these ts machines are in Per Device licensing mode. Try
changing the licensing mode of the terminal servers to Per User mode via
script. There is a WMI method to do this:

Win32_TerminalServiceSetting -> ChangeMode()

Per User Mode = 4

Since you have a license server installed; this would be your quickest route
to be able to connect to the remote ts machines. Then you can connect and
run optional windows components to remove "Terminal Server".
 
R

Ron Bishop

Thanks for the info Doug...
Would I use the WMIC.exe applet to do this?? If so, do I need to create a
script (VB??) to do this??

Doug Hutchens said:
Ron,

Best guess is that these ts machines are in Per Device licensing mode. Try
changing the licensing mode of the terminal servers to Per User mode via
script. There is a WMI method to do this:

Win32_TerminalServiceSetting -> ChangeMode()

Per User Mode = 4

Since you have a license server installed; this would be your quickest route
to be able to connect to the remote ts machines. Then you can connect and
run optional windows components to remove "Terminal Server".
--
Doug Hutchens [MS]

This posting is provided "AS IS" with no warranties, and confers no rights.



Ron Bishop said:
Is there any way to reset a server Terminal Services to Administration mode
remotely??
Here is my problem....
Remote site has 3 W2k3 servers. Getting No license server available on 2 of
the systems when I try and access them via Terminal Services.
One server has Terminal Services Licensing installed. (I can access this
one) I have the Windows Server 2003 - Terminal Server Per User CAL Token
license..Type: Open Total 5 licenses. I also have one Retail Purchased
license. The other 2 servers were supposed to have been in Administration
mode, but a view of their event logs say the 120 day license has
expired.
(I
accessed the event log by connecting to the servers via the Manage app.)

Is there anyway to reset the other servers to Admin mode?? I cannot get
access via Terminal Services and the people at the remote site are not in
the office for a week.

Thanks......
 
D

Doug Hutchens [MS]

Yes, a vbs script would work. Here is some local machine code - you would
need to change to execute remotely:

------
Dim Terminal
for each Terminal in
GetObject("winmgmts:{impersonationLevel=impersonate}").InstancesOf
("win32_TerminalServiceSetting")
if Terminal.LicensingType = 2 then

result = Terminal.ChangeMode(4)
end if
-------
I assume that wmic.exe would work also. I have never tried it remotely on a
machine. The alias would be RDTOGGLE

Hope this helps.
--
Doug Hutchens [MS]

This posting is provided "AS IS" with no warranties, and confers no rights.



Ron Bishop said:
Thanks for the info Doug...
Would I use the WMIC.exe applet to do this?? If so, do I need to create a
script (VB??) to do this??

Doug Hutchens said:
Ron,

Best guess is that these ts machines are in Per Device licensing mode. Try
changing the licensing mode of the terminal servers to Per User mode via
script. There is a WMI method to do this:

Win32_TerminalServiceSetting -> ChangeMode()

Per User Mode = 4

Since you have a license server installed; this would be your quickest route
to be able to connect to the remote ts machines. Then you can connect and
run optional windows components to remove "Terminal Server".
--
Doug Hutchens [MS]

This posting is provided "AS IS" with no warranties, and confers no rights.



Ron Bishop said:
Is there any way to reset a server Terminal Services to Administration mode
remotely??
Here is my problem....
Remote site has 3 W2k3 servers. Getting No license server available on
2
of
the systems when I try and access them via Terminal Services.
One server has Terminal Services Licensing installed. (I can access this
one) I have the Windows Server 2003 - Terminal Server Per User CAL Token
license..Type: Open Total 5 licenses. I also have one Retail Purchased
license. The other 2 servers were supposed to have been in Administration
mode, but a view of their event logs say the 120 day license has
expired.
(I
accessed the event log by connecting to the servers via the Manage app.)

Is there anyway to reset the other servers to Admin mode?? I cannot get
access via Terminal Services and the people at the remote site are not in
the office for a week.

Thanks......
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top