Terminal Services test

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
invisik
Posts: 34
Joined: Mon Jan 15, 2007 10:35 pm

Post by invisik »

Hi,

I'm trying to run tscheck from a Windows 2000 SP4 host and I am getting

ScriptRes:Bad:Access is denied.

My command line is: tscheck -host:192.168.1.98 (the ip of the terminal server)

Any suggestions?

Thanks.

-m
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

invisik wrote:I'm trying to run tscheck from a Windows 2000 SP4 host and I am getting
ScriptRes:Bad:Access is denied.
My command line is: tscheck -host:192.168.1.98 (the ip of the terminal server)
You should specify appropriate user name and password, like:
tscheck -host:192.168.1.98 -user:your_username -password:your_password
Quote:
http://www.ks-soft.net/cgi-bin/phpBB/vi ... php?t=3586
=====================
There is 1 mandatory parameter:
- host:<hostname>
and 2 optional parameters:
-user:<user_name>
-password:password
=====================

Regards,
Max
invisik
Posts: 34
Joined: Mon Jan 15, 2007 10:35 pm

Post by invisik »

Ok, I had done that as well. Sorry for not including it before, but I thought there was some functionality even without a login specified. Here's the results.

tscheck -host:192.168.1.98 -user:mattj -password:thepassword
ScriptRes:Bad:A required privilege is not held by the client.; Access is denied.

The error message is returned quickly, it is not waiting 2 minutes like the other poster had mentioned theirs was. Thanks.

-m
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

invisik wrote:I thought there was some functionality even without a login specified.
In case username/password are not specified, tscheck is trying to connect to terminal service using logged in user credentials.
invisik wrote:tscheck -host:192.168.1.98 -user:mattj -password:thepassword
ScriptRes:Bad:A required privilege is not held by the client.; Access is denied.
Could you provide more information please?
- What Windows is installed on the Terminal Service machine?
- What Windows is installed on the machine, where you are trying to execute tscheck.exe?
- Are you trying to connect to the Microsoft Terminal Service or to the Citrix Terminal Service?

Regards,
Max
invisik
Posts: 34
Joined: Mon Jan 15, 2007 10:35 pm

Post by invisik »

Hi,

I've tried against Windows 2000 SP4, Windows 2003 and Windows 2003 SP1 machines.

The testing machine is Windows 2000 SP4 and I am running it from a command prompt.

Microsoft Terminal Services. Some are Remote Administration mode and some are Application mode.

Thanks.

-m
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

invisik wrote:The testing machine is Windows 2000 SP4 and I am running it from a command prompt.
There is one requirement for Windows 2000. You should grant "Act as part of the operating system" privilege to the logged on user. Please note, you should grant this privilege not for the user you specify as -user: paremeter, but for the user, that executes tscheck.exe process (for the user, you are already logged in). You may assign "Act as part of the operationg system" for certain user using "Local Policies" applet ("Start" > "Run" > "Secpol.msc" > "Security Settings" > "User Rights Assignment" > "Act as part of the operating system"). Probaly, you will have to restart machine after applying changes.

Regards,
Max
invisik
Posts: 34
Joined: Mon Jan 15, 2007 10:35 pm

Post by invisik »

Yes, I get "ScriptRes:OK:" now as a result....

Thanks!

-m
invisik
Posts: 34
Joined: Mon Jan 15, 2007 10:35 pm

Post by invisik »

Ok, give me a hint here. I can test servers on my LAN successfully, but I cannot test any over the internet. I get "The RPC Server is unavailable".. I've tried by hostname and IP address, username with the domain and without. I've watched my firewall logs and nothing is shown as blocked during the test........

Thanks for any ideas. I am testing Application Mode and Remote Administration mode terminal servers out there.

-m
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

invisik wrote:I can test servers on my LAN successfully, but I cannot test any over the internet. I get "The RPC Server is unavailable"..
Unlike Remote Desktop and MS Terminal service client, tscheck.exe does not use RDP protocol to access remote Terminal services, it uses "Terminal Services API", that requires additional services started on the target machine. IMHO, such services is not accesible thru the internet. The solution is to install RMA on one of remote remote servers, an perform Shell Script, that executes tscheck.exe, by RMA, to check local (local for RMA) terminal services. To make it work, you should copy tschek.exe into the folder, where RMA is installed on remote machine.

Regards,
Max
invisik
Posts: 34
Joined: Mon Jan 15, 2007 10:35 pm

Post by invisik »

Hi,

I did get it working. Must put tscheck.exe on the server that has the RMA loaded and run against local servers from there. Not quite ideal, but well enough for now. I do also have a 3389 tcp port check running over the internet which helps tell if RDP from the internet is operatoinal or not.

Thanks for this one!!

-m
Post Reply