Net Commands
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Net Commands

  1. #1
    Senior Member
    Join Date
    Sep 2003
    Posts
    279

    Net Commands

    I've seen a few questions here that involve the usage of the NET COMMANDS. I found this Tutorial type webpage that explains the Net Commands and their usages. Hope this helps or is at least interesting.

    http://www.winnetmag.com/Articles/In...leID=3509&pg=1
    AntiOnline Quick Forum Version 2b Click Here
    10010101000000110010001100111

  2. #2
    Senior Member nihil's Avatar
    Join Date
    Jul 2003
    Location
    United Kingdom: Bridlington
    Posts
    17,190
    Thanks spools

    "you must spread your antipoints around before giving them to spools.exe again"

    Plus some crap from "The Karate Kid" about balance

    Anyone sad enough to watch that sh1t needs a full clip of 9mm Parabellum IMHO

    General point is that I do not think that the antipoints system thinks?

    Have a nice week-end


    Johnno

  3. #3
    Banned
    Join Date
    Jun 2003
    Posts
    1,536
    thanks dood



    Nightfalls_Girl

  4. #4
    Senior Member
    Join Date
    Sep 2003
    Posts
    279
    Here is also a batch file that i wrote for 2000/XP

    @echo off
    color 0A
    :Start
    title NETBIOS MENU
    echo A.) NET SEND
    echo B.) NET USE
    echo C.) NET USER
    echo D.) NET VIEW
    echo I.) NET TIME
    echo J.) NET LOCALGROUP
    echo K.) NET Print
    echo L.) NET Share
    echo R.) NET Shared Folders
    echo M.) NET Accounts
    echo N.) NET Config
    echo O.) NET Session
    echo E.) NBTSTAT -a
    echo F.) NBTSTAT -c
    echo G.) NBTSTAT -A
    echo Q.) IP Config
    echo S.) IP Holder
    echo H.) Quit
    echo.
    set choice=
    set /p choice=Selection:
    if not '%Choice%'=='' set choice=%Choice:~0,4%
    Echo.
    if /I '%Choice%'=='A' GOTO ItemA
    if /I '%Choice%'=='B' GOTO ItemB
    if /I '%Choice%'=='C' GOTO ItemC
    if /I '%Choice%'=='D' GOTO ItemD
    if /I '%Choice%'=='E' GOTO ItemE
    if /I '%Choice%'=='F' GOTO ItemF
    if /I '%Choice%'=='G' GOTO ItemG
    if /I '%Choice%'=='H' GOTO ItemH
    if /I '%Choice%'=='I' GOTO ItemI
    if /I '%Choice%'=='J' GOTO ItemJ
    if /I '%Choice%'=='K' GOTO ItemK
    if /I '%Choice%'=='L' GOTO ItemL
    if /I '%Choice%'=='M' GOTO ItemM
    if /I '%Choice%'=='N' GOTO ItemN
    if /I '%Choice%'=='O' GOTO Item0
    if /I '%Choice%'=='Q' GOTO ItemQ
    if /I '%Choice%'=='R' GOTO ItemR
    if /I '%Choice%'=='S' GOTO ItemS
    CLS
    ECHO "%Choice%" is not valid. Please try again.
    goto itemP
    :ItemA
    cls
    set Username=
    set /p Username=Username:
    if not '%Username%'=='' set Username=%Username:~0,12%
    if '%Username%'=='' set Username=%useip%
    set Message=
    set /p Message=Message:
    if not '%Message%'=='' set Message=%Message:~0,125%
    cls
    echo Sending message to %Username%
    net send %Username% %Message%
    goto ItemP
    :ItemB
    cls
    set DriveLetter=
    set /p DriveLetter=Drive Letter:
    if not '%DriveLetter%'=='' set DriveLetter=%DriveLetter:~0,1%
    set Host=
    set /p Host=Host:
    if not '%Host%'=='' set Host=%Host:~0,12%
    if '%Host%'=='' set Host=%useip%
    set Folder=
    set /p Folder=Folder:
    if not '%Folder%'=='' set Folder=%Folder:~0,12%
    cls
    echo Maping Drive To %DriveLetter%:
    net use %DriveLetter%: \\%Host%\%Folder%
    goto ItemP
    :ItemC
    cls
    set User=
    set /p User=User:
    if not '%User%'=='' set User= %User:~0,12%
    if '%User%'=='' set User=%useip%
    cls
    echo 1.) Yes
    echo 2.) No
    set Activey=
    set /p Activey=Active:
    if '%Activey%'=='1' set Activey= /ACTIVE:Yes
    if '%Activey%'=='2' set Activey= /ACTIVE:No
    cls
    set Commenty=
    set /p Commenty=Comment:
    if not '%Commenty%'=='' set Commenty= /COMMENT:%Commenty:~0,12%
    set CountryCode=
    set /p CountryCode=Country Code:
    if not '%CountryCode%'=='' set CountryCode= /COUNTRYCODE:%CountryCode:~0,12%
    set Expiresy=
    set /p Expiresy=Expires:
    if not '%Expiresy%'=='' set Expiresy= /EXPIRES:%Expiresy:~0,12%
    set Fullnamey=
    set /p Fullnamey=Fullname:
    if not '%Fullnamey%'=='' set Fullnamey= /FULLNAME:"%Fullnamey:~0,12%"
    cls
    echo 2.) Yes
    echo 3.) No
    set Pswrdchngy=
    set /p Pswrdchngye=Password Change:
    if '%Pswrdchngy%'=='2' set Pswrdchngy= /PASSWORDCHG:Yes
    if '%Pswrdchngy%'=='3' set Pswrdchngy= /PASSWORDCHG:No
    cls
    echo 6.) Yes
    echo 7.) No
    set Pswrdreqy=
    set /p Pswrdreqy=Password Required:
    if '%Pswrdreqy%'=='6' set Pswrdreqy= /PASSWORDREQ:Yes
    if '%Pswrdreqy%'=='7' set Pswrdreqy= /PASSWORDREQ:No
    cls
    set ScriptPathy=
    set /p ScriptPathy=Script Path:
    if not '%ScriptPathy%'=='' set ScriptPathy= /SCRIPTPATH:%ScriptPathy:~0,12%
    set Usercommenty=
    set /p Usercommenty=User Comment:
    if not '%Usercommenty%'=='' set Usercommenty= /USERCOMMENT:%Usercommenty:~0,125%
    set WorkStationsy=
    set /p WorkStationsy=Work Stations:
    if not '%WorkStationsy%'=='' set WorkStationsy= /WORKSTATIONS:%WorkStationsy:~0,12%


    net user%User%%Activey%%Commenty%%CountryCodey%%Expiresy%%Fullnamey%%Pswrdchngy%%Pswrdreqy%%ScriptPathy%%Usercommenty%%WorkStationsy%
    goto ItemP
    :ItemD
    cls
    set Host=
    set /p Host=Host:
    if not '%Host%'=='' set Host=\\%Host:~0,12%
    if '%Host%'=='' set Host=%useip%
    cls
    net view %Host%
    goto ItemP
    :ItemE
    cls
    set Host=
    set /p Host=Host:
    if not '%Host%'=='' set Host=%Host:~0,12%
    if '%Host%'=='' set Host=%useip%
    cls
    nbtstat -a %Host%
    goto ItemP
    :ItemF
    cls
    echo nbtstat -c
    goto ItemP
    :ItemG
    cls
    set Host=
    set /p Host=Host:
    if not '%Host%'=='' set Host=%Host:~0,12%
    if '%Host%'=='' set Host=%useip%
    cls
    nbtstat -A %Host%
    goto ItemP
    :ItemP
    set Pause=
    set /p Pause=
    cls
    goto Start
    :ItemH
    cls
    exit
    :ItemI
    cls
    set Host=
    set /p Host=Host:
    if not '%Host%'=='' set Host=%Host:~0,12%
    if '%Host%'=='' set Host=%useip%
    cls
    echo 1.) View
    echo 2.) Set As Yours
    set /p Function=Function:
    if '%Function%'=='1' set Function=
    if '%Function%'=='2' set Function= /Set
    cls
    net time \\%Host%%Function%
    goto ItemP
    :ItemJ
    cls
    set Host=
    set /p Host=Host:
    if not '%Host%'=='' set Host= \\%Host:~0,12%
    if '%Host%'=='' set Host= \\%useip%
    cls
    echo 1.) View
    echo 2.) Add
    echo 3.) Delete
    set Function=
    set /p Function=Function:
    if '%Function%'=='1' set Function=
    if '%Function%'=='2' set Function= /Add
    if '%Function%'=='3' set Function= /Delete
    cls
    net localgroup%Host%%Function%
    goto ItemP
    :ItemK
    cls
    set Host=
    set /p Host=Host:
    if not '%Host%'=='' set Host= \\%Host:~0,12%
    if '%Host%'=='' set Host= \\%useip%
    set Shared=
    set /p Shared=Shared Folder:
    if not '%Shared%'=='' set Shared=\%Shared:~0,12%
    set Shared=
    set /p ID=Print Number:
    if not '%ID%'=='' set ID= %ID:~0,12%
    cls
    echo 1.) Hold
    echo 2.) Delete
    echo 3.) Release
    set Function=
    set /p Function=Function:
    if '%Function%'=='1' set Function= /Hold
    if '%Function%'=='2' set Function= /Delete
    if '%Function%'=='3' set Function= /Release
    cls
    net print%Host%%Shared%%ID%%Function%
    goto ItemP
    :ItemL
    cls
    set Host=
    set /p Host=Shared Name:
    if not '%Host%'=='' set Host= %Host:~0,12%
    if '%Host%'=='' set Host=%useip%
    set Shared=
    set /p Shared=Drive:
    if not '%Shared%'=='' set Shared==%Shared:~0,12%:
    set Usrf=
    set /p Usrf=Max Users:
    if not '%Usrf%'=='' set Usrf= /Unlimited
    set Remarky=
    set /p Remarky=Remark:
    if not '%Remarky%'=='' set Remarky= /REMARK:%Remarky:~0,12%
    set Funst=
    set /p Funst=Function:
    if not '%Funst%'=='' set Funst= /Delete
    cls
    net Share%Host%%Shared%%Usrf%%Remarky%%Funst%
    goto ItemP
    :ItemM
    cls
    set ForceLogoff=
    set /p ForceLogoff=Force Logoff (mins):NO
    if not '%ForceLogoff%'=='' set ForceLogoff= /FORCELOGOFF:%ForceLogoff:~0,12%
    set MinPassword=
    set /p MinPassword=Minimum Password legnth:6
    if not '%MinPassword%'=='' set MinPassword= /MINPWLEN:%MinPassword:~0,12%
    set MaxPwAge=
    set /p MaxPwAge=Password Expires:90
    if not '%MaxPwAge%'=='' set MaxPwAge= /MAXPWAGE:%MaxPwAge:~0,12%
    set UniPassChng=
    set /p UniPassChng=unique password chance number:24
    if not '%UniPassChng%'=='' set UniPassChng= /UNIQUEPW:%UniPassChng:~0,12%
    set Domain=
    set /p Domain=Domain:
    if not '%Domain%'=='' set Domain= /%Domain:~0,12%
    cls
    net accounts%ForceLogoff%%MinPassword%%MaxPwAge%%UniPassChng%%Domain%
    goto ItemP
    :ItemN
    cls
    echo A.) SERVER
    echo B.) WORKSTATION
    set Configy=
    set /p Configy=Select Item:
    if '%Configy%'=='A' set Configy= WORKSTATION
    if '%Configy%'=='B' set Configy= SERVER
    set AUTODISCONNECTy=
    set /p AUTODISCONNECTy=AutoDisconnect Time:
    if not '%AUTODISCONNECTy%'=='' set AUTODISCONNECTy= /AUTODISCONNECT:%AUTODISCONNECTy:~0,12%
    set SRVCOMMENTy=
    set /p SRVCOMMENTy=Comment:
    if not '%SRVCOMMENTy%'=='' set SRVCOMMENTy= /SRVCOMMENT:%SRVCOMMENTy:~0,12%
    cls
    echo A.) Yes
    echo B.) No
    set HIDDENy=
    set /p HIDDENy=Hidden:
    if '%HIDDENy%'=='A' set HIDDENy= /HIDDEN:YES
    if '%HIDDENy%'=='B' set HIDDENy= /HIDDEN:NO
    net Config%Configy%%AUTODISCONNECTy%%SRVCOMMENTy%%HIDDENy%
    goto ItemP
    :Item0
    cls
    set Host=
    set /p Host=Current Host:
    if not '%Host%'=='' set Host= \\%Host:~0,12%
    if '%Host%'=='' set Host= \\%useip%
    cls
    echo A.) View
    echo B.) Delete
    set Action=
    set /p Action=Action:
    if '%Action%'=='A' set Action=
    if '%Action%'=='B' set Action= /Delete
    net session%Host%%Action%
    goto ItemP
    :ItemQ
    cls
    IPCONFIG
    goto ItemP

    :ItemR
    cls
    net share
    goto ItemP
    :ItemS
    cls
    set useip=
    set /p useip=IP Address:
    if not '%useip%'=='' set useip=%useip:~0,15%
    goto ItemP
    AntiOnline Quick Forum Version 2b Click Here
    10010101000000110010001100111

  5. #5
    Senior Member
    Join Date
    Aug 2003
    Posts
    1,019
    Well, I barely understand any of it, but you get 2 thumbs up for the effort involved

  6. #6
    Senior Member
    Join Date
    Sep 2003
    Posts
    279
    thank you
    AntiOnline Quick Forum Version 2b Click Here
    10010101000000110010001100111

  7. #7
    Member
    Join Date
    Aug 2002
    Posts
    57
    spools, Maybe uploading the .bat instead of just adding in to the forum would have been better!
    Otherwise good post!

  8. #8
    Senior Member
    Join Date
    Sep 2003
    Posts
    279
    i just wanted to allow people to see the functions of the batch file w/o having to download it. I know that i woulnd not want to download a batch file w/o at least knowing what is in it first.
    AntiOnline Quick Forum Version 2b Click Here
    10010101000000110010001100111

  9. #9
    Senior Member
    Join Date
    Sep 2003
    Posts
    500
    Hey spools do I have to do more than putting that in a notepad and saving as a *.bat?
    You shall no longer take things at second or third hand,
    nor look through the eyes of the dead...You shall listen to all
    sides and filter them for your self.
    -Walt Whitman-

  10. #10
    Senior Member
    Join Date
    Sep 2003
    Posts
    279
    nope, just have windows xp or 2000
    AntiOnline Quick Forum Version 2b Click Here
    10010101000000110010001100111

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •