windows - Passing parameters in logon script in GPO failed -


as see in gpo settings

my 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:
screenshot
script saved in logon scripts:
screenshot


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -