This may be a very basic question but I just want to confirm;
I have OUs that are linked to a Logon script. So i.e. (NY > IT Dept then in User Config > Windows Settings > Logon > MyScript.bat.
MyScript.bat is written in the following way
net use x: \\server2\folder$ password /user:server2\userBob /PERSISTENT:YES
The problem is that if a user digs deep into a SYSVOL or netlogon folder they can find this batch fiel (depending upon where I place it). How do I restrict a user from opening the batch file (i dont want them to see the userBob/password credentials beacuse that user is an Administrator on server2).
In security do I just deny everybody except myself? Will the batch still execute when a user logs on to the domain?
I have OUs that are linked to a Logon script. So i.e. (NY > IT Dept then in User Config > Windows Settings > Logon > MyScript.bat.
MyScript.bat is written in the following way
net use x: \\server2\folder$ password /user:server2\userBob /PERSISTENT:YES
The problem is that if a user digs deep into a SYSVOL or netlogon folder they can find this batch fiel (depending upon where I place it). How do I restrict a user from opening the batch file (i dont want them to see the userBob/password credentials beacuse that user is an Administrator on server2).
In security do I just deny everybody except myself? Will the batch still execute when a user logs on to the domain?