%3CLINGO-SUB%20id%3D%22lingo-sub-1691477%22%20slang%3D%22en-US%22%3EManage%20USB%20Devices%20on%20Windows%20Hosts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1691477%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ERaven%20is%20a%20Miniature%20Schnauzer%20that%20doesn%E2%80%99t%20like%20small%20critters%20in%20the%20yard%20unless%20they%20can%20fly.%20This%20gives%20Raven%20an%20insurmountable%20challenge%2C%20since%20my%20wife%20is%20such%20an%20avid%20gardener.%20We%20live%20on%20the%20side%20of%20a%20hill%20and%20at%20the%20top%20of%20the%20backyard%20is%20a%20manmade%20bog%20which%20feeds%20a%20downhill%20river%20to%20a%20to%20a%20pond%20with%20trees%20and%20flowers%20everywhere.%20Along%20with%20this%20are%20bird%20feeders%20and%20some%20birds%20love%20to%20scatter%20the%20feed%20from%20the%20feeders%20to%20the%20ground.%20So%2C%20our%20back%20yard%20is%20a%20perfect%20setting%20to%20get%20a%20lot%20of%20squirrels'%2C%20chipmunks%2C%20etc%E2%80%A6%20When%20we%20go%20out%20the%20back%20door%20to%20the%20yard%2C%20Raven%20races%20out%20trying%20to%20catch%20up%20with%20the%20critters%2C%20but%20she%20just%20isn%E2%80%99t%20fast%20enough%2C%20and%20all%20the%20animals%20disperse%20quickly.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20chaos%20makes%20me%20think%20about%20some%20enterprise%20admins%20who%20are%20concerned%20about%20having%20to%20control%20the%20dispersion%20of%20enterprise%20data%20being%20stored%20on%20unapproved%20USB%20devices.%20The%20expectation%20that%20users%20are%20to%20only%20use%20USB%20data%20storage%20devices%20that%20are%20approved%20by%20corporate%20guidelines%2C%20without%20built-in%20security%20controls%2C%20is%20a%20task%20admins%20will%20never%20be%20able%20to%20achieve.%20This%20expectation%20is%20similar%20to%20the%20position%20of%20Raven%20ever%20catching%20a%20squirrel%20out%20back%2C%20it%20just%20won't%20happen.%20Someone%20will%20forget%20a%20device%2C%20or%20they%20just%20don't%20appreciate%20the%20governance%20definition%20and%20will%20plug%20in%20any%20storage%20device%20they%20have%20access%20to.%20Even%20though%20there%20are%20many%20stories%20on%20the%20internet%20that%20talk%20about%20attackers%20loading%20USB%20storage%20devices%20with%20malware%20and%20intentionally%20placing%20them%20into%20a%20location%20that%20a%20target%20victim%20will%20find.%20The%20victim%20then%20connects%20the%20USB%20device%20into%20their%20workstations%20and%20unknowingly%20gets%20compromised.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFortunately%2C%20Microsoft%20has%20built%20in%20security%20controls%20in%20our%20modern%20o%2Fs%E2%80%99s%20to%20assist%20our%20customers%20in%20controlling%20the%20use%20of%20defined%20USB%20devices.%20The%20explanation%20below%20covers%20USB%20storage%2C%20but%20it%20really%20pertains%20to%20ALL%20USB%20devices%20that%20can%20be%20controlled.%20So%2C%20lets%20walk%20through%20the%20device%20management%20and%20control%20of%20devices.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId-531976278%22%20id%3D%22toc-hId-531977054%22%20id%3D%22toc-hId-531977054%22%20id%3D%22toc-hId-531977054%22%3EUSB%20Device%20management%20on%20Windows%3C%2FH1%3E%0A%3CP%3EOnce%20a%20USB%20device%20has%20been%20inserted%20within%20the%20windows%20ecosystem%2C%20the%20device%20driver(s)%20have%20been%20installed%20and%20the%20ability%20to%20prevent%20use%20is%20no%20longer%20available%2C%20until%20the%20driver(s)%20have%20been%20removed%2Funinstalled.%20The%20steps%20for%20uninstall%2Fremoval%20are%20defined%20later%20in%20this%20document%2C%20Revoke%20previously%20used%20USB%20storage%3CSPAN%3E.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ENOTE%20Always%20test%20and%20refine%20these%20settings%20with%20a%20pilot%20group%20of%20users%20and%20devices%20first%2C%20before%20widely%20distributing%20to%20your%20organization!%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId--1275478185%22%20id%3D%22toc-hId--1275477409%22%20id%3D%22toc-hId--1275477409%22%20id%3D%22toc-hId--1275477409%22%3E%3CA%20target%3D%22_blank%22%20name%3D%22_Toc45701242%22%3E%3C%2FA%3EUSB%20device%20management%20with%20Group%20Policy%3C%2FH1%3E%0A%3CH2%20id%3D%22toc-hId--584916711%22%20id%3D%22toc-hId--584915935%22%20id%3D%22toc-hId--584915935%22%20id%3D%22toc-hId--584915935%22%3E%3CA%20target%3D%22_blank%22%20name%3D%22_Toc45701243%22%3E%3C%2FA%3ETo%20block%20all%20removable%20storage%3C%2FH2%3E%0A%3CP%3EComputer%20Configuration%20%26gt%3B%20Policies%20%26gt%3B%20Administrative%20Templates%20%26gt%3B%20System%20%26gt%3B%20Removable%20Storage%20Access%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%E2%80%9CSet%20time%20(in%20seconds)%20to%20force%20reboot%E2%80%9D%3CUL%3E%0A%3CLI%3E3600%3CUL%3E%0A%3CLI%3ENote%3A%20If%20no%20reboot%20is%20forced%2C%20the%20access%20right%20does%20not%20take%20effect%20until%20the%20operating%20system%20is%20restarted.%3C%2FLI%3E%0A%3CLI%3EThe%20example%20setting%20above%20gives%20the%20user%20one%20hour%20before%20the%20system%20reboots%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3E%E2%80%9CAll%20Removable%20Storage%20classes%3A%20Deny%20all%20Access%E2%80%9D%3CUL%3E%0A%3CLI%3EEnabled%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH2%20id%3D%22toc-hId-1902596122%22%20id%3D%22toc-hId-1902596898%22%20id%3D%22toc-hId-1902596898%22%20id%3D%22toc-hId-1902596898%22%3E%3CA%20target%3D%22_blank%22%20name%3D%22_Toc45701244%22%3E%3C%2FA%3EManage%20what%20type%20of%20USB%20devices%20can%20be%20used%3C%2FH2%3E%0A%3CP%3EThe%20Group%20Policy%20controls%20are%20located%20at%3A%3CBR%20%2F%3EComputer%20Configuration%20%26gt%3B%20Policies%20%26gt%3B%20Administrative%20Templates%20%26gt%3B%20System%20%26gt%3B%20Device%20Installation%20%26gt%3B%20Device%20Installation%20Restrictions%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--1701809700%22%20id%3D%22toc-hId--1701808924%22%20id%3D%22toc-hId--1701808924%22%20id%3D%22toc-hId--1701808924%22%3E%3CA%20target%3D%22_blank%22%20name%3D%22_Toc45701245%22%3E%3C%2FA%3ETo%20allow%20certain%20storage%20types%3C%2FH3%3E%0A%3CUL%3E%0A%3CLI%3E%E2%80%9CSet%20time%20(in%20seconds)%20to%20force%20reboot%3CUL%3E%0A%3CLI%3E3600%3CUL%3E%0A%3CLI%3ENote%3A%20If%20no%20reboot%20is%20forced%2C%20the%20access%20right%20does%20not%20take%20effect%20until%20the%20operating%20system%20is%20restarted.%3C%2FLI%3E%0A%3CLI%3EThe%20example%20setting%20above%20gives%20the%20user%20one%20hour%20before%20the%20system%20reboots%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3EPrevent%20installation%20of%20devices%20not%20described%20by%20other%20policy%20settings%3CUL%3E%0A%3CLI%3EEnabled%3CUL%3E%0A%3CLI%3EIf%20you%20enable%20this%20policy%20setting%2C%20Windows%20is%20prevented%20from%20installing%20or%20updating%20the%20device%20driver%20for%20any%20device%20that%20is%20not%20described%20by%20either%20the%20%22Allow%20installation%20of%20devices%20that%20match%20any%20of%20these%20device%20IDs%22%20or%20the%20%22Allow%20installation%20of%20devices%20for%20these%20device%20classes%22%20policy%20setting.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH3%20id%3D%22toc-hId-785703133%22%20id%3D%22toc-hId-785703909%22%20id%3D%22toc-hId-785703909%22%20id%3D%22toc-hId-785703909%22%3E%3CA%20target%3D%22_blank%22%20name%3D%22_Toc45701246%22%3E%3C%2FA%3ETo%20define%20unique%20devices%20allowed%20to%20be%20installed%3C%2FH3%3E%0A%3CUL%3E%0A%3CLI%3E%22Allow%20installation%20of%20devices%20that%20match%20any%20of%20these%20device%20IDs%22%3CUL%3E%0A%3CLI%3EEnabled%3CUL%3E%0A%3CLI%3EShow%3CUL%3E%0A%3CLI%3EValue%20%3D%20%3CEM%3EHardware%20Id%E2%80%99s%20(captured%20from%20device%20manager)%3C%2FEM%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CEM%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22USB7.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F213740i4075CA67EBD1604C%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22USB7.PNG%22%20alt%3D%22USB7.PNG%22%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22USB2.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F213736i073EECF06023CD8F%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22USB2.PNG%22%20alt%3D%22USB2.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--1021751330%22%20id%3D%22toc-hId--1021750554%22%20id%3D%22toc-hId--1021750554%22%20id%3D%22toc-hId--1021750554%22%3E%3CA%20target%3D%22_blank%22%20name%3D%22_Toc45701247%22%3E%3C%2FA%3ETo%20define%20unique%20classes%20of%20devices%3C%2FH3%3E%0A%3CUL%3E%0A%3CLI%3E%22Allow%20installation%20of%20devices%20for%20these%20device%20setup%20classes%22%3CUL%3E%0A%3CLI%3EEnabled%3CUL%3E%0A%3CLI%3EShow%3CUL%3E%0A%3CLI%3EValue%20-%20%7B4D36E96B-E325-11CE-BFC1-08002BE10318%7D%3C%2FLI%3E%0A%3CLI%3EValue%20-%20%7B4D36E96F-E325-11CE-BFC1-08002BE10318%7D%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EExample%20highlighted%20in%20yellow%20for%20keyboard%20and%20mouse%20classes.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22USB9.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F213745iEDB1396442B3DC0C%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22USB9.PNG%22%20alt%3D%22USB9.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22USB4.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F213744i2740ECE153B1374D%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22USB4.PNG%22%20alt%3D%22USB4.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1465761503%22%20id%3D%22toc-hId-1465762279%22%20id%3D%22toc-hId-1465762279%22%20id%3D%22toc-hId-1465762279%22%3E%3CA%20target%3D%22_blank%22%20name%3D%22_Toc45701248%22%3E%3C%2FA%3ENotifications%20to%20users%3C%2FH3%3E%0A%3CUL%3E%0A%3CLI%3E%E2%80%9CDisplay%20a%20custom%20message%20title%20when%20device%20installation%20is%20prevented%20by%20a%20policy%20setting%E2%80%9D%3CUL%3E%0A%3CLI%3EMessage%20%E2%80%9CTitle%E2%80%9D%20for%20a%20pop%20box%20when%20the%20user%20attempts%20to%20install%20an%20unapproved%20device%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3E%E2%80%9CDisplay%20a%20custom%20message%20when%20installation%20is%20prevented%20by%20a%20policy%20setting%E2%80%9D%3CUL%3E%0A%3CLI%3EMessage%20%E2%80%9CBody%E2%80%9D%20for%20a%20pop%20box%20when%20the%20user%20attempts%20to%20install%20an%20unapproved%20device%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId--1042757538%22%20id%3D%22toc-hId--1042756762%22%20id%3D%22toc-hId--1042756762%22%20id%3D%22toc-hId--1042756762%22%3E%3CA%20target%3D%22_blank%22%20name%3D%22_Toc45701249%22%3E%3C%2FA%3E%3CA%20target%3D%22_blank%22%20name%3D%22_Toc45089972%22%3E%3C%2FA%3EUSB%20device%20management%20with%20Intune%3C%2FH1%3E%0A%3CH2%20id%3D%22toc-hId--352196064%22%20id%3D%22toc-hId--352195288%22%20id%3D%22toc-hId--352195288%22%20id%3D%22toc-hId--352195288%22%3E%3CA%20target%3D%22_blank%22%20name%3D%22_Toc45701250%22%3E%3C%2FA%3ETo%20block%20all%20removable%20storage%3C%2FH2%3E%0A%3CUL%3E%0A%3CLI%3EEnsure%20that%20the%20device%20is%20a%20Modern%20Managed%20Intune%20device%3C%2FLI%3E%0A%3CLI%3EPortal%20%E2%80%93%20%3CA%20href%3D%22https%3A%2F%2Fendpoint.microsoft.com%2F%23home%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fendpoint.microsoft.com%2F%23home%3C%2FA%3E%3CUL%3E%0A%3CLI%3EMicrosoft%20Modern%20Managed%20Desktop%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3ESelect%20%E2%80%9CDevices%E2%80%9D%3C%2FLI%3E%0A%3CLI%3ESelect%20%E2%80%9CConfiguration%20profiles%E2%80%9D%3C%2FLI%3E%0A%3CLI%3ESelect%20%E2%80%9C%2B%20Create%20profile%E2%80%9D%3CUL%3E%0A%3CLI%3EPlatform%20%3D%20%E2%80%9CWindows%2010%20and%20later%E2%80%9D%3C%2FLI%3E%0A%3CLI%3EProfile%20%3D%20%E2%80%9CDevice%20Restrictions%E2%80%9D%3CUL%3E%0A%3CLI%3ECreate%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3EName%20%3D%20%E2%80%9C%3CEM%3EBlock%20All%20USB%20Storage%3C%2FEM%3E%E2%80%9D%3C%2FLI%3E%0A%3CLI%3EDescription%20%3D%20%E2%80%9C%3CEM%3EOptional%3C%2FEM%3E%E2%80%9D%3CUL%3E%0A%3CLI%3ENext%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3ESelect%20%E2%80%9CGeneral%E2%80%9D%3CUL%3E%0A%3CLI%3E%E2%80%9CRemovable%20storage%E2%80%9D%20%3D%20%E2%80%9CBlock%E2%80%9D%3C%2FLI%3E%0A%3CLI%3ENext%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3ESelect%20%E2%80%9C%2B%20Select%20groups%20to%20include%E2%80%9D%3CUL%3E%0A%3CLI%3E%3CEM%3ESelect%20user(s)%2Fgroup(s)%3C%2FEM%3E%3CUL%3E%0A%3CLI%3ESelect%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3ENext%3C%2FLI%3E%0A%3CLI%3ENext%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3ECreate%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--485880788%22%20id%3D%22toc-hId--485880012%22%20id%3D%22toc-hId--485880012%22%20id%3D%22toc-hId--485880012%22%3E%3CA%20target%3D%22_blank%22%20name%3D%22_Toc45701251%22%3E%3C%2FA%3EManage%20what%20type%20of%20USB%20devices%20can%20be%20used%3C%2FH2%3E%0A%3CP%3ETo%20manage%20USB%20control%20from%20Intune%2C%20a%20%E2%80%9CConfiguration%20Profile%E2%80%9D%20will%20need%20to%20be%20created.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fendpoint.microsoft.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fendpoint.microsoft.com%3C%2FA%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ESelect%20%E2%80%9CDevices%E2%80%9D%3C%2FLI%3E%0A%3CLI%3ESelect%20%E2%80%9CConfiguration%20profiles%E2%80%9D%3C%2FLI%3E%0A%3CLI%3ESelect%20%E2%80%9C%2B%20Create%20profile%E2%80%9D%3CUL%3E%0A%3CLI%3EPlatform%20%3D%20%E2%80%9CWindows%2010%20and%20later%E2%80%9D%3C%2FLI%3E%0A%3CLI%3EProfile%20%3D%20%E2%80%9CAdministrative%20Templates%E2%80%9D%3CUL%3E%0A%3CLI%3ECreate%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3EName%20%3D%20%E2%80%9CUSB%20Storage%20Control%E2%80%9D%3C%2FLI%3E%0A%3CLI%3EDescription%20%3D%20%E2%80%9C%3CEM%3EOptionally%20enter%20a%20value%3C%2FEM%3E%E2%80%9D%3CUL%3E%0A%3CLI%3ENext%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3EComputer%20Configuration%20%26gt%3B%20System%20%26gt%3B%20Device%20Installation%20%26gt%3B%20Device%20Installation%20Restrictions%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22USB5.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F213743iBEC0712C2C92CBBB%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22USB5.PNG%22%20alt%3D%22USB5.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThere%20are%205%20configuration%20settings%20that%20will%20allow%20you%20to%20control%20the%20use%20of%20USB%20devices.%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EAllow%20installation%20of%20devices%20that%20match%20any%20of%20these%20device%20IDs%3CUL%3E%0A%3CLI%3EDefine%20the%20set%20of%20Hardware%20devices%20allowed%20for%20the%20managed%20devices%20by%20this%20Policy%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3EAllow%20installation%20of%20devices%20using%20drivers%20that%20match%20these%20device%20setup%20classes%3CUL%3E%0A%3CLI%3EDefine%20the%20set%20of%20Hardware%20devices%20allowed%20for%20the%20managed%20devices%20by%20this%20Policy%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3EPrevent%20installation%20of%20devices%20not%20described%20by%20other%20policy%20settings%3CUL%3E%0A%3CLI%3EIf%20enabled%20only%20the%20policy%20defined%20settings%20will%20work%20or%20be%20denied%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3EPrevent%20installation%20of%20devices%20that%20match%20any%20of%20these%20device%20IDs%3CUL%3E%0A%3CLI%3EDefine%20the%20set%20of%20Hardware%20devices%20denied%20for%20the%20managed%20devices%20by%20this%20Policy%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3EPrevent%20installation%20of%20devices%20using%20drivers%20that%20match%20these%20device%20setup%20classes%3CUL%3E%0A%3CLI%3EDefine%20the%20set%20of%20Hardware%20devices%20denied%20for%20the%20managed%20devices%20by%20this%20Policy%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-2001632045%22%20id%3D%22toc-hId-2001632821%22%20id%3D%22toc-hId-2001632821%22%20id%3D%22toc-hId-2001632821%22%3E%3CA%20target%3D%22_blank%22%20name%3D%22_Toc45701252%22%3E%3C%2FA%3ETo%20enable%20the%20ability%20to%20restrict%20devices%3C%2FH2%3E%0A%3CUL%3E%0A%3CLI%3E%E2%80%9CEnable%E2%80%9D%20%E2%80%93%20Prevent%20installation%20of%20devices%20not%20described%20by%20other%20policy%20settings%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22USB6.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F213742iBE680E12DA03C58E%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22USB6.PNG%22%20alt%3D%22USB6.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-194177582%22%20id%3D%22toc-hId-194178358%22%20id%3D%22toc-hId-194178358%22%20id%3D%22toc-hId-194178358%22%3E%3CA%20target%3D%22_blank%22%20name%3D%22_Toc45701253%22%3E%3C%2FA%3ETo%20define%20unique%20devices%20allowed%20to%20be%20installed%3C%2FH2%3E%0A%3CUL%3E%0A%3CLI%3EAllow%20installation%20of%20devices%20that%20match%20any%20of%20these%20device%20IDs%3CUL%3E%0A%3CLI%3EEnabled%3CUL%3E%0A%3CLI%3EValue%20%3D%20%3CEM%3EHardware%20Id%E2%80%99s%20(captured%20from%20device%20manager)%3C%2FEM%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CEM%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22USB7.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F213740i4075CA67EBD1604C%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22USB7.PNG%22%20alt%3D%22USB7.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22USB8.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F213746i24722046C1EF511C%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22USB8.PNG%22%20alt%3D%22USB8.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20target%3D%22_blank%22%20name%3D%22_Toc45701254%22%3E%3C%2FA%3ETo%20define%20unique%20classes%20of%20devices%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%22Allow%20installation%20of%20devices%20using%20drivers%20that%20match%20these%20device%20setup%20classes%E2%80%9D%3CUL%3E%0A%3CLI%3EEnabled%3CUL%3E%0A%3CLI%3EValue%20%3D%20%7B4D36E96B-E325-11CE-BFC1-08002BE10318%7D%3C%2FLI%3E%0A%3CLI%3EValue%20%3D%20%7B4D36E96F-E325-11CE-BFC1-08002BE10318%7D%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EExample%20highlighted%20in%20yellow%20for%20keyboard%20and%20mouse%20classes.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22USB9.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F213745iEDB1396442B3DC0C%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22USB9.PNG%22%20alt%3D%22USB9.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22USB10.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F213747i312BD9F1532EC274%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22USB10.PNG%22%20alt%3D%22USB10.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId--1742359600%22%20id%3D%22toc-hId--1742358824%22%20id%3D%22toc-hId--1742358824%22%20id%3D%22toc-hId--1742358824%22%3E%3CA%20target%3D%22_blank%22%20name%3D%22_Toc45701255%22%3E%3C%2FA%3ERevoke%20previously%20used%20USB%20storage%3C%2FH1%3E%0A%3CH2%20id%3D%22toc-hId-874235952%22%20id%3D%22toc-hId-874236728%22%20id%3D%22toc-hId-874236728%22%20id%3D%22toc-hId-874236728%22%3E%3CA%20target%3D%22_blank%22%20name%3D%22_Toc45701256%22%3E%3C%2FA%3EUninstall%20device%20driver(s)%20via%20Device%20Manager%3C%2FH2%3E%0A%3CP%3EUSB%20devices%20that%20have%20already%20been%20used%20have%20had%20the%20device%20driver%20installed%2C%20therefore%20the%20control%20of%20these%20devices%20won%E2%80%99t%20work%20until%20the%20drivers%20have%20first%20been%20uninstalled.%20Looking%20at%20the%20Device%20Manager%20console%20image%20below%2C%20there%20are%20two%20USB%20storage%20devices%20in%20use.%20An%20approved%20SanDisk%20and%20an%20unapproved%20Generic%20USB%20drive.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22USB11.PNG%22%20style%3D%22width%3A%20651px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F213748i6B81C926170ABC60%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22USB11.PNG%22%20alt%3D%22USB11.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ERight%20clicking%20on%20the%20device%20will%20provide%20the%20admin%20with%20the%20ability%20to%20select%2C%20%E2%80%9CUninstall%E2%80%9D.%20Once%20the%20device%20has%20been%20uninstalled%20the%20device%20will%20no%20longer%20be%20able%20to%20be%20used%20on%20this%20host.%26nbsp%3B%20Since%20the%20policy%20controls%20the%20installation%20of%20the%20driver%20for%20the%20USB%20device.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22USB12.PNG%22%20style%3D%22width%3A%20648px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F213749i188F3834AF768502%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22USB12.PNG%22%20alt%3D%22USB12.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20target%3D%22_blank%22%20name%3D%22_Toc45701257%22%3E%3C%2FA%3EUninstall%20device%20driver(s)%20via%20Devcon%3C%2FP%3E%0A%3CP%3EIn%20a%20large%20enterprise%20visiting%20individual%20workstations%20isn%E2%80%99t%20a%20reasonable%20situation%2C%20therefore%20processing%20from%20a%20command%20line%20will%20be%20necessary.%3C%2FP%3E%0A%3CP%3EDevcon%20is%20a%20part%20of%20the%20Windows%20Driver%20Kit%20(WDK)%20so%20in%20order%20to%20gain%20access%20an%20instance%20of%20WDK%20will%20be%20required%20to%20be%20installed.%26nbsp%3B%20Installing%20by%20itself%20won%E2%80%99t%20make%20the%20WDK%20fully%20usable%20since%20it%20requires%20Visual%20Studio.%26nbsp%3B%20Since%20you%20are%20looking%20to%20gain%20access%20to%20Devcon%2C%20there%20is%20no%20need%20to%20install%20Visual%20Studio%20(VS).%26nbsp%3B%20It%20would%20probably%20be%20best%20that%20this%20install%20be%20completed%20on%20a%20lab%20device%20to%20not%20pollute%20a%20desktop%20with%20unnecessary%20binaries%20and%20just%20copy%20the%20files%20needed.%3C%2FP%3E%0A%3CP%3EDownloads%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows-hardware%2Fdrivers%2Fdownload-the-wdk%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows-hardware%2Fdrivers%2Fdownload-the-wdk%3C%2FA%3E%3C%2FP%3E%0A%3CP%3ESteps%20required%20to%20install%20WDK%20to%20gain%20access%20to%20Devcon%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EDownload%20WDK%20for%20Windows%2010%2C%20version%209999%3CUL%3E%0A%3CLI%3EExample%202004%20-%20%3CA%20href%3D%22https%3A%2F%2Fgo.microsoft.com%2Ffwlink%2F%3Flinkid%3D2128854%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgo.microsoft.com%2Ffwlink%2F%3Flinkid%3D2128854%3C%2FA%3E%3CUL%3E%0A%3CLI%3EInstall%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22USB13.PNG%22%20style%3D%22width%3A%20979px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F213750i68D0D1D0C521CC3C%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22USB13.PNG%22%20alt%3D%22USB13.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3BNext%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22USB14.PNG%22%20style%3D%22width%3A%20964px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F213751i240B1171DFC0A774%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22USB14.PNG%22%20alt%3D%22USB14.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3BNext%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22USB15.PNG%22%20style%3D%22width%3A%20977px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F213752i6E2F0A28CB2787B9%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22USB15.PNG%22%20alt%3D%22USB15.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3BNext%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22USB16.PNG%22%20style%3D%22width%3A%20979px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F213753iEE1F44C05CA0B106%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22USB16.PNG%22%20alt%3D%22USB16.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3BAccept%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22USB17.PNG%22%20style%3D%22width%3A%20988px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F213756i942664AB781761AD%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22USB17.PNG%22%20alt%3D%22USB17.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22USB18.PNG%22%20style%3D%22width%3A%20974px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F213754i7945860122E93100%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22USB18.PNG%22%20alt%3D%22USB18.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EClose%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22USB19.PNG%22%20style%3D%22width%3A%20954px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F213755i9A002179D0A93D45%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22USB19.PNG%22%20alt%3D%22USB19.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOnce%20completed%20find%20the%20binaries%20that%20will%20be%20needed.%26nbsp%3B%20Generally%2C%20it%20will%20be%20x64%20and%20possibly%20x86%20but%20x64%2C%20x86%2C%20arm%20and%20arm64%20will%20all%20be%20available.%20Copy%20the%20files%20to%20desired%20host.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22USB20.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F213758i166C7E927C48D179%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22USB20.PNG%22%20alt%3D%22USB20.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--933218511%22%20id%3D%22toc-hId--933217735%22%20id%3D%22toc-hId--933217735%22%20id%3D%22toc-hId--933217735%22%3E%3CA%20target%3D%22_blank%22%20name%3D%22_Toc45701258%22%3E%3C%2FA%3ESubset%20of%20Devcon%20commands%20for%20USB%20storage%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENote%3A%20Be%20extremely%20careful!%26nbsp%3B%20ALL%20devices%20for%20the%20host%20are%20exposed%20with%20this%20utility.%26nbsp%3B%20You%20could%20damage%20the%20host%20irreparably%20if%20the%20wrong%20drivers%20are%20removed.%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1683377041%22%20id%3D%22toc-hId-1683377817%22%20id%3D%22toc-hId-1683377817%22%20id%3D%22toc-hId-1683377817%22%3E%3CA%20target%3D%22_blank%22%20name%3D%22_Toc45701259%22%3E%3C%2FA%3EDevcon%20Examples%3A%3C%2FH3%3E%0A%3CP%3EChange%20directory%20to%20the%20Devcon%20binary%20that%20will%20be%20used%20for%20the%20process%3C%2FP%3E%0A%3CP%3EExample%3A%20cd%20C%3A%5CProgram%20Files%20(x86)%5CWindows%20Kits%5C10%5CTools%5Cx64%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--124077422%22%20id%3D%22toc-hId--124076646%22%20id%3D%22toc-hId--124076646%22%20id%3D%22toc-hId--124076646%22%3E%3CA%20target%3D%22_blank%22%20name%3D%22_Toc45701260%22%3E%3C%2FA%3EList%20all%20connected%20disk%20drives%3C%2FH3%3E%0A%3CP%3E%3CSPAN%3EThis%20isn't%20just%20USB%20drives%20shown%20in%20this%20command%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3Edevcon%20hwids%20%3DdiskDrive%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--1931531885%22%20id%3D%22toc-hId--1931531109%22%20id%3D%22toc-hId--1931531109%22%20id%3D%22toc-hId--1931531109%22%3E%3CA%20target%3D%22_blank%22%20name%3D%22_Toc45701261%22%3E%3C%2FA%3ERemove%20specific%20drivers%20for%20defined%20USB%20drives%3C%2FH3%3E%0A%3CP%3EIf%20a%20drive%20was%20added%20prior%20to%20the%20policy%2C%20then%20the%20driver%20already%20exists%20and%20will%20allow%20the%20user%20to%20continue%20to%20use%20an%20unapproved%20device%3C%2FP%3E%0A%3CP%3Edevcon%20%2Fr%20remove%20%3CEM%3E%3CHDWID%3E%3C%2FHDWID%3E%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3EExample%3A%20devcon%20%2Fr%20remove%20USBSTOR%5CDisk________________________0.00%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-555980948%22%20id%3D%22toc-hId-555981724%22%20id%3D%22toc-hId-555981724%22%20id%3D%22toc-hId-555981724%22%3E%3CA%20target%3D%22_blank%22%20name%3D%22_Toc45701262%22%3E%3C%2FA%3E%3CSPAN%3EDevcon%20command%20line%20syntax%3C%2FSPAN%3E%3C%2FH3%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows-hardware%2Fdrivers%2Fdevtest%2Fdevcon-examples%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows-hardware%2Fdrivers%2Fdevtest%2Fdevcon-examples%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CA%20target%3D%22_blank%22%20name%3D%22_Toc45701263%22%3E%3C%2FA%3EFind%20USB%20Storage%20in%20use%20with%20Microsoft%20Defender%20ATP%3C%2FP%3E%0A%3CP%3EWith%20Microsoft%20Defender%20ATP%20you%20can%20use%20the%20%E2%80%9CAdvanced%20Hunting%E2%80%9D%20portal%20to%20search%20for%20USB%20devices%20that%20have%20been%20mounted%20on%20your%20users%20devices%20that%20are%20being%20managed%20by%20MD%20ATP.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--682394293%22%20id%3D%22toc-hId--682393517%22%20id%3D%22toc-hId--682393517%22%20id%3D%22toc-hId--682393517%22%3E%3CA%20target%3D%22_blank%22%20name%3D%22_Toc45701264%22%3E%3C%2FA%3EAdvanced%20Hunting%3C%2FH2%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fsecuritycenter.windows.com%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fsecuritycenter.windows.com%2F%3C%2FA%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ESelect%20%E2%80%9CAdvanced%20Hunting%E2%80%9D%3C%2FLI%3E%0A%3CLI%3ESelect%20the%20%E2%80%9CQuery%E2%80%9D%20tab%3C%2FLI%3E%0A%3CLI%3ECopy%20and%20paste%20the%20one%20of%20the%20below%20into%20the%20Query%20window%3CUL%3E%0A%3CLI%3EClick%20%E2%80%9CRun%20Query%E2%80%9D%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22USB21.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F213757iF5937A93A7FA463E%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22USB21.PNG%22%20alt%3D%22USB21.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1934201259%22%20id%3D%22toc-hId-1934202035%22%20id%3D%22toc-hId-1934202035%22%20id%3D%22toc-hId-1934202035%22%3E%3CA%20target%3D%22_blank%22%20name%3D%22_Toc45701265%22%3E%3C%2FA%3EQuery%20for%20Mounted%20Storage%3C%2FH3%3E%0A%3CP%3EThe%20query%20below%20will%20list%20%3CSTRONG%3EALL%3C%2FSTRONG%3E%20Defender%20clients%20that%20have%20mounted%20a%20USB%20storage%20device%20in%20the%20past%20day.%20This%20can%20extend%20backwards%20further%20by%20adjusting%20the%20Timestamp%20variable.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%2F%2F%20Find%20all%20%22Mounted%22%20storage%20activity%20within%20the%20past%20day%3C%2FP%3E%0A%3CP%3EDeviceEvents%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%7C%20where%20ActionType%20%3D%3D%20%22UsbDriveMount%22%20and%20Timestamp%20%26gt%3B%20ago(1d)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%7C%20extend%20DriveLetter%20%3D%20parse_json(AdditionalFields).DriveLetter%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%7C%20extend%20BusType%20%3D%20parse_json(AdditionalFields).BusType%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%7C%20extend%20ProductName%20%3D%20parse_json(AdditionalFields).ProductName%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%7C%20extend%20ProductRevision%20%3D%20parse_json(AdditionalFields).ProductRevision%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%7C%20extend%20SerialNumber%20%3D%20parse_json(AdditionalFields).SerialNumber%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%7C%20extend%20Manufacturer%20%3D%20parse_json(AdditionalFields).Manufacturer%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%7C%20extend%20Volume%20%3D%20parse_json(AdditionalFields).Volume%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%7C%20project%20DeviceName%2C%20DeviceId%2C%20Timestamp%2C%20DriveLetter%2C%20Manufacturer%2C%20ProductName%2C%20BusType%2C%20ProductRevision%2C%20SerialNumber%2C%20Volume%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-126746796%22%20id%3D%22toc-hId-126747572%22%20id%3D%22toc-hId-126747572%22%20id%3D%22toc-hId-126747572%22%3E%3CA%20target%3D%22_blank%22%20name%3D%22_Toc45701266%22%3E%3C%2FA%3EQuery%20for%20Mounted%20Storage%20that%20isn%E2%80%99t%20approved%3C%2FH3%3E%0A%3CP%3EThe%20query%20below%20will%20list%20%3CSTRONG%3EALL%3C%2FSTRONG%3E%20Defender%20clients%20that%20have%20mounted%20a%20USB%20storage%20device%20in%20the%20past%20day%20but%20aren%E2%80%99t%20a%20part%20of%20a%20defined%20set%20of%20approved%20Manufacturer%20and%20Product%20Name.%20This%20can%20extend%20backwards%20further%20by%20adjusting%20the%20Timestamp%20variable.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%2F%2F%20Find%20all%20%22Mounted%22%20storage%20activity%20that%20isn't%20approved%20via%20%22Manufacturer%22%20and%20%22ProductName%22%20within%20the%20past%20day%3C%2FP%3E%0A%3CP%3EDeviceEvents%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%7C%20where%20ActionType%20%3D%3D%20%22UsbDriveMount%22%20and%20Timestamp%20%26gt%3B%20ago(1d)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%7C%20extend%20DriveLetter%20%3D%20parse_json(AdditionalFields).DriveLetter%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%7C%20extend%20BusType%20%3D%20parse_json(AdditionalFields).BusType%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%7C%20extend%20ProductName%20%3D%20parse_json(AdditionalFields).ProductName%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%7C%20extend%20ProductRevision%20%3D%20parse_json(AdditionalFields).ProductRevision%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%7C%20extend%20SerialNumber%20%3D%20parse_json(AdditionalFields).SerialNumber%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%7C%20extend%20Manufacturer%20%3D%20parse_json(AdditionalFields).Manufacturer%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%7C%20extend%20Volume%20%3D%20parse_json(AdditionalFields).Volume%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%7C%20extend%20ClassName%20%3D%20parse_json(AdditionalFields).ClassName%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%7C%20where%20Manufacturer%20!startswith%20%22SanDisk%22%20and%20ProductName%20!startswith%20%22Extreme%20Pro%22%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%7C%20project%20ClassName%2C%20DeviceName%2C%20DeviceId%2C%20Timestamp%2C%20DriveLetter%2C%20Manufacturer%2C%20ProductName%2C%20BusType%2C%20ProductRevision%2C%20SerialNumber%2C%20Volume%3C%2FP%3E%0A%3CP%3E%3CA%20target%3D%22_blank%22%20name%3D%22_Toc45701267%22%3E%3C%2FA%3EQuery%20for%20storage%20connectivity%20attempts%3C%2FP%3E%0A%3CP%3EThe%20query%20below%20will%20list%20%3CSTRONG%3EALL%3C%2FSTRONG%3E%20Defender%20clients%20that%20have%20attempted%20to%20mount%20a%20USB%20storage%20device.%26nbsp%3B%20This%20includes%20both%20successful%20and%20unsuccessful%20attempts%20This%20can%20extend%20backwards%20further%20by%20adjusting%20the%20Timestamp%20variable.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%2F%2F%20Find%20all%20storage%20device%20connection%20activity%20in%20the%20past%20day%3C%2FP%3E%0A%3CP%3EDeviceEvents%3C%2FP%3E%0A%3CP%3E%7C%20where%20ActionType%20%3D%3D%20%22PnpDeviceConnected%22%20and%20Timestamp%20%26gt%3B%20ago(1d)%3C%2FP%3E%0A%3CP%3E%7C%20extend%20ClassName%20%3D%20parse_json(AdditionalFields).ClassName%3C%2FP%3E%0A%3CP%3E%7C%20extend%20DeviceId%20%3D%20parse_json(AdditionalFields).DeviceId%3C%2FP%3E%0A%3CP%3E%7C%20extend%20VendorIds%20%3D%20parse_json(AdditionalFields).VendorIds%3C%2FP%3E%0A%3CP%3E%7C%20extend%20DeviceDescription%20%3D%20parse_json(AdditionalFields).DeviceDescription%3C%2FP%3E%0A%3CP%3E%7C%20project%20ClassName%2C%20DeviceDescription%2C%20Timestamp%2C%20DeviceId%2C%20VendorIds%2C%20DeviceName%3C%2FP%3E%0A%3CP%3E%7C%20where%20ClassName%20contains%20%22drive%22%20or%20ClassName%20contains%20%22usb%22%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20target%3D%22_blank%22%20name%3D%22_Toc45701268%22%3E%3C%2FA%3EQuery%20for%20storage%20connectivity%20attempts%20or%20mounts%3C%2FP%3E%0A%3CP%3EThe%20query%20below%20will%20list%20%3CSTRONG%3EALL%3C%2FSTRONG%3E%20Defender%20clients%20that%20have%20attempted%20to%20connect%20or%20mount%20a%20USB%20storage%20device.%26nbsp%3B%20This%20includes%20both%20successful%20and%20unsuccessful%20attempts%20This%20can%20extend%20backwards%20further%20by%20adjusting%20the%20Timestamp%20variable.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%2F%2F%20List%20all%20Disk%20storage%20connection%20or%20mount%20activities%20in%20the%20past%20day%3C%2FP%3E%0A%3CP%3EDeviceEvents%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%7C%20where%20(ActionType%20%3D%3D%20%22UsbDriveMount%22%20or%20ActionType%20%3D%3D%20%22PnpDeviceConnected%22)%20and%20Timestamp%20%26gt%3B%20ago(1d)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%7C%20extend%20DriveLetter%20%3D%20parse_json(AdditionalFields).DriveLetter%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%7C%20extend%20BusType%20%3D%20parse_json(AdditionalFields).BusType%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%7C%20extend%20ProductName%20%3D%20parse_json(AdditionalFields).ProductName%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%7C%20extend%20ProductRevision%20%3D%20parse_json(AdditionalFields).ProductRevision%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%7C%20extend%20SerialNumber%20%3D%20parse_json(AdditionalFields).SerialNumber%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%7C%20extend%20Manufacturer%20%3D%20parse_json(AdditionalFields).Manufacturer%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%7C%20extend%20ClassName%20%3D%20parse_json(AdditionalFields).ClassName%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%7C%20extend%20Volume%20%3D%20parse_json(AdditionalFields).Volume%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%7C%20extend%20DeviceDescription%20%3D%20parse_json(AdditionalFields).DeviceDescription%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%7C%20project%20Timestamp%2C%20DeviceName%2C%20DriveLetter%2C%20Manufacturer%2C%20ProductName%2C%20BusType%2C%20ProductRevision%2C%20SerialNumber%2C%20Volume%2C%20ClassName%2C%20DeviceDescription%2C%20DeviceId%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%7C%20where%20ClassName%20contains%20%22drive%22%20or%20ClassName%20contains%20%22usb%22%20or%20DriveLetter%20contains%20%22%3A%22%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWell%20that%20covers%20it%20for%20this%20edition%20of%20USB%20management%20control.%20So%20unfortunately%20for%20Raven%2C%20there%20is%20no%20way%20for%20her%20to%20define%20%E2%80%9CCritters%20allowed%20in%20the%20yard%E2%80%9D%20but%20there%20are%20built-in%20control%20features%20available%20for%20Windows%20desktop%20and%20server%20admins%20to%20control%20what%20USB%20devices%20can%20be%20plugged%20into%20managed%20devices.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20target%3D%22_blank%22%20name%3D%22_Toc45701269%22%3E%3C%2FA%3EReference%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fprevious-versions%2Fwindows%2Fit-pro%2Fwindows-server-2008-R2-and-2008%2Fcc731387(v%3Dws.10)%3Fredirectedfrom%3DMSDN%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fprevious-versions%2Fwindows%2Fit-pro%2Fwindows-server-2008-R2-and-2008%2Fcc731387(v%3Dws.10)%3Fredirectedfrom%3DMSDN%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fsecurity%2Fthreat-protection%2Fdevice-control%2Fcontrol-usb-devices-using-intune%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fsecurity%2Fthreat-protection%2Fdevice-control%2Fcontrol-usb-devices-using-intune%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmem%2Fintune%2Fconfiguration%2Fadministrative-templates-windows%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmem%2Fintune%2Fconfiguration%2Fadministrative-templates-windows%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fwindows-itpro-docs%2Fblob%2Fmaster%2Fwindows%2Fsecurity%2Fthreat-protection%2Fdevice-control%2Fcontrol-usb-devices-using-intune.md%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fwindows-itpro-docs%2Fblob%2Fmaster%2Fwindows%2Fsecurity%2Fthreat-protection%2Fdevice-control%2Fcontrol-usb-devices-using-intune.md%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2FMicrosoft-threat-protection-Hunting-Queries%2Fblob%2Fmaster%2FExfiltration%2FMap%2520external%2520devices.txt%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fmicrosoft%2FMicrosoft-threat-protection-Hunting-Queries%2Fblob%2Fmaster%2FExfiltration%2FMap%2520external%2520devices.txt%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fmicrosoft-defender-atp%2Fadvanced-hunting-updates-usb-events-machine-level-actions-and%2Fba-p%2F824152%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fmicrosoft-defender-atp%2Fadvanced-hunting-updates-usb-events-machine-level-actions-and%2Fba-p%2F824152%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fwww.microsoft.com%2Fsecurity%2Fblog%2F2018%2F12%2F19%2Fwindows-defender-atp-has-protections-for-usb-and-removable-devices%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.microsoft.com%2Fsecurity%2Fblog%2F2018%2F12%2F19%2Fwindows-defender-atp-has-protections-for-usb-and-removable-devices%2F%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fsecurity%2Fthreat-protection%2Fmicrosoft-defender-atp%2Fattack-surface-reduction%23block-untrusted-and-unsigned-processes-that-run-from-usb%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fsecurity%2Fthreat-protection%2Fmicrosoft-defender-atp%2Fattack-surface-reduction%23block-untrusted-and-unsigned-processes-that-run-from-usb%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1691477%22%20slang%3D%22en-US%22%3E%3CP%3EMicrosoft%20has%20built%20in%20security%20controls%20in%20our%20modern%20o%2Fs%E2%80%99s%20to%20assist%20our%20customers%20in%20controlling%20the%20use%20of%20defined%20USB%20devices.%20The%20explanation%20below%20covers%20USB%20storage%2C%20but%20it%20really%20pertains%20to%20ALL%20USB%20devices%20that%20can%20be%20controlled.%20So%2C%20lets%20walk%20through%20the%20device%20management%20and%20control%20of%20devices.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1691477%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPaulBergson%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2131187%22%20slang%3D%22en-US%22%3ERe%3A%20Manage%20USB%20Devices%20on%20Windows%20Hosts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2131187%22%20slang%3D%22en-US%22%3E%3CP%3EExcellent%20document%2C%20very%20useful%20for%20my%20customers%3C%2FP%3E%3C%2FLINGO-BODY%3E
Microsoft

 

