Re: Login script to exit based on Computername.
From: BNichols (BNichols_at_discussions.microsoft.com)
Date: 01/11/05
- Next message: Torgeir Bakken \(MVP\): "Re: Login script to exit based on Computername."
- Previous message: kevinL: "scripting an IIS redirect"
- In reply to: Al Dunbar [MS-MVP]: "Re: Login script to exit based on Computername."
- Next in thread: Torgeir Bakken \(MVP\): "Re: Login script to exit based on Computername."
- Reply: Torgeir Bakken \(MVP\): "Re: Login script to exit based on Computername."
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 11 Jan 2005 05:43:12 -0800
Thanks for the suggestion. Do you know the VB Scripting to run the same
command. All workstations running the command are W2k or newer OS.
"Al Dunbar [MS-MVP]" wrote:
>
> "BNichols" <BNichols@discussions.microsoft.com> wrote in message
> news:0219BF0D-A808-4368-9705-DA5765A0A432@microsoft.com...
> > Looking for the correct computer name statement that will allow an IF THEN
> > statement to funtion so I can run the wscript.quit statement to exit the
> > login script based on computername. I have a printer script assigning
> > printers to login ID's based on groupmembership, if user(s) login from a
> > certin computer name called TEST I want the script to exit before it
> assigns
> > the printers.
>
> Depending somewhat on the client o/s and the scripting language you are
> using, this might work (for NT4 and up in batch)
>
> if /i "%computername%" EQU "test1" goto:eof
>
>
> /Al
>
>
>
- Next message: Torgeir Bakken \(MVP\): "Re: Login script to exit based on Computername."
- Previous message: kevinL: "scripting an IIS redirect"
- In reply to: Al Dunbar [MS-MVP]: "Re: Login script to exit based on Computername."
- Next in thread: Torgeir Bakken \(MVP\): "Re: Login script to exit based on Computername."
- Reply: Torgeir Bakken \(MVP\): "Re: Login script to exit based on Computername."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|