Jump to content

Recommended Posts

Posted

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?

script.jpg

Posted

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.

Posted
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.

Posted
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 :)

Posted

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).

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...