Blind Posted April 18, 2008 Posted April 18, 2008 I'm not a scripting kind of guy. In fact, I use a program called Desktop Authority by Scriptlogic so that I don't have to be. However, I've come to realize I have an issue and their support has been less than helpful. Let me explain and see if you guys can be of assistance. Attached you will find a screen cap of the script window that appears just after a user logs in. Normally this flashes across the screen for a second. However, if a user closes this window they gain access to things like the standard Windows start menus and not my secure redirected menu. Not good. What can be done to make this window disappear?
Geoff Posted April 18, 2008 Posted April 18, 2008 Use HideWindow to hide the command window. Probably run it as the first command in your script. WinSite: HideWindow Also watch out, AV may take offence to this file as it's used by adware/viruses.
SYNACK Posted April 18, 2008 Posted April 18, 2008 You should be able to do this by adding a group policy to the machines that you wish to suppress this on in Active directory and change this setting: Computer Configuration -> Administrative Templates -> System -> Scripts : Run Startup scripts visible Set it to disabled and the boxes should no longer appear during log in.
Blind Posted April 18, 2008 Author Posted April 18, 2008 You should be able to do this by adding a group policy to the machines that you wish to suppress this on in Active directory and change this setting: Computer Configuration -> Administrative Templates -> System -> Scripts : Run Startup scripts visible Set it to disabled and the boxes should no longer appear during log in. I thought so too, but I've set these to disable with no noticeable effect.
SYNACK Posted April 18, 2008 Posted April 18, 2008 I thought so too, but I've set these to disable with no noticeable effect. Ok, Its worked for me when I tried it but there are tonnes of things that could be different. The package that you are running may be triggering a secondary command window, the policy may not have applied properly (use the RSoP MMC to check) or stuff like that. Anyhow good luck with resolving it
cl0n3 Posted April 21, 2008 Posted April 21, 2008 Const HIDDEN_WINDOW = 12 strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set objStartup = objWMIService.Get("Win32_ProcessStartup") Set objConfig = objStartup.SpawnInstance_ objConfig.ShowWindow = HIDDEN_WINDOW Set objProcess = GetObject("winmgmts:root\cimv2:Win32_Process") errReturn = objProcess.Create("put the path to your script here", null, objConfig, intProcessID) Try running that as a .vbs file on startup (but stop your current script from auto starting as it will be called from this one anyway).
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now