Raven is a Miniature Schnauzer that doesn’t like small critters in the yard unless they can fly. This gives Raven an insurmountable challenge, since my wife is such an avid gardener. We live on the side of a hill and at the top of the backyard is a manmade bog which feeds a downhill river to a to a pond with trees and flowers everywhere. Along with this are bird feeders and some birds love to scatter the feed from the feeders to the ground. So, our back yard is a perfect setting to get a lot of squirrels', chipmunks, etc… When we go out the back door to the yard, Raven races out trying to catch up with the critters, but she just isn’t fast enough, and all the animals disperse quickly.

 

This chaos makes me think about some enterprise admins who are concerned about having to control the dispersion of enterprise data being stored on unapproved USB devices. The expectation that users are to only use USB data storage devices that are approved by corporate guidelines, without built-in security controls, is a task admins will never be able to achieve. This expectation is similar to the position of Raven ever catching a squirrel out back, it just won't happen. Someone will forget a device, or they just don't appreciate the governance definition and will plug in any storage device they have access to. Even though there are many stories on the internet that talk about attackers loading USB storage devices with malware and intentionally placing them into a location that a target victim will find. The victim then connects the USB device into their workstations and unknowingly gets compromised.

 

Fortunately, Microsoft has built in security controls in our modern o/s’s to assist our customers in controlling the use of defined USB devices. The explanation below covers USB storage, but it really pertains to ALL USB devices that can be controlled. So, lets walk through the device management and control of devices.

 

