Quantcast
Channel: Group Policy forum
Viewing all articles
Browse latest Browse all 19997

Startup Script And Environment Variables

$
0
0

Hi all,

When applying a startup script in an OU in a Win2k8 R2 domain, I've tried different ways to specify the path to the script with different results:

\\CONTOSO\NETLOGON\Startup.cmd  ------ works

\\CONTOSO.COM\NETLOGON\Startup.cmd ------ works

\\CONTOSO.COM\sysvol\CONTOSO.COM\Policies\{GUID of your GPO}\Machine\Scripts\Startup\Startup.cmd ----- works

However, if I use any of the environment variables (to stay as generic as possible), none of them works:

%LOGONSERVER%\NETLOGON\Startup.cmd ----- does not work

\\%USERDNSDOMAIN%\NETLOGON\Startup.cmd ----- does not work -  this I understand because USERDNSDOMAIN may only be available for users, not machines.


My question is, are any of the environment variables defined during startup, or before the startup script is triggered?


Thanks.


Viewing all articles
Browse latest Browse all 19997

Trending Articles