Group commando i script
Hej drengeHar et script her:
if "%username%" == "JanA" goto dire
if "%username%" == "OleO" goto schef
if "%username%" == "StenB" goto sleder
if "%username%" == "BentG" goto saelger1
if "%username%" == "JohnH" goto saelger2
if "%username%" == "ViktorH" goto achef
if "%username%" == "KirstenB" goto aleder
if "%username%" == "LoneM" goto assistent1
if "%username%" == "Marianne J" goto assistent2
if "%username%" == "BirgerB" goto inchef
if "%username%" == "JanieT" goto indkoeber
if "%username%" == "LarsL" goto itchef
if "%username%" == "GunnerN" goto admin
if "%username%" == "KarinaP" goto laerling
if "%username%" == "FrankC" goto Frank Ceder
if "%username%" == "IbF" goto Ib Frederiksen
if "%username%" == "KarinaP" goto Karina Petersen
if "%username%" == "TorbenG" goto Torb
if "%username%" == "LoneK" goto pchef
if "%username%" == "TorbenJ" goto vaerkf
if "%username%" == "SuneF" goto prod
if "%username%" == "IbF" goto prod
if "%username%" == "HansB" goto vaerkf
if "%username%" == "TorbenG" goto rep
if "%username%" == "FrankC" goto rep
if "%username%" == "TomB" goto vaerkf
if "%username%" == "BjarneH" goto lager
if "%username%" == "BrianB" goto lager
goto done
:dire
net use L: \\lirial\ledelse
net use H: "\\lirial\JanA"
net use P: \\lirial\prog
goto done
:schef
net use Z: \\lirial\salg
net use L: \\lirial\ledelse
net use H: "\\lirial\OleO"
net use S: \\lirial\sisamlet
net use P: \\lirial\prog
goto done
:sleder
net use Z: \\lirial\salg
net use S: \\lirial\sisamlet
net use H: "\\lirial\StenB"
net use P: \\lirial\prog
goto done
:saelger1
net use Z: \\lirial\salg
net use S: \\lirial\sisamlet
net use H: "\\lirial\BentG"
net use P: \\lirial\prog
goto done
Mit problem er at den ikke skal kører på "username" men på en Group i AD men hvilken commando skal man bruge til det ?