USB Device management on Windows

Once a USB device has been inserted within the windows ecosystem, the device driver(s) have been installed and the ability to prevent use is no longer available, until the driver(s) have been removed/uninstalled. The steps for uninstall/removal are defined later in this document, Revoke previously used USB storage.

NOTE Always test and refine these settings with a pilot group of users and devices first, before widely distributing to your organization!

 

USB device management with Group Policy

To block all removable storage

Computer Configuration > Policies > Administrative Templates > System > Removable Storage Access:

  • “Set time (in seconds) to force reboot”
    • 3600
      • Note: If no reboot is forced, the access right does not take effect until the operating system is restarted.
      • The example setting above gives the user one hour before the system reboots
    • “All Removable Storage classes: Deny all Access”
      • Enabled

Manage what type of USB devices can be used

The Group Policy controls are located at:
Computer Configuration > Policies > Administrative Templates > System > Device Installation > Device Installation Restrictions

To allow certain storage types

  • “Set time (in seconds) to force reboot
    • 3600
      • Note: If no reboot is forced, the access right does not take effect until the operating system is restarted.
      • The example setting above gives the user one hour before the system reboots
    • Prevent installation of devices not described by other policy settings
      • Enabled
        • If you enable this policy setting, Windows is prevented from installing or updating the device driver for any device that is not described by either the "Allow installation of devices that match any of these device IDs" or the "Allow installation of devices for these device classes" policy setting.

