Windows 8 and 8.1 Forums

rdesktop issue with pre-logon shell scripting in windows 2008

  1. #1

    Posts : 1
    Ubuntu 12.04 LTS 64 bit

    rdesktop issue with pre-logon shell scripting in windows 2008

    Hi all,

    I have been using rdesktop and its -s option which allows me the ablility to start a remote desktop in a different shell (cmd.exe) and run a set of commands like mapping a local network drive x.... as seen below.

    mine@myComp: rdesktop -r disk:local="DirectoryToMapTo/" -s "cmd.exe /K net use x: \\tsclient\local" -u username -p paswrd

    This command works in almost all windows OS and what happens is it will make the default or "start-up" shell be the cmd.exe and then will automatically run the net use commands and so on. But with my Windows Server 2008 R2 Datacenter OS, I run this same command and it boots into the explorer.exe shell and doesnt run the commands. To do a quick fix for this for which I thought would solve the problem, I added the key "shell" as a "REG_SZ" type with "cmd.exe" data to the HKLM/Software/Microsoft/Windows NT/winlogon registry. This made the remote desktop boot into the cmd.exe shell. However, this is the tricky part. I cannot find what to change to make the initial commands (net use... etc) from the -s to work. Can anyone help? I have broken the problem down to be one of the 3: 1) a registry key that is not set correctly. 2) A windows bios bootup protocol change. 3) or any of thousands of other possible problems that I over looked for a datacenter OS haha. Does anyone at least know where the change log is for the windows OSs are or something similar that can tell me what changes to investigate in the windows 2008 R2 Datacenter OS? Any thoughts are appreciatted

    ~The WolfSon

      My System SpecsSystem Spec

  2. #2

    Posts : 1
    sun os, linux, windows

    hi WolfSon

    Did you have any solution found to this issue? We are also using this option to automate our build process from sun os to windows servers. its also works fine with 2003 servers, but we have problems with windows 7 and also 2008 server.
    Any suggestion ?

      My System SpecsSystem Spec

rdesktop issue with pre-logon shell scripting in windows 2008
Related Threads
Hi I have already installed sql server 2008 r2 and serivice pack3 in my windows 8 ,but now i want to install sql server 2008 r2 with advanced service for extra features. but when i try to install advanced service, compatible issue raised. how can solve this problem?
Scripting errors in General Support
I just started to get many scripting errors while reading newspapers. What can I do to resolve this. Thanks
I have just replaced an old XP box with our first Windows 8.1 Pro client. Joined the domain (Server 2008 R2, using active directory), seamed quite normal. When I rebooted, I received the normal windows logon screen, user name & password, entered those and logged in. The problem being, all resources...
Hi, Does anyone know of any tools/utilities that I can use to put a GUI front-end to my Windows scripts (batch commands)? For example, I have a batch file now that takes a password as the parameter and then executes an EXE with that password as its parameter. I'd like to have something like...
Windows Shell Startup Issue in Installation & Setup
I have my Win 8 set to pass the start screen and go straight to the Windows shell desktop. The issue I have is the applications such as realtemp, my logitech keyboard, Nexus don't auto load even though it shows in startup on the task manager. I have the apps in the task bar, but each start up or...
Win8 Logon Issue in User Accounts and Family Safety
Hi EightForums members! I have installed Windows 8 on a dualboot system with Windows 7, and have run into no problems except one very annoying quirk. The computer to which Windows 8 has been installed is a family Pc and has multiple user accounts. I easily set-up three local accounts and set...
Win8 Logon Issue in General Support
Eight Forums Android App Eight Forums IOS App Follow us on Facebook