This is one that is sure to upset a few users. This project came from one of my PowerShell classes. The client had a strict policy that only company issued USB storage devices may be used on company computers. Group Policy can help keep that requirement enforced. They also had a policy that described the files types that can be stored on these USB drivers. The problem is that users were storing files that were not of the approved type. So, what can PowerShell do in this situation? The code below allows the administrator to provide a list of computer names and a list of file name patterns to look for. They were particularly concerned about .exe files. So the pattern for this would be ā*.exeā. Just be fore warned that code like this can be particularly upsetting to users. Make sure that a well known acceptable usage policy is in place in your organization before unleashing this code on your people. 1 2 3 4 5 6 7 8 9 10 11 12...
Welcome to the blogsite of MCTExpert. I am a Microsoft Certified Trainer. Here you will find the real questions that are asked to me by my students.