To define unique devices allowed to be installed

  • "Allow installation of devices that match any of these device IDs"
    • Enabled
      • Show
        • Value = Hardware Id’s (captured from device manager)

USB7.PNGUSB2.PNG

 

To define unique classes of devices

  • "Allow installation of devices for these device setup classes"
    • Enabled
      • Show
        • Value - {4D36E96B-E325-11CE-BFC1-08002BE10318}
        • Value - {4D36E96F-E325-11CE-BFC1-08002BE10318}

Example highlighted in yellow for keyboard and mouse classes.

 

USB9.PNG

 USB4.PNG

 

Notifications to users

  • “Display a custom message title when device installation is prevented by a policy setting”
    • Message “Title” for a pop box when the user attempts to install an unapproved device
  • “Display a custom message when installation is prevented by a policy setting”
    • Message “Body” for a pop box when the user attempts to install an unapproved device

 

USB device management with Intune

To block all removable storage

  • Ensure that the device is a Modern Managed Intune device
  • Portal – https://endpoint.microsoft.com/#home
    • Microsoft Modern Managed Desktop
  • Select “Devices”
  • Select “Configuration profiles”
  • Select “+ Create profile”
    • Platform = “Windows 10 and later”
    • Profile = “Device Restrictions”
      • Create
    • Name = “Block All USB Storage
    • Description = “Optional
      • Next
    • Select “General”
      • “Removable storage” = “Block”
      • Next
    • Select “+ Select groups to include”
      • Select user(s)/group(s)
        • Select
      • Next
      • Next
    • Create

 

