pikes Posted July 6, 2004 Posted July 6, 2004 I have an unattended install of windows that copies over the .pab file so that our company's VPN and dialup networking config settings will be copied over. When it copies the file, it's read only so the user won't be able to add any more or delete the existing ones. What kind of script can I run to make this file not read only after it's copied?
my2001 Posted July 6, 2004 Posted July 6, 2004 You can also look here Ah, and just a hint: try "attrib -r" command (dos environment).
pikes Posted July 6, 2004 Author Posted July 6, 2004 Right, but how would I script it and where?? I'm looking at the link you gave me EDIT: Ok after some smart searching I found out how to do it, don't know if it works I'll have to test it later. What I did was add attrib -R %AllUsersProfile%\Application Data\Microsoft\Network\Connections\Pbk\rasphone.pbkto my cleanup.cmd
edmoncu Posted July 7, 2004 Posted July 7, 2004 otherwise, you could just place the rasphone.pbk file deep within $OEM$'s folder the cd:\$OEM$---$Docs-----All Users-------Application Data---------Microsoft\Network-----------Connections-------------Pbk---------------rasphone.bpkthat way, the copied file won't be read only and you won't need to issue any attrib command.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now