net use successfully,but the icon is Disconnect.

codeToFly 0 Reputation points
2023-07-03T12:50:00.1833333+00:00

when i run a bat in schtasks.exe the parameters are (/RU "SYSTEM" /SC ONSTART /TN MountDisk /TR netuse.bat)

the netuse.bat is like bellow.

net use K: \IP\USER

when windows login as my user accont,the disk monuted by schtasks can be accessed.but the icon is falut the name is DIsconnect.

how to let the net driver disk show correctly like excute netuse.bat in my user account.

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
12,001 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MotoX80 35,141 Reputation points
    2023-07-03T13:35:24.7633333+00:00

    Don't map the drive to the system account, map it to your session.

    /RU interactive /SC ONLOGON

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.