Manage what type of USB devices can be used

To manage USB control from Intune, a “Configuration Profile” will need to be created.

https://endpoint.microsoft.com

  • Select “Devices”
  • Select “Configuration profiles”
  • Select “+ Create profile”
    • Platform = “Windows 10 and later”
    • Profile = “Administrative Templates”
      • Create
    • Name = “USB Storage Control”
    • Description = “Optionally enter a value
      • Next
    • Computer Configuration > System > Device Installation > Device Installation Restrictions

USB5.PNG

 

 

There are 5 configuration settings that will allow you to control the use of USB devices.

  • Allow installation of devices that match any of these device IDs
    • Define the set of Hardware devices allowed for the managed devices by this Policy
  • Allow installation of devices using drivers that match these device setup classes
    • Define the set of Hardware devices allowed for the managed devices by this Policy
  • Prevent installation of devices not described by other policy settings
    • If enabled only the policy defined settings will work or be denied
  • Prevent installation of devices that match any of these device IDs
    • Define the set of Hardware devices denied for the managed devices by this Policy
  • Prevent installation of devices using drivers that match these device setup classes
    • Define the set of Hardware devices denied for the managed devices by this Policy

 

To enable the ability to restrict devices

  • “Enable” – Prevent installation of devices not described by other policy settings

