PC_LOAD_LETTER Posted October 19, 2007 Share Posted October 19, 2007 yeah but (sorry to oppose you here GSM ) using the runas command means the password is in plain text. what i think he really needs is a vb script that scans the network for hosts and if they exist copy the files to \\hostname\c$\windows\system32 that way he can just run it from a server with admin rightshttp://robotronic.de/runasspc/creates a cryptfile that store your password for the included runas utility (cryptfile is only good for the running the exe it was created for) Link to comment Share on other sites More sharing options...
Bly Posted December 14, 2007 Share Posted December 14, 2007 (edited) This was an interesting thread, but I have come up with a better/different solution for oeminfo.ini.Machine startup script in the GPO:@echo offif '%COMPUTERNAME%' == 'SERVER_1' goto SkipUpdateif '%COMPUTERNAME%' == 'SERVER_2' goto SkipUpdate attrib -r -h -s %SystemRoot%\system32\oeminfo.inidel /q %SystemRoot%\system32\oeminfo.ini@echo [General] > %SystemRoot%\system32\oeminfo.ini@echo Manufacturer=Tech Support >> %SystemRoot%\system32\oeminfo.ini@echo Model=PC >> %SystemRoot%\system32\oeminfo.ini@echo [support Information] >> %SystemRoot%\system32\oeminfo.ini@echo line1=***** Tech Support Contact Information *****>> %SystemRoot%\system32\oeminfo.ini@echo line2=Etc etc etc..>> %SystemRoot%\system32\oeminfo.ini:SkipUpdate/scriptI'm making sure the oeminfo.ini isn't marked as read only or a system file etcDelete the oeminfo.iniThen echo in all the information I need right from the machine startup batch....The BMP isn't copied but it isn't required, on our domain the above script works perfectly... I don't have to copy the OEMINFO.ini from anywhere, no network login issues, and by running it in the machine startup it's the local admin which always has rights to the system32 directory... Edited December 14, 2007 by Bly Link to comment Share on other sites More sharing options...
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