Windows server 2003 – How to use group policy to disable USB, CD-ROM and FDD

Posted by Thomas | Posted in Group policy, Windows 2003 | Posted on 29-06-2009

0

By default you cant do this in your Windows server 2003 based domain.

I found Microsoft article that will help you build custom group policy ADM templates and restrict access to USB, CD-ROM, Floppy Disk and LS-120 drivers.

Read it here

Enjoy

Windows server 2003 and Windows XP – How to add printer via script

Posted by aidas | Posted in Scripting, Windows 2003, Windows XP | Posted on 16-06-2009

0

In this post i`ll show one of many ways how to connect your users to shared printer. For that open notepad in Windows server 2003 or Windows XP and type:

REM Add Printers
RunDll32.EXE printui.dll,PrintUIEntry /in /n \\sever\printername1
RunDll32.EXE printui.dll,PrintUIEntry /in /n \\sever\printername2

REM Set Default Printer
RunDll32.EXE printui.dll,PrintUIEntry /y /n \\server\printername2
EXIT

For example i have two shared printers on server named “Fileserver” and these printers are shared as “HPLJ1″ and “HPLJ2″. Also i want “HPLJ1″ as default printer for all users. I will type :

REM Add Printers
RunDll32.EXE printui.dll,PrintUIEntry /in /n \\Fileserver\HPLJ1
RunDll32.EXE printui.dll,PrintUIEntry /in /n \\Fileserver\HPLH2

REM Set Default Printer
RunDll32.EXE printui.dll,PrintUIEntry /y /n \\Fileserver\HPLJ1
EXIT

Save this file as Addprinter.bat and place it as login script via group policy or you can deploy it to your users in any other way you prefer.

Windows server 2003 and Windows XP – How to modify group policy security settings update time

Posted by aidas | Posted in Group policy, Registry, Windows 2003, Windows XP | Posted on 14-05-2009

0

As you know, by default, group policy is being refreshed every 90 min + random time up to 30 min on domain members. And this refresh will occur only if group policy settings were modified.  In addition, every 960 min, security settings are being refreshed regardless of whether any changes to group policy were made. This post will show you how to modify time value for security settings refresh on you Windows server 2003 or Windows XP machine. To modify open registry editor and navigate to:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\GPExtensions\{827D319E-6EAC-11D2-A4EA-00C04F79F83A}

Double click on “MaxNoGPOListChangesInterval”, change base to Decimal and enter your new Data value in minutes.

Windows server 2008 – How to view group policy information via command line

Posted by aidas | Posted in Command line, Group policy, Windows 2008 | Posted on 06-05-2009

0

This post will show you how to view Resultant Set of Policy information with gpresult command. To view policy information for user named “Testuser” open command line on your Windows server 2008 and type:

gpresult /user Testuser

If you want to see only computer related policy settings type:

gpresult /user Testuser /scope computer

If you want to list policy information on remote server named “Testserver” type:

gpresult /s Testserver /user Testuser /scope computer

More gpresult usage examples can be found here .