Tuesday, February 7, 2012

User name creation Using patch file

set xfold=E:\Staff\ECE
set xname=%1
set pass=%2
net user %xname% %pass% /add /domain
md %xfold%\%xname%

rmtshare \\srvname\%xname%$=%xfold%\%xname% /USERS:3 /GRANT "domain\username":F /GRANT %xname%:C

echo Y |cacls %xfold%\%xname% /E /R Everyone /P Administrator:F %xname%:C

Map network drive from Shared resources

net use K: \\filesrv\share$ /user:domainname\Username Password

Thursday, February 2, 2012

Batch file for Shortcuts

Mysqlserver.bat
cmd /k "y:&&set path=%path%;"C:\Program Files\MySQL\MySQL Server 5.5\bin"&&mysqld&&mysql -u root -p"

Java&Jade.bat
cmd /k "set path=%path%;C:\Program Files\Java\jdk1.5.0\bin;C:\Program Files\Java\jdk1.6.0_23\bin;C:\Program Files\Java\jdk1.6.0_26\bin;&&set classpath="\\newton\jade$\http.jar;\\newton\jade$\iiop.jar;\\newton\jade$\jade.jar;\\newton\jade$\jadeTools.jar;\\newton\jade$\migration.jar;\\newton\jade$\commons-codec-1.3.jar;"&&y:"



Fortigate Mac based user name creation

go to CLI window

type the following
creation:

Config system dhcp reserved_address
show
edit nameoftheuser
set ip 195.168.6.85
set mac 00:01:02:03:04
set type regular
end

Deletion:

config system dhcp reserved_address
delete nameoftheuser
end

Wednesday, February 1, 2012

How to Use Network Shortcuts in IE via Group Policy

open Group policy management Console
Go to User configuration/Policies/Windows Settings/Internet Explorer Maintenance/URL/favorites and links

add the link file:////fileservername/filename.bat
then close the Group Policy Management console

go to run type cmd and use the command "gpupdate /force"

Tuesday, January 31, 2012

HP LaserJet 1010 driver for windows 7

LaserJet 1010 is just a generic PCL 5 printer on a DOT4 usb port. Which means that any other generic PCL 5 printer's driver will work fine.

1. go to Control Panel\Hardware and Sound\Devices and Printers
2. Add a printer, add a local printer
3. Use an existing port - DOT4 001
4. Choose HP 3050's driver from the list

Monday, January 30, 2012

Failed To Initialize Common Updater Subsystem. Make Sure The Mcafee Framework Service is Running

1. Open regedit, and locate [HKEY_CLASSES_ROOT\Interface\{0000000C-0000-0000-C000-000000000046}] If it doesn't exist then create it.
2. Double-Click the default value, and type IStream as the value.
3. Locate [HKEY_CLASSES_ROOT\Interface\{0000000C-0000-0000-C000-000000000046}\NumMethods] If it doesn't exist then create it.
4. Double-Click the default value, and type 14 as the value.
5. Locate [HKEY_CLASSES_ROOT\Interface\{0000000C-0000-0000-C000-000000000046}\ProxyStubClsid32] If it doesn't exist then create it.
6. Double-Click the default value, and type {00000320-0000-0000-C000-000000000046} as the value.
7. Close regedit and try updating again.