Hello,
I'm currently doing some programming on a 2000+ user NT network. I'm using REXX to create a script that updates user profile paths and script paths automatically based on a current users setup.
With each user, there are four things to change.
- The Profile Path
- The Script Path
- Home Directory
- Group memberships
The program is working great and is almost all working, I say almost because I have a slight problem.
Users profile path is something like this...
\\SERVER\PROFILES\PREP\BUSINESS_3.1
Although, as a backup we are trying to set the profile path to...
%LOGONSERVER%\PROFILES\PREP\BUSINESS_3.1
But anytime I try and pass the environmental variable to the following DOS command...
NET USER <username> /DOMAIN PROFILEPATH:<profile path>
I get an error "you enterred an invalid value for the /profilepath option".
The users home directory is set to...
G:\%USERNAME%
And this works fine.
I have checked the environmental variable exists and that the command works when typed manually into dos so does anyone know whats wrong here?
Thanks in advance for any help.
K1ng
I'm currently doing some programming on a 2000+ user NT network. I'm using REXX to create a script that updates user profile paths and script paths automatically based on a current users setup.
With each user, there are four things to change.
- The Profile Path
- The Script Path
- Home Directory
- Group memberships
The program is working great and is almost all working, I say almost because I have a slight problem.
Users profile path is something like this...
\\SERVER\PROFILES\PREP\BUSINESS_3.1
Although, as a backup we are trying to set the profile path to...
%LOGONSERVER%\PROFILES\PREP\BUSINESS_3.1
But anytime I try and pass the environmental variable to the following DOS command...
NET USER <username> /DOMAIN PROFILEPATH:<profile path>
I get an error "you enterred an invalid value for the /profilepath option".
The users home directory is set to...
G:\%USERNAME%
And this works fine.
I have checked the environmental variable exists and that the command works when typed manually into dos so does anyone know whats wrong here?
Thanks in advance for any help.
K1ng