Avatar billede simon_lassen Nybegynder
04. juli 2002 - 09:31 Der er 6 kommentarer og
1 løsning

net use password

Hej alle,

Jeg har lavet denne her.

net use p: \\splinter.dmt.dk\www /user:www

Det virker også fint, men jeg bliver bedt om at skrive password..

Er der ikke en metode hvor jeg kan bygge det ind i det lille script.

/Simon
Avatar billede hojben Novice
04. juli 2002 - 09:33 #1
H:\>net help use
The syntax of this command is:


NET USE [devicename | *] [\\computername\sharename[\volume] [password | *]]
        [/USER:[domainname\]username]
        [/USER:[dotted domain name\]username]
        [/USER:[username@dotted domain name]
        [[/DELETE] | [/PERSISTENT:{YES | NO}]]

NET USE {devicename | *} [password | *] /HOME

NET USE [/PERSISTENT:{YES | NO}]


NET USE connects a computer to a shared resource or disconnects a
computer from a shared resource. When used without options, it lists
the computer's connections.

devicename      Assigns a name to connect to the resource or specifies
                the device to be disconnected. There are two kinds of
                devicenames: disk drives (D: through Z:) and printers
                (LPT1: through LPT3:). Type an asterisk instead of a
                specific devicename to assign the next available
                devicename.
\\computername  Is the name of the computer controlling the shared
                resource. If the computername contains blank characters,
                enclose the double backslash (\\) and the computername
                in quotation marks (" "). The computername may be from
                1 to 15 characters long.
\sharename      Is the network name of the shared resource.
\volume          Specifies a NetWare volume on the server. You must have
                Client Services for Netware (Windows Workstations)
                or Gateway Service for Netware (Windows Server)
                installed and running to connect to NetWare servers.
password        Is the password needed to access the shared resource.
*                Produces a prompt for the password. The password is
                not displayed when you type it at the password prompt.
/USER            Specifies a different username with which the connection
                is made.
domainname      Specifies another domain. If domain is omitted,
                the current logged on domain is used.
username        Specifies the username with which to logon.
/HOME            Connects a user to their home directory.
/DELETE          Cancels a network connection and removes the connection
                from the list of persistent connections.
/PERSISTENT      Controls the use of persistent network connections.
                The default is the setting used last.
YES              Saves connections as they are made, and restores
                them at next logon.
NO              Does not save the connection being made or subsequent
                connections; existing connections will be restored at
                next logon. Use the /DELETE switch to remove
                persistent connections.
NET HELP command | MORE displays Help one screen at a time.
Avatar billede simon_lassen Nybegynder
04. juli 2002 - 09:37 #2
hojben

Tak.. men det kunne jeg også finde ved at skrive "net+use" på google...

Det jeg ikke forstår er:

net use p: \\splinter.dmt.dk\www /user:www

Hvor skal jeg skrive hvad hvis jeg vil have mit password med..? Lad os sige at password er "simon"..

/Simon
Avatar billede leif Seniormester
04. juli 2002 - 09:38 #3
Så det er vel noget der ligner:

net use p: \\splinter.dmt.dk\www password /user:www

Fra
Leif
Avatar billede hojben Novice
04. juli 2002 - 09:39 #4
Burde vel være:

net use p: \\splinter.dmt.dk\www /user:www simon
Avatar billede hojben Novice
04. juli 2002 - 09:43 #5
Prøvede det lige og det virkede fint..
Avatar billede simon_lassen Nybegynder
04. juli 2002 - 09:47 #6
hojben..

Tak for det..

leif.

også tak, men hojben var lidt hurtiger..

Point til hojben.
Avatar billede hojben Novice
04. juli 2002 - 09:48 #7
takker.. :)
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
IT-kurser om Microsoft 365, sikkerhed, personlig vækst, udvikling, digital markedsføring, grafisk design, SAP og forretningsanalyse.

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester



IT-JOB

Dansk Sygeplejeråd

IT-teknisk medarbejder

Cognizant Technology Solutions Denmark ApS

Senior Delivery Manager

Euronext Securities

Software Developer

Udviklings- og Forenklingsstyrelsen

Rådgivende informationsarkitekter med strategisk fokus