Share via


Network Resource Type not correct - Help

Question

Monday, December 18, 2017 3:07 PM

I'm trying to mount a thermal printer so I can copy over an .epl file.  I don't know anything other than the script I have in front of me, which is what is running on other computers.  I have Windows 10.

The first command is

Net use LPT2: \KRISTYSYOGA\KP2844

I'm getting an error -

System error 66
The Network resource type is not correct.

Please help - I don't even know what to try.  KRISTYSYOGA is the name of my computer & KP2844 is the shared printer name.Thanks.

All replies (4)

Monday, December 18, 2017 3:20 PM

1st: does the printer works in another machine the same way? If yes the problem can be at the client's machine side (the one you're trying to configure).

2nd: For the command to work well you need to use like this: net use LTP2: \[remote_machine_with_printer]\share_name]. If you are using the printer locally you need to configure locally (under printer's configuration). As far as I coul understand you're using your computer's name trying to reach a network share. You must use the remote machine name instead of yours...

Tell us if something worked...


Monday, December 18, 2017 6:51 PM

This is what my script says

Net use LPT2: \%ComputerName%\KP2844
Copy %1 LPT2
Net use LPT2: /Delete

This printer has been used before by other computers to print via this script, just not the current computer.

I'm getting error

System error 66
The Network resource type is not correct.

after the Net use command.


Wednesday, December 20, 2017 3:56 PM

Hey there...

Try to substitute the %ComputerName% for 127.0.01 instead...

As far as I could realize you're trying to use the printer locally. %ComputerName% tells us that. So instead of using a name you put the localhost address, it maybe can work (it does the same but it uses the localhost address instead of a name).

I have found similar errors in the windows 7 community. You can read it here: https://answers.microsoft.com/en-us/windows/forum/windows_7-networking/system-error-66-the-network-resource-type-is-not/3111ec92-bf45-e011-90b6-1cc1de79d2e2

Another thing: Have you tried to run the script from an elevated command prompt? If not give it a go... Try to put the command lines (not the batch script itself) and go line by line on an elevated command prompt.

Please propose it as a answer if it helped you out.

Cheers...


Monday, September 17, 2018 3:57 PM

you could use powershell for network drive configuration here:

New-PSDrive -Name "S" -PSProvider FileSystem -Root "\network\path\here"