I have been working the last 2 days to find out the proper syntax to enter into our login scripts for users.
We currently have a handful of very basic .bat files that load shared drives at login for different users (admin.bat , common.bat , cad.bat ect, ect...).
What i'm doing is trying to insert a command where a registry hive is imported into the HK_CURRENT_USER hive during user login.
I have tried three different commands:
Tried this first, but gave me error that it couldnt load the .reg file. I figured it was because of permissions.
regedit /S \\ppipdc01\d$\last500.reg
Then I tried this;
run as /user:adminsitrator@ppipdc01 /password "*******" "regedit /S \\ppipdc01\d$\last500.reg"
And finally this; My therory on this one is that if I actually put the .reg file where users had access/permission
to it, then it would load it.
run as /user:adminsitrator@ppipdc01 /password "*******" "regedit /S \\ppipdc01\Shared Resources\shared file storage\last500.reg
I tested all these on a test Laptop, logging in and out with user logins and I noticed that the script ran fine all the way up to after the password was used and it still didnt load the .reg file into the registry where I need it. Now I can go from station to station and put this reg hive where I need it. I tring to learn here and want to do it through a login script... Maybe I have to do something in the GPO?? Dont know
I think I'm close so any help is much appreciated.
We currently have a handful of very basic .bat files that load shared drives at login for different users (admin.bat , common.bat , cad.bat ect, ect...).
What i'm doing is trying to insert a command where a registry hive is imported into the HK_CURRENT_USER hive during user login.
I have tried three different commands:
Tried this first, but gave me error that it couldnt load the .reg file. I figured it was because of permissions.
regedit /S \\ppipdc01\d$\last500.reg
Then I tried this;
run as /user:adminsitrator@ppipdc01 /password "*******" "regedit /S \\ppipdc01\d$\last500.reg"
And finally this; My therory on this one is that if I actually put the .reg file where users had access/permission
to it, then it would load it.
run as /user:adminsitrator@ppipdc01 /password "*******" "regedit /S \\ppipdc01\Shared Resources\shared file storage\last500.reg
I tested all these on a test Laptop, logging in and out with user logins and I noticed that the script ran fine all the way up to after the password was used and it still didnt load the .reg file into the registry where I need it. Now I can go from station to station and put this reg hive where I need it. I tring to learn here and want to do it through a login script... Maybe I have to do something in the GPO?? Dont know
I think I'm close so any help is much appreciated.