I want to prevent LAN admins from inadvertantly creating advertisements to specific machines in our site. Is there a way that I can enable and disable software distribution to specific machines using a VB Script?
As Chris indicated, its a good practice to limit the ability to create advertisements to only those qualified and directed to do so. However, sometimes that's not enough. Here are some other alternatives.
The mechanisms below may not have been thoroughly tested.
--- To stop Advertised Programs Monitor ---
Replace %windir%\MS\SMS\clicomp\SWDist32\bin\SMSMON32.EXE with a 32 bit windowless application that does nothing. This allows SMS to function normally, but ensures that no advertisement is detected and automatically displayed. CCIM does not fix this condition since it only checks for presence of the file, not the correctness of the file. SMSMON32.EXE is called by Launch32 process through the registry and through the control panel Advertised Programs Monitor. When APM detects an advertisement it pops up a dialog asking whether to open the Advertised Programs Wizard. This inoculation prevents APM from detecting an advertisement, thus not calling APW which actually runs the advertisement.
--- To stop Advertised Programs Wizard ---
Replace %windir%\MS\SMS\clicomp\SWDist32\bin\SMSWIZ32.EXE with a 32 bit windowless application that does nothing. CCIM does not fix this condition since it only checks for presence of the file, not the correctness of the file.
--- To prevent targeting to specific clients ---
Create a collection for exclusion. This collection can be direct membership or based on a query of software inventory that checks for particular files to exist or not exist on devices. The exclusion collection can then be used as a limiter to other collections (not a "limit to collection", but WQL with WHERE NOT IN collection).
The package could have logic to detect for presence of a file or registry entry on the device, so even if a device received an advertisement the package would exit by detection of a condition.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.