Re: Script doesn't work through Remote Desktop / W2K3 Server
- From: "Marty List" <usenet@xxxxxxxxxxxx>
- Date: Mon, 1 Aug 2005 13:46:52 -0600
It's hard to give suggestions without more info. It could be name resolution,
network connectivity, or permissions. Turn on the error handler and post the
output:
On Error GoTo 0
Set objNet = CreateObject("WScript.NetWork")
Set objUser = GetObject("WinNT://mydomain.com/" & objNet.UserName )
WScript.Echo objUser.Name
"MMMMM" <noemail@xxxxxxxxxxxxxxxx> wrote in message
news:O9JLofrlFHA.3568@xxxxxxxxxxxxxxxxxxxxxxx
> This script, when run locally, works fine:
>
> Set objNet = CreateObject("WScript.NetWork")
> Set objUser = GetObject("WinNT://mydomain.com/" & objNet.UserName )
> WScript.Echo objUser.Name
>
> But when we use remote desktop connection to connect to our terminal server,
then run it off a shared drive there, it returns
> nothing. Anyone know why?
>
>
.
- Follow-Ups:
- References:
- Prev by Date: Re: Set Disc Quotas with perl
- Next by Date: One time login
- Previous by thread: Script doesn't work through Remote Desktop / W2K3 Server
- Next by thread: Re: Script doesn't work through Remote Desktop / W2K3 Server
- Index(es):
Relevant Pages
|