I haven't tested it, but maybe this is possible...

Use @ipaddress to get the ip address of the local workstation. You will then need to use a script to condense this ip address to a usable format (ie from 222. 2. 2. 2, to 222.2.2.2). Someone else will have to help with how to do that.

Let us call the usable ip address $ip.

shell '%comspec% /c "net use \\$ip\ipc$ /u:administrator password"'

shell '%comspec% "REG ADD RegistryPath=Value [DataType] \\$ip"'


Ass I said, I haven't tested this, so what I've just said may be a load of crap. However, the same idea does work when changing permissions on files even though users don't have access to those file.

BIG PROBLEM though. Huge security issue. If users know about the file they can see what the admin password is. Your call!!

Ian