Page 1 of 2 12>
Topic Options
#75865 - 2003-07-13 06:51 AM A problem with @PRIMARYGROUP
jacks73 Offline
Getting the hang of it

Registered: 2003-04-23
Posts: 58
I am having a problem getting my group drives to map. Unless The user logging on is a member of the Domain Admins group the @PRIMARYGROUP token is not being read. I am in a "very fresh" W2K environment (today actually), and all of my scripts ran successfully in the test network. actually all of my scripts still work except for this portion.
code:
 If @PRODUCTTYPE = 'Windows NT Server'
GoTo end
EndIf
If @PRODUCTTYPE = 'Windows 2000 Server'
GoTo end
EndIf

MD("\\server\share\@PRIMARYGROUP\@PRIMARYGROUP_priv")
MD("\\server\share\@PRIMARYGROUP\@PRIMARYGROUP_pub")

Use p: "\\server\share\@PRIMARYGROUP\@PRIMARYGROUP_pub"
? @error
? @serror
Use g: "\\server\share\@PRIMARYGROUP\@PRIMARYGROUP_priv"
Use m: "\\server\MS Office" ; This is only being mapped because Access97 will not use a UNC path to access the "share.mdw"

Call %0\..\logon2.kix


:end



;---------end Group Drive mapping script

Any insight? This is all I need to do before celebrating a successful Deploy

KiXtart 4.2

[ 13. July 2003, 06:53: Message edited by: jacks73 ]

Top
#75866 - 2003-07-13 07:01 AM Re: A problem with @PRIMARYGROUP
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
did a minor cleanup.
If @PRODUCTTYPE <> 'Windows NT Server' and @PRODUCTTYPE <> 'Windows 2000 Server' 
MD "\\server\share\@PRIMARYGROUP\@PRIMARYGROUP_priv"
MD "\\server\share\@PRIMARYGROUP\@PRIMARYGROUP_pub"
Use p: "\\server\share\@PRIMARYGROUP\@PRIMARYGROUP_pub"
? @error ? @serror
Use g: "\\server\share\@PRIMARYGROUP\@PRIMARYGROUP_priv"
Use m: "\\server\MS Office"
; This is only being mapped because Access97 will not use a UNC path to access the "share.mdw"
Call %0\..\logon2.kix:end
endif


anyway, how do you know that the primarygroup is not working?
how are you sure the problem is not elsewhere?
_________________________
!

download KiXnet

Top
#75867 - 2003-07-13 07:02 AM Re: A problem with @PRIMARYGROUP
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
oh, btw...
there is no such kixtart version as 4.2
there is 4.02 and 4.20
_________________________
!

download KiXnet

Top
#75868 - 2003-07-13 07:05 AM Re: A problem with @PRIMARYGROUP
jacks73 Offline
Getting the hang of it

Registered: 2003-04-23
Posts: 58
Oh Lonkero am I glad to hear from you.

To answer

I ran the script
code:
 messagebox("@PRIMARYGROUP","@USERID") 

As a regular user and a domain admin. The domain admin had something in the box and the regular user did not

Top
#75869 - 2003-07-13 07:06 AM Re: A problem with @PRIMARYGROUP
jacks73 Offline
Getting the hang of it

Registered: 2003-04-23
Posts: 58
I am on 4.20 then [Roll Eyes]
Top
#75870 - 2003-07-13 07:10 AM Re: A problem with @PRIMARYGROUP
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
hmm...
could you try just something simple as:
@primarygroup ?
@error @serror ?


this as simple script a possible has nothing to do with other stuff so it would so definitely if the problem is there.

also, I must wonder.
primarygroup normally is domain-users, have you changed that?
if not, there is meaning in retrieving the info.
_________________________
!

download KiXnet

Top
#75871 - 2003-07-13 07:17 AM Re: A problem with @PRIMARYGROUP
jacks73 Offline
Getting the hang of it

Registered: 2003-04-23
Posts: 58
Yes I did change the primary group from Domain users to the respective primary group. but I also did it on the test network and it worked fine.
Top
#75872 - 2003-07-13 07:21 AM Re: A problem with @PRIMARYGROUP
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
so, does it give with this simple way anything?
does it show the primarygroup name in enumgroups?
have you tried flushing cache?
_________________________
!

download KiXnet

Top
#75873 - 2003-07-13 07:28 AM Re: A problem with @PRIMARYGROUP
jacks73 Offline
Getting the hang of it

Registered: 2003-04-23
Posts: 58
code:
 ?@PRIMARYGROUP
?ERROR ?SERROR

gives me

[blank]
0
"The operation completed successfully"

Top
#75874 - 2003-07-13 08:20 AM Re: A problem with @PRIMARYGROUP
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11625
Loc: CA
Jack,