USB6.PNG

 

To define unique devices allowed to be installed

  • Allow installation of devices that match any of these device IDs
    • Enabled
      • Value = Hardware Id’s (captured from device manager)

USB7.PNG

 

USB8.PNG

 

To define unique classes of devices

  • "Allow installation of devices using drivers that match these device setup classes”
    • Enabled
      • Value = {4D36E96B-E325-11CE-BFC1-08002BE10318}
      • Value = {4D36E96F-E325-11CE-BFC1-08002BE10318}

Example highlighted in yellow for keyboard and mouse classes.

USB9.PNG

 

USB10.PNG

 

Revoke previously used USB storage

Uninstall device driver(s) via Device Manager

USB devices that have already been used have had the device driver installed, therefore the control of these devices won’t work until the drivers have first been uninstalled. Looking at the Device Manager console image below, there are two USB storage devices in use. An approved SanDisk and an unapproved Generic USB drive.

USB11.PNG

 

Right clicking on the device will provide the admin with the ability to select, “Uninstall”. Once the device has been uninstalled the device will no longer be able to be used on this host.  Since the policy controls the installation of the driver for the USB device.

USB12.PNG

 

Uninstall device driver(s) via Devcon

In a large enterprise visiting individual workstations isn’t a reasonable situation, therefore processing from a command line will be necessary.

