creating an admin template for group policy

rasczak

Lifer
Jan 29, 2005
10,437
23
81
i pulled this off of the tech net website to disable USB storage devices. However, I cannot seem to get this imported into GPMC as an .inf file. GPMC only recognizes .ADM files. Can someone point me to the right direction?

I had previously been able to apply the sslf template while it was a .inf file, but I just cant remember how i did it.

thanks!

CLASS MACHINE
CATEGORY !!category
CATEGORY !!categoryname
POLICY !!policynameusb
KEYNAME "SYSTEM\CurrentControlSet\Services\USBSTOR"
EXPLAIN !!explaintextusb
PART !!labeltextusb DROPDOWNLIST REQUIRED

VALUENAME "Start"
ITEMLIST
NAME !!Disabled VALUE NUMERIC 3 DEFAULT
NAME !!Enabled VALUE NUMERIC 4
END ITEMLIST
END PART
END POLICY
END CATEGORY
END CATEGORY

[strings]
category="Custom Policy Settings"
categoryname="Restrict Drives"
policynameusb="Disable USB"
explaintextusb="Disables the computers USB ports by disabling the usbstor.sys driver"
labeltextusb="Disable USB Ports"
Enabled="Enabled"
Disabled="Disabled"


Moved to OS per OP's request
Anandtech Moderator
Gillbot
 

rasczak

Lifer
Jan 29, 2005
10,437
23
81
ok i kinda figured out how to import this file as a.adm template, but i keep getting

the following error occurred in \\domain\sysvol\domain\policies\xsxsxsx\Adm\disableusb.adm on line 7 error 62. the corresponding string was not found in the [strings] secton

found !!labeltextusb

the file cannot be loaded.

i'm stumped :(