I assume you are using either NT/2000 or XP desktop when you run this script.

Try running it again with KIX32.EXE SCRIPTNAME.KIX /F

The /F switch is used to flush token cache and read directly from the Server.

Top
#75875 - 2003-07-13 08:57 AM Re: A problem with @PRIMARYGROUP
jacks73 Offline
Getting the hang of it

Registered: 2003-04-23
Posts: 58
Mornin' NTDOC

I changed my logon.bat to read
code:
 @echo off


rem Logon script batch file

If NOT Exist c:\logon\wkix32.exe Xcopy \\cogswell\netlogon\wkix

32.exe c:\logon\ >nul
GoTo kix

:kix
Start c:\logon\wkix32.exe /f %0\..\logon.kix /f /d


unfortunately to no avail.
Any other ideas?

[ 13. July 2003, 08:59: Message edited by: jacks73 ]

Top
#75876 - 2003-07-14 12:29 AM Re: A problem with @PRIMARYGROUP
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11625
Loc: CA
Well WKIX32.EXE does not show console.

For testing purposes do this.

Copy KIX32.EXE to C:\LOGON then create a test file in the C:\LOGON folder with this code named TEST.KIX

Then in a DOS prompt windows C:\LOGON type this.

KIX32.EXE C:\LOGON\TEST.KIX /F

Hit enter and paste the results here for us.


? @FullName
? @PrimaryGroup
? 'Error Return is: '+@ERROR
? 'Error Return means: '+@SERROR

Top
#75877 - 2003-07-13 01:48 PM Re: A problem with @PRIMARYGROUP
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
jacks73, try my EnumObject.exe located on my Perl Win32 Admin Utilities web page. It will provide you a text file of youe accounts and properties including primary group. It will also output all the domain groups and the group's SID. The last part of the SID is the RID which you can match up to "PrimaryGroup" property of the users.

Using this program will help determine if the properties of your domain are what you think they are thereby making it easiere to determine if KiXtart is reporting correctly or if KiXtart is misbehaving.

http://mywebpages.comcast.net/habullock/Perlutilities.htm
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#75878 - 2003-07-13 04:49 PM Re: A problem with @PRIMARYGROUP
jacks73 Offline
Getting the hang of it

Registered: 2003-04-23
Posts: 58
NTDOC,

When I run the code with a non- Domain Admin I get:
"

Error return is: 0
Error return means: The operation completed successfully."

As a Domain Admin I get:
"Jack Davis
IS
Error return is: 0
Error return means: The operation completed successfully"

Howard,

I downloaded your EnumObject.exe and couldn't get it to run. I think I might have the syntax wrong though it looked pretty straight forward. When I run

c:\EnumObject.exe Nails.com RMspare

I get this:
Win32::OLE(0.1502): GetObject() Not a Win32::OLE object at EnumObject.pl line 31

either as a user or admin.

Top
#75879 - 2003-07-13 04:58 PM Re: A problem with @PRIMARYGROUP
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
I don't recall you mentioning the client OS. It sounds like a permission issue in AD (stating the obvious). Have you done anything to tweak the AD perms or is it 'out of the box' perms?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#75880 - 2003-07-13 05:00 PM Re: A problem with @PRIMARYGROUP
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
doc?
you don't need kix32.exe for testing purposes!
heh, silly boy.

anyway, les said what was on my mind for some time now...
_________________________
!

download KiXnet

Top
#75881 - 2003-07-13 05:02 PM Re: A problem with @PRIMARYGROUP
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
LOL... I was going to let that slide...
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#75882 - 2003-07-13 05:03 PM Re: A problem with @PRIMARYGROUP
jacks73 Offline
Getting the hang of it

Registered: 2003-04-23
Posts: 58
And NTDOC I also tried the /f on the non Domain Admin with the same result.
Top
#75883 - 2003-07-13 05:10 PM Re: A problem with @PRIMARYGROUP
jacks73 Offline
Getting the hang of it

Registered: 2003-04-23
Posts: 58
I'm all W2k clients. I noticed that if I create a new user everything works fine.
I'm in a newly upgraded AD environment from NT4

Top
#75884 - 2003-07-13 05:37 PM Re: A problem with @PRIMARYGROUP
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
I assume then an in-place upgrade... How many users? Any chance you exceed to 5000 member limitation?

To test the perms theory, try elevating the perms on a user that fails. If that works, compare the perms on the upgraded user with the new user.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
Page 1 of 2 12>


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 202 anonymous users online.
Newest Members
BeeEm, min_seow, Audio, Hoschi, Comet
17882 Registered Users

Generated in 0.071 seconds in which 0.026 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org