Thursday, February 2, 2012

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.

Wednesday, December 21, 2011

Deploy Google Chrome via GPO

Google Chrome Download from this site

https://www.google.com/chrome/eula.html?msi=true

then deploy this msi file to GPO

Prevent Multiple Logins via Group Policy in Server 2008

The below loing.bat file is given to userlogin script GPMC

Login.bat

If Exist \\server\logons\%username%.txt Goto notlogon
Echo %username% logged in from %computername% > \\server\logons\%username%.txt
Echo %username% logged in from %computername% > \\server\logons\%computername%.txt
Goto end
:notlogon
Logoff
:end

The below logout.bat file is given to user logout script GPMC

Listing 2: Logout.bat

If Not Exist \\rafetpc\logons\%computername%.txt goto notlogon
Del \\server\logons\%username%.txt
Del \\server\logons\%computername%.txt
Goto end
:notlogon
Logoff
:end

Tuesday, December 20, 2011

Limit Login script for Windows Server 2008

net use Y: \\newton\%username%$
if errorlevel 1 goto logoff
goto continue
:logoff
net send localhost "You are logged in elsewhere. Please log off a the other terminal before trying again."
logoff
:continue
setx homedrive "Y:"
setx homepath "\"

save the above lines to bat file use GPO login script file.

updated script if Y drive already exists

if exist Y:\ goto continue
:logoff
net send localhost "You are logged in elsewhere. Please log off a the other terminal before trying again."
logoff
exit
:continue
setx homedrive "Y:"
setx homepath "\"
exit