theniteowl
Programmer
I have a .VBS script that backs up our log files from one server and stores them on a network share.
We log into the server with a local account but access to the share is through a domain account.
If a connection has not already been established to the share my script will fail with an error indicating the id or password is not valid.
The server knows the credentials to use for the share connection but apparently the FileSystemObject does not determine if alternate credentials are to be used and tries to use the logon credentials.
If you manually open a connection to the share the server will automatically pass the correct credentials and my vbs script will work perfectly. But if the server is rebooted the connection is no longer there and someone would have to manually intervene before the log backup script will work.
Any ideas on how to make sure the correct credentials are used, or how to ensure the connection is established prior to the FileSystemObject attempting the connection using the wrong credentials?
I might be able to get away with putting a shortcut to the share folder in startup so when the server boots it opens the share and authenticates. It just seems a work around approach and a script approach would be cleaner.
Anyone?
At my age I still learn something new every day, but I forget two others.
We log into the server with a local account but access to the share is through a domain account.
If a connection has not already been established to the share my script will fail with an error indicating the id or password is not valid.
The server knows the credentials to use for the share connection but apparently the FileSystemObject does not determine if alternate credentials are to be used and tries to use the logon credentials.
If you manually open a connection to the share the server will automatically pass the correct credentials and my vbs script will work perfectly. But if the server is rebooted the connection is no longer there and someone would have to manually intervene before the log backup script will work.
Any ideas on how to make sure the correct credentials are used, or how to ensure the connection is established prior to the FileSystemObject attempting the connection using the wrong credentials?
I might be able to get away with putting a shortcut to the share folder in startup so when the server boots it opens the share and authenticates. It just seems a work around approach and a script approach would be cleaner.
Anyone?
At my age I still learn something new every day, but I forget two others.