Devcon is a part of the Windows Driver Kit (WDK) so in order to gain access an instance of WDK will be required to be installed.  Installing by itself won’t make the WDK fully usable since it requires Visual Studio.  Since you are looking to gain access to Devcon, there is no need to install Visual Studio (VS).  It would probably be best that this install be completed on a lab device to not pollute a desktop with unnecessary binaries and just copy the files needed.

Downloads:

https://docs.microsoft.com/en-us/windows-hardware/drivers/download-the-wdk

Steps required to install WDK to gain access to Devcon

USB13.PNG

 Next

USB14.PNG

 Next

USB15.PNG

 Next

USB16.PNG

 Accept

USB17.PNG

 

USB18.PNG

Close

USB19.PNG

 

 

Once completed find the binaries that will be needed.  Generally, it will be x64 and possibly x86 but x64, x86, arm and arm64 will all be available. Copy the files to desired host.

 

USB20.PNG

 

Subset of Devcon commands for USB storage

 

Note: Be extremely careful!  ALL devices for the host are exposed with this utility.  You could damage the host irreparably if the wrong drivers are removed.

Devcon Examples:

Change directory to the Devcon binary that will be used for the process

Example: cd C:\Program Files (x86)\Windows Kits\10\Tools\x64

List all connected disk drives

