Page 2 of 4 <1234>
Topic Options
#211580 - 2016-06-02 07:59 PM Re: kixtart and mapping drives Windows 10 pro x64 [Re: vivithemage]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
Mapping drives in the startup script under Win XP worked. It wasn't until Vista, that they changed the context of the user/token and hence the need to run the mappings in the logon script (or god forbid the use of the reghack).
Top
#211581 - 2016-06-02 08:46 PM Re: kixtart and mapping drives Windows 10 pro x64 [Re: Allen]
vivithemage Offline
Fresh Scripter

Registered: 2016-06-01
Posts: 19
Loc: Minnesota
Well, it has always been part of our log on script. Only with Windows 10 do we have issues, our Vista and 8/8.1 installs have always been fine.
Top
#211582 - 2016-06-02 09:22 PM Re: kixtart and mapping drives Windows 10 pro x64 [Re: vivithemage]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
Viv, I don't think anyone questions you are having issues, but Glenn and I are also telling you we run windows 10 too and for the most part have not had issues. It's likely something specific to those machines. Have you checked the Event Viewer? Curious, what does "net view" tell you. I had a windows 10 where I ran the command and NOTHING came back and couldn't add a mapped/redirected printer. So despite it showing that nothing was there I did a net use lpt1 /del and not only did it remove something, now when I did a net view, it came back with results. YRMV.
Top
#211583 - 2016-06-02 09:43 PM Re: kixtart and mapping drives Windows 10 pro x64 [Re: Allen]
vivithemage Offline
Fresh Scripter

Registered: 2016-06-01
Posts: 19
Loc: Minnesota
so net view threw an error:
Error 6118: "The List of Servers for This Workgroup..."

the KB article was pretty old: https://support.microsoft.com/en-us/kb/139910

So I rejoined the laptop to the domain for fun, the error went away and prints stuff out when I run net view, but still no mapped drives.

I am doing a very basic script now:

USE * /DEL

USE S: \\E500SRV2\SHARE
? @error
? @serror

? "press any key" GET$

with USE * /DEL it throws no error code, and serror prints 'the operation completed successfully' but maps no drives. With USE * /DEL not there it throws error 85 'the local device name is already in use'

What is interesting if I do net use * /del it actually says the S drive is already mapped, I wonder why it is not showing up or accessible though? I can try going to run and typing in S: and hit enter, it doesn't think it is there...very odd.



Edited by vivithemage (2016-06-02 09:45 PM)

Top
#211584 - 2016-06-02 09:52 PM Re: kixtart and mapping drives Windows 10 pro x64 [Re: vivithemage]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
Try right clicking on CMD and choose Run as Admin, and do the net view again. Any different results?
Top
#211585 - 2016-06-02 10:01 PM Re: kixtart and mapping drives Windows 10 pro x64 [Re: vivithemage]
vivithemage Offline
Fresh Scripter

Registered: 2016-06-01
Posts: 19
Loc: Minnesota
more interesting stuff, I can run net use S: \\e500srv2\share via command line and it will map. I disconnect it, and run kix32.exe test.kix which has the script above, and it completes with 0 error code, but does not actually map it.

I am running it in a normal command, NOT elevated as admin.

 Originally Posted By: Allen
Try right clicking on CMD and choose Run as Admin, and do the net view again. Any different results?


throwing error 6118 again, in run as admin or not running as admin.


Edited by vivithemage (2016-06-02 10:02 PM)

Top
#211586 - 2016-06-02 10:13 PM Re: kixtart and mapping drives Windows 10 pro x64 [Re: vivithemage]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
Might have some typos... i just threw this together... post your results.

 Code:
