I have a script that is really pretty simple that launches RDP and then logs the user in (if the credentials are saved). The issue I'm having is that it's been working perfect on my Vista machine, but refuses to work on the Windows XP Embedded machine I need it to work on
Here's the code:
Like I said, very simple. When I launch it on the XP Embedded machine it gives me a weird error:
"There is no file extension in "C:\Documents"."
Now, there is nothing in there that points to that folder, so I began thinking maybe something was missing from the windows install such as the powershell or WMI. I looked and WMI is installed but I can't install the powershell because every time I download the .net framework 2.0 redistributable it tells me it is not a valid Windows 32 application.
I also looked to see if maybe it was looking for the default.rdp profile that is created when it's first launched- it's in every User\Documents folder, and I even created a folder called C:\Documents and put it in there to no avail.
Can anyone help me out? Will getting the powershell installed fix my issue?
Thank you!!
Here's the code:
Code:
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "C:\Windows\System32\mstsc.exe /v:Xsets02 /f"
Like I said, very simple. When I launch it on the XP Embedded machine it gives me a weird error:
"There is no file extension in "C:\Documents"."
Now, there is nothing in there that points to that folder, so I began thinking maybe something was missing from the windows install such as the powershell or WMI. I looked and WMI is installed but I can't install the powershell because every time I download the .net framework 2.0 redistributable it tells me it is not a valid Windows 32 application.
I also looked to see if maybe it was looking for the default.rdp profile that is created when it's first launched- it's in every User\Documents folder, and I even created a folder called C:\Documents and put it in there to no avail.
Can anyone help me out? Will getting the powershell installed fix my issue?
Thank you!!