Quantcast
Channel: Remote Desktop Services (Terminal Services) forum
Viewing all articles
Browse latest Browse all 7220

WMI Query in Logon Script

$
0
0

Hi,

When working with Roaming profiles we have some strange behavior on windows 2008r2 servers that doesn't happens on windows2003 Servers.

Users have Roaming Profiles and there is a logon script that checks for previous installed printers (WMI Query). Depending of the user groups, printers will be added or removed.
Each time a user logged off from the server the local profile on the server is removed.

Now each time a user login, the roaming profile is copied to the server and the logon script is executed.
The result of the WMI Query in the logon script during logon is empty (No printers available)

Executing the logon script when login is completed, give me ALWAYS the correct number of Printers.

It seems that the logon script (and WMI query) starts to early and printers are not available due to Roaming Profile Copy.

Anyone an idea how to delay the execution of the logon script? 
Or how to detect printers are available to Query via WMI?

 

Regards

Kurt


Viewing all articles
Browse latest Browse all 7220

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>