This isn't just USB drives shown in this command

devcon hwids =diskDrive 

Remove specific drivers for defined USB drives

If a drive was added prior to the policy, then the driver already exists and will allow the user to continue to use an unapproved device

devcon /r remove <HdwId>

Example: devcon /r remove USBSTOR\Disk________________________0.00

 

Devcon command line syntax

https://docs.microsoft.com/en-us/windows-hardware/drivers/devtest/devcon-examples

Find USB Storage in use with Microsoft Defender ATP

With Microsoft Defender ATP you can use the “Advanced Hunting” portal to search for USB devices that have been mounted on your users devices that are being managed by MD ATP.

 

Advanced Hunting

https://securitycenter.windows.com/

  • Select “Advanced Hunting”
  • Select the “Query” tab
  • Copy and paste the one of the below into the Query window
    • Click “Run Query”

USB21.PNG

 

Query for Mounted Storage

The query below will list ALL Defender clients that have mounted a USB storage device in the past day. This can extend backwards further by adjusting the Timestamp variable.

 

 

// Find all "Mounted" storage activity within the past day

DeviceEvents

 | where ActionType == "UsbDriveMount" and Timestamp > ago(1d)

 | extend DriveLetter = parse_json(AdditionalFields).DriveLetter

 | extend BusType = parse_json(AdditionalFields).BusType

 | extend ProductName = parse_json(AdditionalFields).ProductName

 | extend ProductRevision = parse_json(AdditionalFields).ProductRevision

 | extend SerialNumber = parse_json(AdditionalFields).SerialNumber

 | extend Manufacturer = parse_json(AdditionalFields).Manufacturer

 | extend Volume = parse_json(AdditionalFields).Volume

 | project DeviceName, DeviceId, Timestamp, DriveLetter, Manufacturer, ProductName, BusType, ProductRevision, SerialNumber, Volume

Query for Mounted Storage that isn’t approved

The query below will list ALL Defender clients that have mounted a USB storage device in the past day but aren’t a part of a defined set of approved Manufacturer and Product Name. This can extend backwards further by adjusting the Timestamp variable.

 

 

// Find all "Mounted" storage activity that isn't approved via "Manufacturer" and "ProductName" within the past day

DeviceEvents

 | where ActionType == "UsbDriveMount" and Timestamp > ago(1d)

 | extend DriveLetter = parse_json(AdditionalFields).DriveLetter

 | extend BusType = parse_json(AdditionalFields).BusType

 | extend ProductName = parse_json(AdditionalFields).ProductName

 | extend ProductRevision = parse_json(AdditionalFields).ProductRevision

 | extend SerialNumber = parse_json(AdditionalFields).SerialNumber

 | extend Manufacturer = parse_json(AdditionalFields).Manufacturer

 | extend Volume = parse_json(AdditionalFields).Volume

 | extend ClassName = parse_json(AdditionalFields).ClassName

 | where Manufacturer !startswith "SanDisk" and ProductName !startswith "Extreme Pro"

 | project ClassName, DeviceName, DeviceId, Timestamp, DriveLetter, Manufacturer, ProductName, BusType, ProductRevision, SerialNumber, Volume

Query for storage connectivity attempts

The query below will list ALL Defender clients that have attempted to mount a USB storage device.  This includes both successful and unsuccessful attempts This can extend backwards further by adjusting the Timestamp variable.

 

 

// Find all storage device connection activity in the past day

DeviceEvents

| where ActionType == "PnpDeviceConnected" and Timestamp > ago(1d)

| extend ClassName = parse_json(AdditionalFields).ClassName

| extend DeviceId = parse_json(AdditionalFields).DeviceId

| extend VendorIds = parse_json(AdditionalFields).VendorIds

| extend DeviceDescription = parse_json(AdditionalFields).DeviceDescription

| project ClassName, DeviceDescription, Timestamp, DeviceId, VendorIds, DeviceName

| where ClassName contains "drive" or ClassName contains "usb"

 

Query for storage connectivity attempts or mounts

The query below will list ALL Defender clients that have attempted to connect or mount a USB storage device.  This includes both successful and unsuccessful attempts This can extend backwards further by adjusting the Timestamp variable.

 

 

// List all Disk storage connection or mount activities in the past day

DeviceEvents

 | where (ActionType == "UsbDriveMount" or ActionType == "PnpDeviceConnected") and Timestamp > ago(1d)

 | extend DriveLetter = parse_json(AdditionalFields).DriveLetter

 | extend BusType = parse_json(AdditionalFields).BusType

 | extend ProductName = parse_json(AdditionalFields).ProductName

 | extend ProductRevision = parse_json(AdditionalFields).ProductRevision

 | extend SerialNumber = parse_json(AdditionalFields).SerialNumber

 | extend Manufacturer = parse_json(AdditionalFields).Manufacturer

 | extend ClassName = parse_json(AdditionalFields).ClassName

 | extend Volume = parse_json(AdditionalFields).Volume

 | extend DeviceDescription = parse_json(AdditionalFields).DeviceDescription

 | project Timestamp, DeviceName, DriveLetter, Manufacturer, ProductName, BusType, ProductRevision, SerialNumber, Volume, ClassName, DeviceDescription, DeviceId

 | where ClassName contains "drive" or ClassName contains "usb" or DriveLetter contains ":"

 

Well that covers it for this edition of USB management control. So unfortunately for Raven, there is no way for her to define “Critters allowed in the yard” but there are built-in control features available for Windows desktop and server admins to control what USB devices can be plugged into managed devices.

 

 

Reference

 

 

 

 

1 Comment
Microsoft

Excellent document, very useful for my customers