Login | |
|
 |
RE: copy files from network drive to local computer wit... - 12/17/2007 7:16:02 AM
|
|
 |
|
| |
mbouchard
Posts: 1861
Score: 14
Joined: 5/15/2003
From: USA
Status: offline
|
Use net use instead of mapnetworkdrive. WshShell.Run "cmd /c net use \\servername\share /USER:domain\username password",1,True
_____________________________
Mike For useful Scripting links see the Read Me First stickey! Always remember Search is your friend.
|
|
| |
|
|
|
 |
RE: copy files from network drive to local computer wit... - 3/11/2008 5:23:03 AM
|
|
 |
|
| |
ebgreen
Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
|
Ok, so how about writing a script that runs on the server and is run under an account with admin rights on all the clients? The script could push the file to the client machines and have it there waiting for your registration script.
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: copy files from network drive to local computer wit... - 3/11/2008 5:51:23 AM
|
|
 |
|
| |
ebgreen
Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
|
Wow. You really need to have a sitdown with your network admins. So in your environment, your network admins have decided it is safer to make you take total control of machines than it is to expose a share with controlled permissions? That's just nuts. I do not know of any way to script Terminal Services in that fashion. That doesn't mean that it doesn't exist though. Really, I can't get over this. It would be much more secure for them to open a share on the server to a folder that holds nothing but that one file and give everyone read only access to it. I am definitely not a network security expert, so I would love to hear from your network admins why it is preferable to have a script take total control of the server (or client) rather than opening a read only share.
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: copy files from network drive to local computer wit... - 3/11/2008 6:11:36 AM
|
|
 |
|
| |
ebgreen
Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
|
"In our environment we have very tight security and we are not allowed to share a drive........ company policy" And yet instead your policy is encouraging you to use Terminal Services which has total control of the machine and could wreak much more havoc than an open share could. And to be clear, I'm not advocating sharing a drive. I'm talking about sharing one highly controlled folder.
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: copy files from network drive to local computer wit... - 3/11/2008 6:21:43 AM
|
|
 |
|
| |
ebgreen
Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
|
Nope. The security policy that you have is there explicitly to stop exactly what you are trying to do. I am not familiar with how Symantec Endpoint works so I don't know how it did it.
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: copy files from network drive to local computer wit... - 3/12/2008 12:33:03 AM
|
|
 |
|
| |
DiGiTAL.SkReAM
Posts: 1157
Score: 7
Joined: 9/6/2005
From: Florida, USA
Status: offline
|
So did your network admins delete the admin shares? \\workstation\c$ is the path to the default admin share pointof the c-drive. As long as you have administrative access to the box, you should be able to connect to that sharepoint. Unless the network admins have specifically disabled ALL shares on the workstations, in which case, Symantec Endpoint (which is one of hte buggiest pieces of sludge to ever ooze out of Symantec's orifice) would not have been able to perform a 'push-install'.
_____________________________
"Would you like to touch my monkey?" - Dieter (Mike Meyers) "It is better to die like a tiger, than to live like a pussy." -Master Wong, from Balls of Fury
|
|
| |
|
|
|
|
|