What is the best/better way to reenumerate USB ports from a script? I need to emulate the same enumeration that occurs when a USB device is either plugged or unglugged to a USB port.
I'm working on a network to restrict access to the ISSO role USB mass storage, only. Management wants to access USB Mass Storage for ISSOs on all workstations while blocking access to USB mass storage to all others... on all the workstations. They also want to that USB ports remain available for everything except Mass Storage.
There are many ways to do it, but the only 'reliable' method, I found so far is to point the HKLM\System\CurrentControlSet\Services\UBSSTOR\ImagePath key to some fake file to block ports and rename it back to access it again.
To do this, I need to do things more two 2...
1. make sure that the ImagePath key always has the false value at startup, and
2. create a login script that affects the ImagePath value when a member of the ISSO group connects... and reset it when they log off.
Which meet the requirements of the direction if only it worked! The problem is that USB devices must be listed again to re-read the ImagePath registry key after each change. Reconnect the device will do, but it would be unwise to rely on a user to restrict access (fox/Coop).
The following Microsoft KB seems to be the way to go, but we do not have compilers on the network...
http://support.Microsoft.com/kb/259695
I know that this hack to the system is not the most elegant, but I'm just trying to make the management happy.
Nobody knows...
1. any (more elegant) way to meet the specified requirement, or
2. a way to re - enumerate USB devices from a script.
Thank you! ... Todd
Hi Todd,
The issue of Windows XP, you have posted is better suited for the IT Pro TechNet public. Please ask your question in the TechNet forums for assistance.
Hope the helps of information.
Tags: Windows
Similar Questions
-
Avoid the fast blink that occurs when testing a Flash animation that has a syntax error?
I teach the development of games using Flash Professional CS6, and one of my students has photosensitive epilepsy. He finds that the "strobe" effect that occurs when he runs the Test film on a film with errors in his script triggers headaches which can be a precursor to an adjustment. Obviously this makes it very difficult for him to complete his laboratory and the assignment of work. Is it possible to prevent a Flash animation running if it contains a syntax error?
I created workaround by adding a bunch of additional images for the beginning of the movie, which displayed a message "SYNTAX ERROR," If the script does not work - it gives my student seconds margin quite the movie, before the start of the stroboscopic effect. I have a single image at the beginning with a goto statement that jumps over the frames of error if the code has no syntax errors.
This seems to work ok, but it's an ugly solution - does anyone know of a better way to deal with this?
Thank you.
Another solution is to use Flash Builder (IMO you should teach this workflow, because it is more suitable for non trivial projects), and then you have several options:
- After an ACE code change, build automatically
- If you have not changed the code, project > Clean
- If you have set up your project so that you get the buttons Flash project, you can click the a (compile in Flash)
These options will simply build the Flash animation without playing, and you can see the warnings or errors in the Panel right before clicking the button Play or Debug.
If all this is just too much for a beginner student, you can still post the film, which creates the swf file without play, watch the Panel of warnings/errors and then launch the SWF in any other way (for example, by double-clicking on it or the HTML page generated).
-
By opening a new tab, the default tab opens to thumbnails based on recent history. The Safari, I want the new tab to open * to the same page, as was active when command-T was hit *. What are the specific actions, to set the default value (preference), new pages to open 'same page '? ('Same page' is check in Safari preferences box).
Note, I've sailed available Support of Mozilla and using about: config have reset browser.newtab.url so that the new tab appears empty (stop followed recent history for this purpose).
Note, most importantly, I found this article of Support Forum, which, although written challenge, gave me a temporary solution:
* https://support.mozilla.org/en-US/questions/891635
(The temporary solution for the Mac OS is to command-click the icon 'Reload current page' in the url/address box in the browser toolbar, which opens a new tab in the same window).
However, I would like to define this as a preference permanent and would ask someone give me a solution. Cheers, teacher
LeProf_7272 wrote:
if I can possibly just create a new config line
You can't, that's why I suggested the modules above. There is no option in the user interface or preferably hidden in Firefox that can duplicate a tab whenever you open a new tab browser.newtab.url can only be set to a fixed address, what address is to be opened in the current tab.
Are the only two built-in methods to duplicate a tab:
- Hold down the Option key and drag the tab to a new position on the tab bar.
- Hold down the command key and click the reload of the address bar.
You can make feature requests by filing development bug reports or by opening the Help menu by clicking on your comments.
-
What is the XMP file that happens when I export mpeg2?
Nice to walk around.
Thank you guys!
Like, how it help me, what I do with it...
IM using CS6...
Sidecar metadata file.
http://en.Wikipedia.org/wiki/Sidecar_file
Premiere Pro / metadata management
http://help.Adobe.com/en_US/PremierePro/CS/using/WSE2397406-3FEB-43df-868D-68EB20BBC021.ht ml
After Effects / XMP metadata
http://help.Adobe.com/en_US/AfterEffects/CS/using/WS7D166319-4319-4F7D-BCF2-28B26E30FB5C.h tml
On the metadata and XMP
http://help.Adobe.com/en_US/Lightroom/using/WS638E3AC9-A04C-4445-A0D3-F7D8BA5CDE37.html
-
LDIF syntax error: what is the reason of this failure when you try to import the new user
What is the reason of this failure when you try to import the new user, followed the book syntax
C:\Users\Administrator\Documents>ldifde-i f Newusers.ldf
Connecting to "practice01.testa01.com".
Registration as current user using SSPI
Import directory of the file "Newusers.ldf".
Loading entries.
There is a syntax error in the input file
Failure on line 3. The last token starts with 'C '.
0 entries modified with success.
An error has occurred in the programHello
The question you have posted is related to LDIFDE with Active Directory in a domain environment, and would be better suited to the TechNet community. Please visit the link below to find a community that will provide the best support.
-
What is the longest cable that you can use for a webcam If you want to move a piece
What is the longest cable that you can use for a webcam If you want to move a room, you want to use as a granny cam
I get up to a cable of length more camera more and then peripheral is not is not recognized. I Yawcam program on my computer which is optimal
for a web camera to use invisably.
According to the official FAQ USB. page here:
http://www.usb.org/developers/usbfaq#cab1 ,
5 m is the maximum length of a USB cable. A lot of points 3 and 4 on the above page dealing with how to deal with scenarios beyond this length.
Personally, I have only ever went up to 4.8 m and it was with an external hard drive (which had its own separate power supply).
-
What is the repayment on BB Plan when someone claim how to repay him?
What is the repayment on BB Plan when someone claim how to repay him?
a man is not satisfied with one of my requested refund application. How I'll pay him back I need money help on this... BB will pay him back as the amout that paid the guy is with the BB help me soon I want to help him get his refund
The following seems to be the way to get the refund if the customer has paid with paypal or cridit card:
-
I want to activate Acrobat Pro 9 serial key and get message that are 2 active activations. We're old computer with problematic material and other is the same pc that I didn't turn off the license and reformatted. What should do?
I didn't know, I had to disable before turning back, but now I don't have this option. Is there a way to disable these two licenses and activate again the good?
Hi vasilisp36877173 ,
Please see these items:- Learn how to enable or disable Adobe applications
Solve the problems of activation and deactivation of Adobe and error messages
Let me know how it goes.
Kind regards
Christian
-
Apple TV 4 will not play my movies that I had in itunes. It says unplayable format, but it is the same format that I use always and a lot of movies? What could this be?
This new IOS is bug.
I had the same error message and tried to "create a different version" in Itunes.
The ITunes says "this video is already formatted correctly."
I tried to play again on the Apple TV and it worked then after a bit of buffering.
-
My old laptop is dying. When I tried to install Photoshop elements 7 on my new laptop, he told me that the serial number is not valid. It's the same number that I used before. What gives
I think that this program is covered in the link below
CS2 (or earlier version) activation server has disappeared, then read below
You MUST use the special version and the serial number on the page, not your original drive or serial number
l http://helpx.adobe.com/x-productkb/Policy-Pricing/Creative-Suite-2-activation-end-Life.htm
NOTE that CS2 will not install on a Mac "modern", and when you install the special version of the PPro2 on a Win7 or Win8 or Win10 computer, you may need to right click on the program icon and select Windows XP compatibility in the popup of option
-
An error occurred while the suspension the 2012 Windows R2 VMS on ESX 5.1 update 1 and ESXi5.0 Udpate3. Can someone help me what is the reason for that and how to fix this?
This issue has been resolved with the article below
-
We are running MDEX 6.2.2 what is the latest version that I can update.
We are running MDEX 6.2.2 what is the latest version that I can go to, and it will work on windows server 2012?
MDEX 6.4.1 is part of the Oracle short trade 3.1.2 support pack. I think for 6.4.1.1 you must reach out to support to get this fix. (Unless your Solaris operating system, whereby 6.4.1.1 is on delivery)
-
I try to add the Youtube widget, but I get a plugin saying blocked black box. I even tried to incorporate both YouTube and it does the same thing. But when I drag the widget Vimeo more, it connects properly. What I am doing wrong and how can I solve this problem?
Make sure that the web browser you are using and its Flash plug-in is up-to-date. Google Chrome has its own plug-in Flash, it updates on its own. Firefox, IE and others have separate plug-ins.
-
'System Exec' output in the same window that called
Hello
I have a complicated program, but let me break it down to what matters.
My labVIEW (exe) application is called by the command prompt. Does some calculations based on arguments that I passed to him.
The thing that I do not quite understand, is how to export the results in the same command line that called. (Not a new window) I'm hoping to run my program in the background, and if I'm hoping to avoid something fancy and you want just the results in the same window that called it.
Any help would be greatly appreciated.
Kind regards
Nyne
It is not really an easy way to do it. On Windows, you have several options:
- Try to use the Windows API commands to the Console (never really had much luck with these).
- Use the console .NET class (I doubt that it works).
- Use a trick I had suggested to copy text from the console just paste text directly into the console window. Joined a VI that does this. Note that it is 8.2 so I am unable to connect the cluster of error due to a bug in 8.2.
-
Original title: Desktop
Can anyone tell how I can configure the desktop as the default screen that appears when I connect to Win 8 rather than having to go from the first layer redundant 'start-up '.
In fact, if anyone can tell if there's a free windback to an earlier version of Windows (7) who has not all layers unnecessary and icons, I would be really grateful
Your best bet is to switch to 8.1, that allows you to boot directly to the desktop, and then use a menu like debut8 to replace the old Start Menu and hide the side of the metro.
If your computer comes with Win Pro 8, you may be able to demotion, otherwise, you will need to buy 7. Before you buy 7, I would recommend go to the computer manufacturer's website and see if there are any Windows 7 drivers for your computer. You may lose certain functions - sound, network, video full resolution - if there is no driver.
The first option is easy and allows you to keep the improvements in performance and safety 8.
Maybe you are looking for
-
Satellite S50T-B - adding RAM and swapping HDD to SSD
Hello I recently bought portable satellite S50t-B and have a few questions about the upgrade: 1. What is the recommended RAM to add (8 GB) 2. What is the DVAR to add? 3 are there instructions for adding more RAM and an SSD for my laptop? 4. I void my
-
HP Pavilion 15-e017tx - button Wireless does not work after bios update
Hello I have the HP Pavilion 15-e017tx for the past 8 months. Press f12 to this machine is shared by the key wireless button, which was working fine until there was a BIOS update last week. Now I try to turn off the wireless using this button it will
-
Why error invalid memory access loading newdev.dll
My wireless device is connected to a usb port. No problem. Any other usb devices that I connect to a usb port causes the error message in the title
-
where the autofil on Vista?
I'm filling out College applications and really do not have to keep adding time and time again the same information. I can't find the autofil and not really need. Help, please!
-
What is optimizer pro? He educated when I restart my computer. Di I need to delete? and how?