Link to XLnow Homepage
Home
Login Register Member List
XLnow OnScript Forums   » OnScript Editor   » General Discussion   » vbscript wont map drive  

Welcome Guest ( Login or Register )

vbscript wont map drive
Author
Message
Posted 05.07.2005 07:24
Forum Newbie
Forum Newbie

Group: Forum Members
Active: 05.07.2005
Posts: 1

Wrote a script to simply connect to a hidden admin share folder that has full control

' sample logon script

' first let's create the objects we'll be using
dim objShell, objNetwork
set objShell = WScript.CreateObject("WScript.Shell")
set objNetwork = WScript.CreateObject("WScript.Network")
'we'll map the Z: drive to a network location
objNetwork.MapNetworkDrive "Z:", "\\Winserver\Profiles$"

 

I saved the vb script to the desktop and ran it. (i am logged remotely onto the server as administrator)

the message that returns is:The system has detected a possible attempt to compromise security

please ensure you can contact the server that authenticated you

the error return is Line 8 Char 1

any suggestins would be much appreciated

IP Logged
This member is offline.
Posted 18.07.2005 18:38


Forum Administrator
Forum Administrator

Group: Forum Moderators
Active: 13.04.2009
Posts: 78

Strange - I understand you wrote this test script and started it manually form the Desktop. Have you tried to connect using a different mechanism, such as net use?

net use Z: \\Winserver\Profiles$

 

Cyril Baratoff
XLnow - the makers of OnScript

IP Logged
This member is offline.
Posted 09.08.2005 12:29


Forum Administrator
Forum Administrator

Group: Forum Moderators
Active: 13.04.2009
Posts: 78

It looks like your DNS or something related to it is misconfigured. You might want to check out this forum thread:

http://forums.windowsitpro.com/web/forum/messageview.aspx?catid=54&threadid=42133&enterthread=y

Cyril Baratoff
XLnow - the makers of OnScript

IP Logged
This member is offline.
Showing page 1 of 1 - 3 messages found
« Next Oldest :: Next Newest »

Powered by InstantForum.NET v3.4
Copyright © 2002, 2004, InstantASP Ltd. All rights reserved.