Remote Desktop Connection: Start program on connection - remote-desktop

I Would like to start a certain program on a remote desktop connection. I tried to enter the following line in my rdp-Protocol:
alternate shell:s:%windir%\system32\notepad.exe
When i start my session no notepad is launched. My target system is Windows 7. Any suggestions?

Related

Delphi register a dbexpress dll (dbexpsda40.dll) & Windows Service is failing to start and uninstall

We have a windows service using this DbExpress Driver for SQL Server 8.2.1.0, Previously this service used to start and work normally now it is not starting and not uninstalling also. We use this Driver on a Server system to connect to our database, Now it is not establishing a connection and failing.
When I try to start the service from services.msc screen is throwing the below error
A timeout was reached (30000 milliseconds) while waiting for the TIPQA
Server service to connect. The TIPQA Server service failed to start
due to the following error
The service did not respond to the start or control request in a timely fashion.
When I checked the registry I observed that the dll location is pointing to the different version which is mentioned in the registry.
So I tried to unregister the dll and register it again with the same exact version (8.2.1.0).
I have tried using the cmd in admin mode using the regsvr32.exe but I got some errors like below
To fix this issue I have added some code and ran the same regsvr32 cmd in the command prompt with admin privileges
this command is successful with this message but I can't see any changes in the registry after restart also.
Can someone please tell me if there is any other way to register this dll update the registry?

Cannot Connect to Remote Desktop or Remote Administrator

I have a remote customer machine that will not connect with either Remote Desktop or Radmin/Remote Administrator v3.5.2.1
The machine is a fresh build of Win10 Pro 20H2 on a Xeon.
It responds to PING, and DIR \\Computer\C$ and file copies to the same.
I can PSEXEC to the machine, run CMD.EXE /k without problem.
I do not yet have access to gpedit.msc but I doubt there is a GPO on a fresh standalone build.
The machine is a WORKGROUP member.
This is the logfile from a powershell script I wrote to audit the machine.
Info Windows Version 10.0.19042.0
Type Client operating system
Edition Windows 10 Pro
Product Windows(R) Operating System, OEM_DM channel
Status License Status = 1
Action Checking connected networks
Info Connected adapter ETHERNET 2
Action Checking firewall profiles
Info Domain is Disabled
Info Private is Disabled
Info Public is Disabled
Action Checking registry settings
Info fDenyTSConnections = 0 RDP is enabled
Info RDGClientTransport is not present
Info RDP Network Level Authentication is Disabled
Info SMB1 protocol is Enabled
Action Checking RDP services
Info Remote Desktop Services is Running
Info RDP UserMode Port Redirector is Running
Info DCOM Server Process Launcher is Running
Info RPC Endpoint Mapper is Running
Info Remote Procedure Call (RPC) is Running
Action Checking listening ports
Info RDP port 3389 is PID=5432 in process 'svchost'
Info RDP port 3389 state is Listening
Action Checking Trusted Hosts
Info Trusted Hosts value is '*'
There were two separate problems working here.
#1 - Win10 host does not like the Server 2003 5.x RDP client.
Version 6.0 is the last client for Server 2003, and this is acceptable to Win10.
RDP now connects to Win10 using the v6 client.
#2 - Xfinity has a security nanny operating by default.
When they determine a threat exists, they block all incoming traffic.
So far, their automated process refuses to unblock traffic, or disable the nanny.

Working 'gnu-screen' alternative for Minecraft Servers on WSL

I want to launch my minecraft server on SSH on WSL (Ubuntu 18.04) on Windows.
The way I plan to do it with a phone or something: Connect to vpn, then ssh into windows, then type wsl (works fine), and finally open a session (for example screen) and launch the script for the minecraft server in there.
The problem is, when I finally get into launching the script and detaching the screen and close the ssh connection, the screen will close after some time automatically.
WSL says it was terminated. I dont know what to do.
I should also add that the script should run permanently.
The mc server is running on java and constantly gives output. So I want it to be available all the time.
linuxgsm.com is a Server manager that is also available for minecraft, it uses tmux and is a perfect alternative with many other features.

Remote Desktop Connection Manager

I am using Remote Desktop Connection Manager 2.2
Do u guys know if there's a way to run a .bat/.cmd script (e.g. vpn script) before connecting to a VM?
I have a bat script to connect to Juniper VPN. I wish rdcman run it automatically before connecting so that I wouldn't have to run it every time manually.
Thank u.
You could start Remote Desktop Connection manager from the "VPN" batch file, by appending the following command to your batch file:
mstsc /v VMNAME
This will launch a session with VMNAME.

stoping and starting IIS 6.0 or my application pool on IIS using a batch file

I have two windows boxes. one is windows xp(local computer) where i need to write a batch file and the other is windows server 2003 where my IIS is located. Now i need to write a batch file in windows Xp that needs to do these below mentioned operations in it.
Stop the IIS or my application pool on that IIS.
Start the IIS or my application pool on that IIS.
These stop and start need to be performed in two different lines. The windows Server 2003 box has a different user id and password to my windows xp(local computer). As i am new to writing the batch files, after my one day of struggle i am just able to kill the process of my application pool(w3wp.exe) on IIS which is located in the windows server 2003 and i am still not sure what i have written is correct or not. Please help me how to stop and start the IIS which is on server 2003 box, as the batch file should be on the xp box. Thanks in advance for your help.
There is a built-in program for starting/stopping/restarting IIS - iisreset.exe
Calling this program on its own will stop and then restart IIS. If you want to just stop IIS without starting it again, use the following:
iisreset.exe /STOP
And then later you can start it again like this:
iisreset.exe /START
This should work for all versions of IIS, regardless of the operating system version. Just remember that you need to execute it as an administrator.
EDIT: Just noticed that you want to run the command from your XP box to restart IIS on a W2K3 box - there is an optional parameter to specify the target computer:
iisreset.exe ServerNameOrIp /STOP
And:
iisreset.exe ServerNameOrIp /START
finally after a long struggle i made it work by "starting and stopping the iis from remote box with different id and password". I have initially tried runas command which didn't work and then i moved on to ps tools and used this below mentioned commands.
psexec \COMPUTER_NAME -u USERID -p PASSWORD iisreset.exe /START ----> for starting the iis
psexec \COMPUTER_NAME -u USERID -p PASSWORD iisreset.exe /STOP ----> for stoping the iis
#djhayman --- Thanks for your help man.

Resources