this is certainly possible using vb scripts. The easiets thing to do would be to create a vbscript that disables the GPO object and a second one to enable the gpo object and then just set them to run using a windows schedual.
seeing you just want to disable the warning message you could have enough with just disabeling the correct part of the GPO but this script will do both computer / user portion.
Sample code for disable:
-------- cut --------------
Const GUID = "<your gpo's guid>"
Const DOMAIN = "mydomain.mycorp.com"
Dim gpm, gpmDomain, gpmGPO
Set gpm = CreateObject("GPMGMT.GPM")
Set gpmDomain = gpm.GetDomain (DOMAIN, "", 0)
Set gpmGPO = gpmDomain.GetGPO (GUID)
If gpmGPO.IsUserEnabled Then
gpmGPO.SetUserEnabled FALSE
End If
If gpmGPO.IsComputerEnabled Then
gpmGPO.SetComputerEnabled FALSE
End If
------- past -------------------
for more info http://www.windowsitpro.com/Articles...rticleID=39856
have fun,
Tom Decaluwé


LinkBack URL
About LinkBacks
Reply With Quote