It could be because one of the first lines in that script sets the NoMacrosInStrings to ON, which means that macros (@'s) are ignored and treated as normal text when enclosed in ""s. It could also be because the @LServer returns \\ along with the servername, so when you put two slashes before it, it resolves as \\\\server instead of \\server.

Try this instead and it should fix your problem...

 Code:
$inifile = @LServer+"\netlogon\inifile.ini"


Edited by ShaneEP (2011-10-15 06:58 PM)