Link to home
Start Free TrialLog in
Avatar of sraley
sraley

asked on

server 2008 login script

Is there a way to use the net use command in server 2008 or another way to map a network drive upon login so that you are not prompted if the drive is already mapped to overwrite it. It will automatically do this without prompting the user. We have group policies in effect and one of rules to map a drive for everyone doesn't always work so I'm trying to find a work around rather than trying to fix the group policy. We've spent enough time and money on figuring out the group policy problem with gpupdate.
ASKER CERTIFIED SOLUTION
Avatar of Lee W, MVP
Lee W, MVP
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Sorry to bug in stephen_c01 :) but  no need to copy the files on the local machines etc ...
He is working with GPO's so I guess he can just add the script to the logon script or even to a GPO targeted on spcific ou or so.
Avatar of stephen_c01
stephen_c01

but he said he didnt want to mess with the GPO, so i was giving an alternative.
He can just specify a "Logon Script" under the users Profile tab in AD.
Avatar of sraley

ASKER

yes i'd put it in the users profile in AD but does it have to be call .cmd or is there any specific extension needed?
The commands I posted are command line commands so they would have to be saved in a text file with a .cmd extension
You can call it .cmd , .bat , .vbs etc.
You cannot call it .vbs - that's for Vbscripts - not batch scripts.
If your logon script it's a vbs script you can call it vbs
Avatar of sraley

ASKER

I haven't been able to try the script because someone said the password on the server expired and they changed it, but what is written down isn't working. Our ilnux boot disk that we have used on 2003 servers to reset the administrator password has worked before but in 2008 it gives an error that my partition is read only and cannot fined the system32 folder. Any ideas on a linux reset password boot utility?
Reboot the system and at the boot press S on the console. this should boot it in safe mode.
Avatar of sraley

ASKER

What is safe mode going to help me do?
reset the root password.
Avatar of sraley

ASKER

That option requires that I already have created a usb reset password policy which I have not. So I guess I have to find another 2008 enterprise server and create this file on the usb stick?
Avatar of sraley

ASKER

the local admin password that is still taped to the side of the machine isn't working either regular or safe mode using the server/administrator login name. I'm unable to use some of the links I found in here and on Petri to reset the password. I can't boot into safe mode command prompt to try net user since I have to enter the password to get into the dos prompt.
Avatar of sraley

ASKER

well I just found a linux boot clear password cd dated June 2010 that says it works on 2008/win7 and it told me it cleared the administrator password and saved the same. I leave password blank for both domain and local admins and can't get in. Incorrect password.
Avatar of sraley

ASKER

I made a password reset usb disk from another 2008 machine, it recognizes it and asks me to input new password which I do and then I get an error that it can't change the password. any ideas on exporting the login script and gpo's that I've spent so much time and money getting created?
Avatar of sraley

ASKER

anyone know how to get the gpo and items off the server manually since I can't log in to fix the login script and i'm unable to reset the password?
Avatar of sraley

ASKER

any other ideas on password resetting or how to get my GPO's /config out if I have to wipe this server?
Avatar of sraley

ASKER

Finally got the administrator password resolved and working on script now.