? @kix
? @producttype
if exist("S:\")
  ? "S: Exists"
  ? net use s: /delete /persistent
  ? @result
  ? @error
  ? @serror
endif
if not exist("S:\")
  ? "S: Does not Exist"
  ? "Mapping Drive"
  $Path="\\E500SRV2\SHARE"
  if exist($path)
    USE S: $path 
    ? @result
    ? @error
    ? @serror
  else
    ? "Path does not exist"
  endif
endif

Top
#211587 - 2016-06-02 10:16 PM Re: kixtart and mapping drives Windows 10 pro x64 [Re: Allen]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
copy and paste it again... i forgot the not in the second IF section.
Top
#211588 - 2016-06-02 10:17 PM Re: kixtart and mapping drives Windows 10 pro x64 [Re: Allen]
vivithemage Offline
Fresh Scripter

Registered: 2016-06-01
Posts: 19
Loc: Minnesota
one typo, I also added pauses to it as well...but:

4.66
Windows 10 Pro
S: Exists


0
The operation completed succesfully


still no mapped drive. I ran this:

 Code:
? @kix
? @producttype
if exist("S:\")
  ? "S: Exists"
  USE s: /delete /persistent
  ? @result
  ? @error
  ? @serror
  ? "press any key" GET$
endif
if not exist("S:\")
  ? "S: Does not Exist"
  ? "Mapping Drive"
  $Path="\\E500SRV2\SHARE"
  ? "press any key" GET$
  if exist($path)
    USE S: $path 
    ? @result
    ? @error
    ? @serror
    ? "press any key" GET$
  else
    ? "Path does not exist"
    ? "press any key" GET$
  endif
endif


Edited by vivithemage (2016-06-02 10:19 PM)

Top
#211589 - 2016-06-02 10:21 PM Re: kixtart and mapping drives Windows 10 pro x64 [Re: vivithemage]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
So S: is not being deleted because it doesn't try to re-add it. Hmmm
Top
#211590 - 2016-06-02 10:23 PM Re: kixtart and mapping drives Windows 10 pro x64 [Re: Allen]
vivithemage Offline
Fresh Scripter

Registered: 2016-06-01
Posts: 19
Loc: Minnesota
 Originally Posted By: Allen
So S: is not being deleted because it doesn't try to re-add it. Hmmm



Here it is with my pauses, the output that is:

 Code:
4.66
Windows 10 Pro
S: Exists

0
The operation completed successfully.
press any key
S: Does not Exist
Mapping Drive
press any key
S:
0
The operation completed successfully.
press any key

Top
#211591 - 2016-06-02 10:28 PM Re: kixtart and mapping drives Windows 10 pro x64 [Re: vivithemage]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
I just googled "mapped drives not showing in Windows 10" and the hits lit up... Here's one.

http://www.tenforums.com/network-sharing/24492-mapped-drives-not-showing-up-explorer.html

Must be more common than we thought. You might dig into that a little.

I gotta run... hope you or someone else can figure it out.

Top
#211592 - 2016-06-02 10:48 PM Re: kixtart and mapping drives Windows 10 pro x64 [Re: Allen]
vivithemage Offline
Fresh Scripter

Registered: 2016-06-01
Posts: 19
Loc: Minnesota
 Originally Posted By: Allen
I just googled "mapped drives not showing in Windows 10" and the hits lit up... Here's one.

http://www.tenforums.com/network-sharing/24492-mapped-drives-not-showing-up-explorer.html

Must be more common than we thought. You might dig into that a little.

I gotta run... hope you or someone else can figure it out.


Yeah, I have been reading through them as well, that is where I found you cannot run mapping as admin, but no one has a fix for this situation it seems.

Top
#211593 - 2016-06-03 12:15 AM Re: kixtart and mapping drives Windows 10 pro x64 [Re: vivithemage]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
 Originally Posted By: Allen
Mapping drives in the startup script under Win XP worked. It wasn't until Vista, that they changed the context of the user/token and hence the need to run the mappings in the logon script (or god forbid the use of the reghack).

in vista pre sp1 power users and admins required the registry hack. Other option per Microsoft documents was to have your logon script spawn a run once process and run the mappings there. If I don't remember incorrectly, some versions of updates caused the same issue on windows 7 as well.

Now, start up scripts with mapped drives... I won't believe that before I see one in action.


Edited by Lonkero (2016-06-03 12:18 AM)
_________________________
!

download KiXnet

Top
#211594 - 2016-06-03 12:24 AM Re: kixtart and mapping drives Windows 10 pro x64 [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
That elevated prompt posts you saw elsewhere is exactly the token context issue.
_________________________
!

download KiXnet

Top
#211595 - 2016-06-03 03:09 AM Re: kixtart and mapping drives Windows 10 pro x64 [Re: Lonkero]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
Try logging in as a different user on the same box, maybe an account that has not been used on it before, so that it creates a new profile.
Top
#211596 - 2016-06-03 03:11 AM Re: kixtart and mapping drives Windows 10 pro x64 [Re: Allen]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
Good call.
Corrupt profiles are not unheard of.
_________________________
!

download KiXnet

Top
#211597 - 2016-06-03 12:48 PM Re: kixtart and mapping drives Windows 10 pro x64 [Re: Allen]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4396
Loc: New Jersey
Careful! That article relates to Windows 3.1 running on MS-DOS 6! Research into the error specifically to Windows 7/8.x/10 seems to point to firewall settings/issues, or DNS resolution.

1. Check your firewall settings and determine which network type windows thinks it's connected to (Domain, Private, or Public). This could be the first clue that the computer isn't detecting the network properly. Proper DNS and firewall settings are crucial for this. (often, add-on firewall products can affect this - the Windows firewall usually won't unless someone has modified the default settings incorrectly.)

2. Temporarily turn off firewall protection and try logging on again. (Don't stop the service! In fact, if the service is off/disabled, this could be the root of your problem.)

3. Verify that the DHCP service is running, which provides DNS helper services.

4. Check the DNS settings on the local computer. Are the DNS servers pointing ONLY to internal servers? A common mistake is to add an external DNS to the list, which will wreak havoc with AD operations, particularly if a system gets a response from the external DNS faster than the internal - it will become the preferred server and then nothing will resolve on your internal network.

5. Get a copy of NetDom (Server 2000 AND 2003 resource kits - 2 versions with different capabilities). Run the Query against the domain and see what it says.

Also, when "running as administrator", just be sure you recognize that they are different contexts and could return different results. Not likely for "net view" but definitely for things like "net use". Just a reminder that when you're deep in the weeds you don't let this stuff mislead your troubleshooting efforts. \:\)

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#211598 - 2016-06-03 12:54 PM Re: kixtart and mapping drives Windows 10 pro x64 [Re: Glenn Barnas]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4396
Loc: New Jersey
Holy cow - Look what I get for typing a response yesterday before leaving work and clicking submit this morning! LOL! The response above was a reply to a post on the prior page. \:\(
_________________________
Actually I am a Rocket Scientist! \:D

Top
#211599 - 2016-06-03 03:56 PM Re: kixtart and mapping drives Windows 10 pro x64 [Re: Glenn Barnas]
vivithemage Offline
Fresh Scripter

Registered: 2016-06-01
Posts: 19
Loc: Minnesota
 Originally Posted By: Lonkero
Good call.
Corrupt profiles are not unheard of.


I reformatted the laptop actually, so it is a new profile. The key thing I think is that the PC's that work 100% of the time in windows 10 upgraded from 7, where as the issues tend to be with those with fresh windows 10 installs.

Top
Page 2 of 4 <1234>


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

Who's Online
0 registered and 248 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

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

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