Re: Script doesn't work through Remote Desktop / W2K3 Server

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




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?
>
>


.



Relevant Pages

  • suggestions for err handler for vbnewb?
    ... I've used this for a while (with no error handler) and it's worked ok. ... I had changed permissions on a folder. ... Public Sub AppendToFile ... Dim iFhndl As Integer ...
    (microsoft.public.vb.general.discussion)
  • Re: Erradic display of alternate connections dialog ?
    ... Also problems with network connectivity and name resolution can ... Try using the IP address of the remote computer ... not have the required permissions. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Erradic display of alternate connections dialog ?
    ... credentials on the remote computer, correct share/NTFS permissions, or the ... Try using the IP address of the remote computer instead of the ... name resolution problem which in a domain computer can often be related to ... also help determine if there are name resolution or network connectivity ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Does anyone know if exam 70-270 is adaptive
    ... The test I took had alot of NTFS permissions stuff and Shared files ... permissions and the network connectivity and printer sharing and ... It tests your troubleshooting skills more than ...
    (microsoft.public.cert.exam.mcsa)
  • Re: Merge replication error
    ... distributor from the subscriber, to test your network connectivity and name ... resolution. ... Paul Ibison ...
    (microsoft.public.sqlserver.replication)