windows - Passing parameters in logon script in GPO failed -
as see in gpo settings
i have vbscript , call logon script via gpo in domain controller. script running @ logon parameters not passed. ideas why not?
on technet
in script parameters, type parameters want use type them on command line. example, if script included parameters called //logo (display banner) , //i (interactive mode), type: //logo //i.
so should possible way it, right?
because ansgarwiechers asked:
check if script running
set objfsolog=createobject("scripting.filesystemobject") outfilelog="c:\scriptlog.txt" set objfilelog = objfsolog.createtextfile(outfilelog,true) objfilelog.write "script wurde wenigstens ausgeführt" & vbcrlf objfilelog.close
at beginning od script.
, check parameters this:
on error resume next err.clear msgbox wscript.arguments(0) if err.number <> 0 msgbox err.description end if on error resume next err.clear msgbox wscript.arguments(1) if err.number <> 0 msgbox err.description end if
gpresult /h gives following output gpo:
script saved in logon scripts:
Comments
Post a Comment