RE: [ActiveDir] logon scripts
Love to see that script John Hann MOM MVP From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rich Milburn Sent: Thursday, December 08, 2005 11:23 AM To: ActiveDir@mail.activedir.org Subject: RE: [ActiveDir] logon scripts If you know a user’s profile name, so you can calculate the value of “c:\documents and settings\username\”, you can use reg load to load the ntuser.dat, make edits to the key, and unload. Unloading is important, or it will create a new profile for said user because their profile will be in use. I have a script that does this (not for users, for something else), it works well. --- Rich Milburn MCSE, Microsoft MVP - Directory Services Sr Network Analyst, Field Platform Development Applebee's International, Inc. 4551 W. 107th St Overland Park, KS 66207 913-967-2819 -- ”I love the smell of red herrings in the morning” - anonymous From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tom Kern Sent: Wednesday, December 07, 2005 7:35 PM To: ActiveDir@mail.activedir.org Subject: Re: [ActiveDir] logon scripts The 2nd script reads a value from HKCU\Software and writes it to file I need to read a value from it but I can only access it when the current user is logged on. I don't know how else to gain access to that key since i don't know the user's sid, so i put it into a user logon script via GPO so i can read it when the user logs on and that key is loaded. should i run scripts sycncronously to get this key or is there a way to read it without the user logged on? thanks On 12/7/05, Jeff Salisbury <[EMAIL PROTECTED]> wrote: We had this happen by accident for a short time. The old logon script specied in the user account properties was running as well as the desired logon script, which we tie to AD Sites. Both were running, and if I remember right the drive mappings in the legacy script were winning - which would mean that it was running after the script that was triggered by group policy. I don't think there is any harm provided there aren't conflicting drive mappings or other settings where script timing would need to be verified and accounted for. Jeff From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]] On Behalf Of Tom Kern Sent: Wednesday, December 07, 2005 12:58 PM To: activedirectory Subject: [ActiveDir] logon scripts What happends if you have 2 different logon scripts for users- one in the legacy location and one in a domain GPO? how do they execute? does one start sooner? are there any issues with doing things this way for a short time period? Both scripts do completley different things. Thanks Confidential This e-mail and any files transmitted with it are the property of Belkin Corporation and/or its affiliates, are confidential, and are intended solely for the use of the individual or entity to whom this e-mail is addressed. If you are not one of the named recipients or otherwise have reason to believe that you have received this e-mail in error, please notify the sender and delete this message immediately from your computer. Any other use, retention, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited. ---APPLEBEE'S INTERNATIONAL, INC. CONFIDENTIALITY NOTICE--- PRIVILEGED / CONFIDENTIAL INFORMATION may be contained in this message or any attachments. This information is strictly confidential and may be subject to attorney-client privilege. This message is intended only for the use of the named addressee. If you are not the intended recipient of this message, unauthorized forwarding, printing, copying, distribution, or using such information is strictly prohibited and may be unlawful. If you have received this in error, you should kindly notify the sender by reply e-mail and immediately destroy this message. Unauthorized interception of this e-mail is a violation of federal criminal law. Applebee's International, Inc. reserves the right to monitor and review the content of all messages sent to and from this e-mail address. Messages sent to or from this e-mail address may be stored on the Applebee's International, Inc. e-mail system.
RE: [ActiveDir] logon scripts
If you know a user’s profile name, so you can calculate the value of “c:\documents and settings\username\”, you can use reg load to load the ntuser.dat, make edits to the key, and unload. Unloading is important, or it will create a new profile for said user because their profile will be in use. I have a script that does this (not for users, for something else), it works well. --- Rich Milburn MCSE, Microsoft MVP - Directory Services Sr Network Analyst, Field Platform Development Applebee's International, Inc. 4551 W. 107th St Overland Park, KS 66207 913-967-2819 -- ”I love the smell of red herrings in the morning” - anonymous From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tom Kern Sent: Wednesday, December 07, 2005 7:35 PM To: ActiveDir@mail.activedir.org Subject: Re: [ActiveDir] logon scripts The 2nd script reads a value from HKCU\Software and writes it to file I need to read a value from it but I can only access it when the current user is logged on. I don't know how else to gain access to that key since i don't know the user's sid, so i put it into a user logon script via GPO so i can read it when the user logs on and that key is loaded. should i run scripts sycncronously to get this key or is there a way to read it without the user logged on? thanks On 12/7/05, Jeff Salisbury <[EMAIL PROTECTED]> wrote: We had this happen by accident for a short time. The old logon script specied in the user account properties was running as well as the desired logon script, which we tie to AD Sites. Both were running, and if I remember right the drive mappings in the legacy script were winning - which would mean that it was running after the script that was triggered by group policy. I don't think there is any harm provided there aren't conflicting drive mappings or other settings where script timing would need to be verified and accounted for. Jeff From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]] On Behalf Of Tom Kern Sent: Wednesday, December 07, 2005 12:58 PM To: activedirectory Subject: [ActiveDir] logon scripts What happends if you have 2 different logon scripts for users- one in the legacy location and one in a domain GPO? how do they execute? does one start sooner? are there any issues with doing things this way for a short time period? Both scripts do completley different things. Thanks Confidential This e-mail and any files transmitted with it are the property of Belkin Corporation and/or its affiliates, are confidential, and are intended solely for the use of the individual or entity to whom this e-mail is addressed. If you are not one of the named recipients or otherwise have reason to believe that you have received this e-mail in error, please notify the sender and delete this message immediately from your computer. Any other use, retention, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited. ---APPLEBEE'S INTERNATIONAL, INC. CONFIDENTIALITY NOTICE--- PRIVILEGED / CONFIDENTIAL INFORMATION may be contained in this message or any attachments. This information is strictly confidential and may be subject to attorney-client privilege. This message is intended only for the use of the named addressee. If you are not the intended recipient of this message, unauthorized forwarding, printing, copying, distribution, or using such information is strictly prohibited and may be unlawful. If you have received this in error, you should kindly notify the sender by reply e-mail and immediately destroy this message. Unauthorized interception of this e-mail is a violation of federal criminal law. Applebee's International, Inc. reserves the right to monitor and review the content of all messages sent to and from this e-mail address. Messages sent to or from this e-mail address may be stored on the Applebee's International, Inc. e-mail system.
RE: [ActiveDir] logon scripts
This script enumerates all the Windows profiles on a computer and then lists all the MAPI profiles for each user too. If a computer is turned on and no firewall is getting in the way and the Remote Registry service is running, you can access any key/value on the computer remotely. Option Explicit ' ' cscript //nologo enumerate-profiles.vbs [optional-computer-name] ' Const HKEY_USERS = &H8003 Dim objRegistry, iRC Dim arrSubKeys, strKey Dim strProfiles, strProfile, arrProfiles Dim objWS, strNode On Error Resume Next If WScript.Arguments.Count > 0 Then strNode = WScript.Arguments (0) Else strNode = "." End If wscript.Echo "Checking for profiles on computer " & strNode Set objWS = CreateObject ("WScript.Shell") Set objRegistry = GetObject ("winmgmts:{impersonationLevel=impersonate}!\\" & _ strNode & "/root/default:StdRegProv") If Err.Number <> 0 Then wscript.Echo "Error binding to StdRegProv for " & strNode & _ ", " & Err.Description & " (0x" & Hex(Err.Number) & ")" wscript.quit 1 End If iRC = objRegistry.EnumKey (HKEY_USERS, "", arrSubKeys) For Each strKey In arrSubKeys If Len (strKey) > 20 Then ' 20 is rather arbitrary, but it worked in my testing If Right (strKey, 8) <> "_Classes" Then wscript.echo "User: " & strkey Call TranslateSID (strKey) strProfiles = "Software\Microsoft\Windows NT\CurrentVersion\" & _ "Windows Messaging Subsystem\Profiles" strProfiles = strKey & "\" & strProfiles iRC = objRegistry.EnumKey (HKEY_USERS, strProfiles, arrProfiles) If iRC = 0 Then For each strProfile in arrProfiles wscript.echo vbTab & vbTab & strProfile Next Else WScript.echo vbTab & vbTab & "(no profiles for user)" End If Set arrProfiles = Nothing End If End If Next Set objWS = Nothing Set objRegistry = Nothing WScript.Echo "Done!" WScript.Quit 0 Sub TranslateSID (strSID) Dim str str = GetUserfromSID (strSID) If Len (str) < 2 Then str = "(unknown name)" wscript.echo " " & str End Sub Function GetUserFromSID (SID) ' from http://www.windowsitpro.com/WindowsScripting/Article/ArticleID/47127/47127.html Dim WMISID, Result On Error Resume Next Set WMISID = GetObject("winmgmts:{impersonationlevel=impersonate}!" _ & "/root/cimv2:Win32_SID.SID='" & SID & "'") If Err = 0 Then Result = WMISID.ReferencedDomainName & "\" & WMISID.AccountName Else Result = "" End If Set WMSSID = Nothing GetUserFromSID = Result End Function From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tom Kern Sent: Wednesday, December 07, 2005 8:35 PM To: ActiveDir@mail.activedir.org Subject: Re: [ActiveDir] logon scripts The 2nd script reads a value from HKCU\Software and writes it to file I need to read a value from it but I can only access it when the current user is logged on. I don't know how else to gain access to that key since i don't know the user's sid, so i put it into a user logon script via GPO so i can read it when the user logs on and that key is loaded. should i run scripts sycncronously to get this key or is there a way to read it without the user logged on? thanks On 12/7/05, Jeff Salisbury <[EMAIL PROTECTED]> wrote: We had this happen by accident for a short time. The old logon script specied in the user account properties was running as well as the desired logon script, which we tie to AD Sites. Both were running, and if I remember right the drive mappings in the legacy script were winning - which would mean that it was
RE: [ActiveDir] logon scripts
Yes, your best bet is probably to set that GP logon script to run synchronously, which gives you a better chance of being able to read out of HKCU after its loaded. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tom KernSent: Wednesday, December 07, 2005 5:35 PMTo: ActiveDir@mail.activedir.orgSubject: Re: [ActiveDir] logon scripts The 2nd script reads a value from HKCU\Software and writes it to file I need to read a value from it but I can only access it when the current user is logged on. I don't know how else to gain access to that key since i don't know the user's sid, so i put it into a user logon script via GPO so i can read it when the user logs on and that key is loaded. should i run scripts sycncronously to get this key or is there a way to read it without the user logged on? thanks On 12/7/05, Jeff Salisbury <[EMAIL PROTECTED]> wrote: We had this happen by accident for a short time. The old logon script specied in the user account properties was running as well as the desired logon script, which we tie to AD Sites. Both were running, and if I remember right the drive mappings in the legacy script were winning - which would mean that it was running after the script that was triggered by group policy. I don't think there is any harm provided there aren't conflicting drive mappings or other settings where script timing would need to be verified and accounted for. Jeff From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]] On Behalf Of Tom KernSent: Wednesday, December 07, 2005 12:58 PMTo: activedirectorySubject: [ActiveDir] logon scripts What happends if you have 2 different logon scripts for users- one in the legacy location and one in a domain GPO? how do they execute? does one start sooner? are there any issues with doing things this way for a short time period? Both scripts do completley different things. Thanks ConfidentialThis e-mail and any files transmitted with it are the propertyof Belkin Corporation and/or its affiliates, are confidential,and are intended solely for the use of the individual or entity to whom this e-mail is addressed. If you are not oneof the named recipients or otherwise have reason to believethat you have received this e-mail in error, please notify thesender and delete this message immediately from your computer. Any other use, retention, dissemination, forwarding, printingor copying of this e-mail is strictly prohibited.
Re: [ActiveDir] logon scripts
The 2nd script reads a value from HKCU\Software and writes it to file I need to read a value from it but I can only access it when the current user is logged on. I don't know how else to gain access to that key since i don't know the user's sid, so i put it into a user logon script via GPO so i can read it when the user logs on and that key is loaded. should i run scripts sycncronously to get this key or is there a way to read it without the user logged on? thanks On 12/7/05, Jeff Salisbury <[EMAIL PROTECTED]> wrote: We had this happen by accident for a short time. The old logon script specied in the user account properties was running as well as the desired logon script, which we tie to AD Sites. Both were running, and if I remember right the drive mappings in the legacy script were winning - which would mean that it was running after the script that was triggered by group policy. I don't think there is any harm provided there aren't conflicting drive mappings or other settings where script timing would need to be verified and accounted for. Jeff From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]] On Behalf Of Tom KernSent: Wednesday, December 07, 2005 12:58 PMTo: activedirectorySubject: [ActiveDir] logon scripts What happends if you have 2 different logon scripts for users- one in the legacy location and one in a domain GPO? how do they execute? does one start sooner? are there any issues with doing things this way for a short time period? Both scripts do completley different things. Thanks ConfidentialThis e-mail and any files transmitted with it are the propertyof Belkin Corporation and/or its affiliates, are confidential,and are intended solely for the use of the individual or entity to whom this e-mail is addressed. If you are not oneof the named recipients or otherwise have reason to believethat you have received this e-mail in error, please notify thesender and delete this message immediately from your computer. Any other use, retention, dissemination, forwarding, printingor copying of this e-mail is strictly prohibited.
RE: [ActiveDir] logon scripts
We had this happen by accident for a short time. The old logon script specied in the user account properties was running as well as the desired logon script, which we tie to AD Sites. Both were running, and if I remember right the drive mappings in the legacy script were winning - which would mean that it was running after the script that was triggered by group policy. I don't think there is any harm provided there aren't conflicting drive mappings or other settings where script timing would need to be verified and accounted for. Jeff From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tom KernSent: Wednesday, December 07, 2005 12:58 PMTo: activedirectorySubject: [ActiveDir] logon scripts What happends if you have 2 different logon scripts for users- one in the legacy location and one in a domain GPO? how do they execute? does one start sooner? are there any issues with doing things this way for a short time period? Both scripts do completley different things. Thanks ConfidentialThis e-mail and any files transmitted with it are the propertyof Belkin Corporation and/or its affiliates, are confidential,and are intended solely for the use of the individual orentity to whom this e-mail is addressed. If you are not oneof the named recipients or otherwise have reason to believethat you have received this e-mail in error, please notify thesender and delete this message immediately from your computer.Any other use, retention, dissemination, forwarding, printingor copying of this e-mail is strictly prohibited.
RE: [ActiveDir] logon scripts
Tom- Its not a problem to do this. Both will end up running at roughly the same time (independent of one another) and by default will run asynchronous to the Explorer shell being up and available (i.e. before the user sees their desktop). So, just make that you are not relying on one script completing before the other runs. Darren From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tom KernSent: Wednesday, December 07, 2005 12:58 PMTo: activedirectorySubject: [ActiveDir] logon scripts What happends if you have 2 different logon scripts for users- one in the legacy location and one in a domain GPO? how do they execute? does one start sooner? are there any issues with doing things this way for a short time period? Both scripts do completley different things. Thanks
RE: [ActiveDir] Logon Scripts
With this query, you don't actually need -tdc. It won't add any value because you aren't requesting any time attributes. Also you can slim it down to only show users who have a script set by using the following adfind.exe -b dc=domain,dc=edu -f "&(objectcategory=person)(samaccountname=*)(scriptpath=*)" -tdc scriptPath userPrincipalName >c:\scriptPath.log joe -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Singler Sent: Tuesday, February 22, 2005 4:37 PM To: ActiveDir@mail.activedir.org Subject: Re: [ActiveDir] Logon Scripts you can try (watch wrap): adfind.exe -b dc=domain,dc=edu -f "&(objectcategory=person)(samaccountname=*)" -tdc scriptPath userPrincipalName >c:\scriptPath.log check joeware.net for adfind Charlie Saliba wrote: > Is there anyway to tell without clicking into each user's properties > to tell which logon script they use? > List info : http://www.activedir.org/List.aspx > List FAQ: http://www.activedir.org/ListFAQ.aspx > List archive: > http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/List.aspx List FAQ: http://www.activedir.org/ListFAQ.aspx List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/List.aspx List FAQ: http://www.activedir.org/ListFAQ.aspx List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
RE: [ActiveDir] Logon Scripts
Hi, You could create a script to retrieve the scriptpath attribute from all users in a textfile or excelsheet using the following code: On Error Resume Next Set objUser = GetObject _ ("LDAP://cn=myerken,ou=management,dc=fabrikam,dc=com";) objUser.GetInfo strScriptPath = objUser.Get("scriptPath") WScript.echo "scriptPath: " & strScriptPath OR USE ADFIND from JOEWARE adfind -b dc=w2k3domain,dc=lan -f "&(objectcategory=person)(samaccountna me=*)" scriptpath AdFind V01.26.00cpp Joe Richards ([EMAIL PROTECTED]) February 2005 Using server: W2K3DC01.W2K3DOMAIN.LAN Directory: Windows Server 2003 dn:CN=Administrator,CN=Users,DC=W2K3DOMAIN,DC=LAN dn:CN=Guest,CN=Users,DC=W2K3DOMAIN,DC=LAN dn:CN=SUPPORT_388945a0,CN=Users,DC=W2K3DOMAIN,DC=LAN dn:CN=IUSR_W2K3SRV00,CN=Users,DC=W2K3DOMAIN,DC=LAN dn:CN=IWAM_W2K3SRV00,CN=Users,DC=W2K3DOMAIN,DC=LAN dn:CN=krbtgt,CN=Users,DC=W2K3DOMAIN,DC=LAN dn:CN=USER01,OU=USERS,OU=ORG,DC=W2K3DOMAIN,DC=LAN >scriptPath: LOGON.CMD dn:CN=user02,OU=USERS,OU=ORG,DC=W2K3DOMAIN,DC=LAN >scriptPath: LOGIN.VBS To output into a textfile use: adfind -b dc=w2k3domain,dc=lan -f "&(objectcategory=person)(samaccountna me=*)" scriptpath > OUTPUT.TXT Cheers Jorge -Original Message- From: [EMAIL PROTECTED] To: ActiveDir@mail.activedir.org Sent: 2/22/2005 10:20 PM Subject: [ActiveDir] Logon Scripts Is there anyway to tell without clicking into each user's properties to tell which logon script they use? List info : http://www.activedir.org/List.aspx List FAQ: http://www.activedir.org/ListFAQ.aspx List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. List info : http://www.activedir.org/List.aspx List FAQ: http://www.activedir.org/ListFAQ.aspx List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
Re: [ActiveDir] Logon Scripts
you can try (watch wrap): adfind.exe -b dc=domain,dc=edu -f "&(objectcategory=person)(samaccountname=*)" -tdc scriptPath userPrincipalName >c:\scriptPath.log check joeware.net for adfind Charlie Saliba wrote: Is there anyway to tell without clicking into each user's properties to tell which logon script they use? List info : http://www.activedir.org/List.aspx List FAQ: http://www.activedir.org/ListFAQ.aspx List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/List.aspx List FAQ: http://www.activedir.org/ListFAQ.aspx List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
RE: [ActiveDir] Logon Scripts
This would give you the results for everyone in the Users container, SAM ID and login script, with a | in between. Run from cscript or you'll get to click OK on each user! :-) Dim OU, oUser, UserObj set OU = GetObject("LDAP://CN=Users,DC=my,DC=domain,DC=COM";) For Each UserObj in OU WScript.Echo UserObj.sAMAccountName & "|" & UserObj.LoginScript Next WScript.Quit -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Charlie Saliba Sent: Tuesday, February 22, 2005 4:21 PM To: ActiveDir@mail.activedir.org Subject: [ActiveDir] Logon Scripts Is there anyway to tell without clicking into each user's properties to tell which logon script they use? List info : http://www.activedir.org/List.aspx List FAQ: http://www.activedir.org/ListFAQ.aspx List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ This e-mail transmission contains information that is intended to be confidential and privileged. If you receive this e-mail and you are not a named addressee you are hereby notified that you are not authorized to read, print, retain, copy or disseminate this communication without the consent of the sender and that doing so is prohibited and may be unlawful. Please reply to the message immediately by informing the sender that the message was misdirected. After replying, please delete and otherwise erase it and any attachments from your computer system. Your assistance in correcting this error is appreciated. Thank you. Cintas Corporation. List info : http://www.activedir.org/List.aspx List FAQ: http://www.activedir.org/ListFAQ.aspx List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
RE: [ActiveDir] logon scripts
:) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, April 29, 2004 11:01 AM To: [EMAIL PROTECTED] Subject: RES: [ActiveDir] logon scripts Return Receipt Your RES: [ActiveDir] logon scripts document : was Kelly Borndale/Sybari/US received by: at: 04/29/2004 11:01:08 AM List info : http://www.activedir.org/mail_list.htm List FAQ: http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/mail_list.htm List FAQ: http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
RE: [ActiveDir] logon scripts
bizarre.. ;oP -rtk From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jimmy AnderssonSent: Tuesday, April 13, 2004 11:41 AMTo: [EMAIL PROTECTED]Subject: RE: [ActiveDir] logon scripts Sober? What's that??? :) /Jimmy From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Roger SeielstadSent: Tuesday, April 13, 2004 6:22 PMTo: [EMAIL PROTECTED]Subject: RE: [ActiveDir] logon scripts To quote Tony Murray-Smith - "I'm still trying to get used to being sober" -- Roger D. Seielstad - MTS MCSE MS-MVP Sr. Systems Administrator Inovis Inc. From: deji Agba [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 13, 2004 11:11 AMTo: [EMAIL PROTECTED]Subject: RE: [ActiveDir] logon scripts What can I say? I'm still jet-lagged, I guess :) Thanks for the pointer. Sincerely,Dèjì Akómöláfé, MCSE MCSA MCP+I Microsoft MVP - Active Directorywww.akomolafe.comwww.iyaburo.comDo you now realize that Today is the Tomorrow you were worried about Yesterday? -anon From: Roger SeielstadSent: Tue 4/13/2004 6:24 AMTo: [EMAIL PROTECTED]Subject: RE: [ActiveDir] logon scripts Except Deji forgets one important piece of information (which is rare for him) - VBScript doesn't natively run on Win9x. It requires a separate install of Windows Scripting Host. -- Roger D. Seielstad - MTS MCSE MS-MVP Sr. Systems Administrator Inovis Inc. From: Rick Kingslan [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 13, 2004 12:19 AMTo: [EMAIL PROTECTED]Subject: RE: [ActiveDir] logon scripts Smart guy. :op -rtk From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of deji AgbaSent: Monday, April 12, 2004 11:13 PMTo: [EMAIL PROTECTED]Subject: RE: [ActiveDir] logon scripts I don't have a Win9X to test this on, but Win2K/2K3/XP is fair game for this: Set wshNetwork = WScript.CreateObject("WScript.Network")Set wshShell = WScript.CreateObject("WScript.Shell") str_Group1_Share = "file://myserver/myShare1"str_Exec_Share = "file://myserver/myShare2"str_BS_Share = "file://myserver/myShare3"str_Super_Share = "file://mySuperServer/SuperShare" strDriveToMap = "H:" usrName = wshShell.ExpandEnvironmentStrings("%USERNAME%")Set usr = GetObject("WinNT://MyDomainName/" & usrName & ",user") For Each grp In usr.Groups WScript.Echo grp.Name If grp.Name = "BS-Group" Then wshNetwork.MapNetworkDrive strDriveToMap, str_BS_Share Exit For Elseif grp.Name = "SOME_GROUP" Then wshNetwork.MapNetworkDrive strDriveToMap, str_Group1_Share Exit For Elseif grp.Name = "yet_Another_Group" OR grp.Name = "Super-DuperUser" Then wshNetwork.MapNetworkDrive strDriveToMap, str_Super_Share wshNetwork.MapNetworkDrive "K:", str_Exec_Share Exit For End IfNext Set usr = NothingSet wshShell = NothingSet wshNetwork = Nothing HTH Sincerely,Dèjì Akómöláfé, MCSE MCSA MCP+I Microsoft MVP - Active Directorywww.akomolafe.comwww.iyaburo.comDo you now realize that Today is the Tomorrow you were worried about Yesterday? -anon From: Nathan CaseySent: Mon 4/12/2004 4:17 PMTo: [EMAIL PROTECTED]Subject: [ActiveDir] logon scripts What is a recommended logon script solution that will work with win9x, win2k/xp clients for drive mapping, etc that works similar to Novell logon scripts? Example: IF MEMBER OF "GROUP" THEN BEGIN MAP H:=SERVER1\VOL1: END
RE: [ActiveDir] logon scripts
There is a killer TZ issue going south of Seattle If that isn't a funny enough response try Deji, you mispelled drunk. :o) "Its rather unpleasantly like being drunk" "What's wrong with being drunk?" "Ask a glass of water" [1] joe [1] Lifted from Hitchhikers Guide to the Galaxy. BTW, a glass of water would have been perfectly safe at the summit. =) - http://www.joeware.net (download joeware) http://www.cafeshops.com/joewarenet (wear joeware) From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mulnick, AlSent: Tuesday, April 13, 2004 2:03 PMTo: '[EMAIL PROTECTED]'Subject: RE: [ActiveDir] logon scripts Jet-lagged? Did you take a long detour on the way home? :) From: deji Agba [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 13, 2004 11:11 AMTo: [EMAIL PROTECTED]Subject: RE: [ActiveDir] logon scripts What can I say? I'm still jet-lagged, I guess :) Thanks for the pointer. Sincerely,Dèjì Akómöláfé, MCSE MCSA MCP+I Microsoft MVP - Active Directorywww.akomolafe.comwww.iyaburo.comDo you now realize that Today is the Tomorrow you were worried about Yesterday? -anon From: Roger SeielstadSent: Tue 4/13/2004 6:24 AMTo: [EMAIL PROTECTED]Subject: RE: [ActiveDir] logon scripts Except Deji forgets one important piece of information (which is rare for him) - VBScript doesn't natively run on Win9x. It requires a separate install of Windows Scripting Host. -- Roger D. Seielstad - MTS MCSE MS-MVP Sr. Systems Administrator Inovis Inc. From: Rick Kingslan [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 13, 2004 12:19 AMTo: [EMAIL PROTECTED]Subject: RE: [ActiveDir] logon scripts Smart guy. :op -rtk From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of deji AgbaSent: Monday, April 12, 2004 11:13 PMTo: [EMAIL PROTECTED]Subject: RE: [ActiveDir] logon scripts I don't have a Win9X to test this on, but Win2K/2K3/XP is fair game for this: Set wshNetwork = WScript.CreateObject("WScript.Network")Set wshShell = WScript.CreateObject("WScript.Shell") str_Group1_Share = "file://myserver/myShare1"str_Exec_Share = "file://myserver/myShare2"str_BS_Share = "file://myserver/myShare3"str_Super_Share = "file://mySuperServer/SuperShare" strDriveToMap = "H:" usrName = wshShell.ExpandEnvironmentStrings("%USERNAME%")Set usr = GetObject("WinNT://MyDomainName/" & usrName & ",user") For Each grp In usr.Groups WScript.Echo grp.Name If grp.Name = "BS-Group" Then wshNetwork.MapNetworkDrive strDriveToMap, str_BS_Share Exit For Elseif grp.Name = "SOME_GROUP" Then wshNetwork.MapNetworkDrive strDriveToMap, str_Group1_Share Exit For Elseif grp.Name = "yet_Another_Group" OR grp.Name = "Super-DuperUser" Then wshNetwork.MapNetworkDrive strDriveToMap, str_Super_Share wshNetwork.MapNetworkDrive "K:", str_Exec_Share Exit For End IfNext Set usr = NothingSet wshShell = NothingSet wshNetwork = Nothing HTH Sincerely,Dèjì Akómöláfé, MCSE MCSA MCP+I Microsoft MVP - Active Directorywww.akomolafe.comwww.iyaburo.comDo you now realize that Today is the Tomorrow you were worried about Yesterday? -anon From: Nathan CaseySent: Mon 4/12/2004 4:17 PMTo: [EMAIL PROTECTED]Subject: [ActiveDir] logon scripts What is a recommended logon script solution that will work with win9x, win2k/xp clients for drive mapping, etc that works similar to Novell logon scripts? Example: IF MEMBER OF "GROUP" THEN BEGIN MAP H:=SERVER1\VOL1: END
RE: [ActiveDir] logon scripts - Kixtart
We too are using Script logic, but we’ve had problems in the past running it over our WAN. That being said our problems are not typical and are a drawback from our “wonderful” bridged WAN and have nothing to do with the product. I like script logic though, it’s very basic and easy to learn and understand. I’ve been able to do a lot of stuff with a couple of clicks in SL that that would require a couple lines of code in VB. Thanks, Raymond From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Creamer, Mark Sent: Tuesday, April 13, 2004 6:50 AM To: [EMAIL PROTECTED] Subject: RE: [ActiveDir] logon scripts - Kixtart We do. Actually, we also use ScriptLogic which greatly improves the process of putting together kixtart scripts for diverse groups with many different requirements. If you’re just getting started with KiXtart, I’d highly recommend taking a look at the message boards and other resources at www.kixtart.org, as well as scriptlogic’s own site. -Original Message- From: Kelly Jeglum [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 13, 2004 9:36 AM To: '[EMAIL PROTECTED]' Subject: RE: [ActiveDir] logon scripts - Kixtart Is anyone using Kixtart as a utility along with their logon scripts? Kelly J. Jeglum LAN Mgr. Auxiliary Services University of Wisconsin Milwaukee -Original Message- From: Rick Kingslan [mailto:[EMAIL PROTECTED] Sent: Monday, April 12, 2004 11:48 PM To: [EMAIL PROTECTED] Subject: RE: [ActiveDir] logon scripts LOL! -rtk From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of deji Agba Sent: Monday, April 12, 2004 11:28 PM To: [EMAIL PROTECTED] Subject: RE: [ActiveDir] logon scripts I don't remember telling you my middle name :p Sincerely, Dèjì Akómöláfé, MCSE MCSA MCP+I Microsoft MVP - Active Directory www.akomolafe.com www.iyaburo.com Do you now realize that Today is the Tomorrow you were worried about Yesterday? -anon From: Rick Kingslan Sent: Mon 4/12/2004 9:19 PM To: [EMAIL PROTECTED] Subject: RE: [ActiveDir] logon scripts Smart guy. :op -rtk From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of deji Agba Sent: Monday, April 12, 2004 11:13 PM To: [EMAIL PROTECTED] Subject: RE: [ActiveDir] logon scripts I don't have a Win9X to test this on, but Win2K/2K3/XP is fair game for this: Set wshNetwork = WScript.CreateObject("WScript.Network") Set wshShell = WScript.CreateObject("WScript.Shell") str_Group1_Share = "file://myserver/myShare1" str_Exec_Share = "file://myserver/myShare2" str_BS_Share = "file://myserver/myShare3" str_Super_Share = "file://mySuperServer/SuperShare" strDriveToMap = "H:" usrName = wshShell.ExpandEnvironmentStrings("%USERNAME%") Set usr = GetObject("WinNT://MyDomainName/" & usrName & ",user") For Each grp In usr.Groups WScript.Echo grp.Name If grp.Name = "BS-Group" Then wshNetwork.MapNetworkDrive strDriveToMap, str_BS_Share Exit For Elseif grp.Name = "SOME_GROUP" Then wshNetwork.MapNetworkDrive strDriveToMap, str_Group1_Share Exit For Elseif grp.Name = "yet_Another_Group" OR grp.Name = "Super-DuperUser" Then wshNetwork.MapNetworkDrive strDriveToMap, str_Super_Share wshNetwork.MapNetworkDrive "K:", str_Exec_Share Exit For End If Next Set usr = Nothing Set wshShell = Nothing Set wshNetwork = Nothing HTH Sincerely, Dèjì Akómöláfé, MCSE MCSA MCP+I Microsoft MVP - Active Directory www.akomolafe.com www.iyaburo.com Do you now realize that Today is the Tomorrow you were worried about Yesterday? -anon From: Nathan Casey Sent: Mon 4/12/2004 4:17 PM To: [EMAIL PROTECTED] Subject: [ActiveDir] logon scripts What is a recommended logon script solution that will work with win9x, win2k/xp clients for drive mapping, etc that works similar to Novell logon scripts? Example: IF MEMBER OF "GROUP" THEN BEGIN MAP H:=SERVER1\VOL1: END
RE: [ActiveDir] logon scripts
Jet-lagged? Did you take a long detour on the way home? :) From: deji Agba [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 13, 2004 11:11 AMTo: [EMAIL PROTECTED]Subject: RE: [ActiveDir] logon scripts What can I say? I'm still jet-lagged, I guess :) Thanks for the pointer. Sincerely,Dèjì Akómöláfé, MCSE MCSA MCP+I Microsoft MVP - Active Directorywww.akomolafe.comwww.iyaburo.comDo you now realize that Today is the Tomorrow you were worried about Yesterday? -anon From: Roger SeielstadSent: Tue 4/13/2004 6:24 AMTo: [EMAIL PROTECTED]Subject: RE: [ActiveDir] logon scripts Except Deji forgets one important piece of information (which is rare for him) - VBScript doesn't natively run on Win9x. It requires a separate install of Windows Scripting Host. -- Roger D. Seielstad - MTS MCSE MS-MVP Sr. Systems Administrator Inovis Inc. From: Rick Kingslan [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 13, 2004 12:19 AMTo: [EMAIL PROTECTED]Subject: RE: [ActiveDir] logon scripts Smart guy. :op -rtk From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of deji AgbaSent: Monday, April 12, 2004 11:13 PMTo: [EMAIL PROTECTED]Subject: RE: [ActiveDir] logon scripts I don't have a Win9X to test this on, but Win2K/2K3/XP is fair game for this: Set wshNetwork = WScript.CreateObject("WScript.Network")Set wshShell = WScript.CreateObject("WScript.Shell") str_Group1_Share = "file://myserver/myShare1"str_Exec_Share = "file://myserver/myShare2"str_BS_Share = "file://myserver/myShare3"str_Super_Share = "file://mySuperServer/SuperShare" strDriveToMap = "H:" usrName = wshShell.ExpandEnvironmentStrings("%USERNAME%")Set usr = GetObject("WinNT://MyDomainName/" & usrName & ",user") For Each grp In usr.Groups WScript.Echo grp.Name If grp.Name = "BS-Group" Then wshNetwork.MapNetworkDrive strDriveToMap, str_BS_Share Exit For Elseif grp.Name = "SOME_GROUP" Then wshNetwork.MapNetworkDrive strDriveToMap, str_Group1_Share Exit For Elseif grp.Name = "yet_Another_Group" OR grp.Name = "Super-DuperUser" Then wshNetwork.MapNetworkDrive strDriveToMap, str_Super_Share wshNetwork.MapNetworkDrive "K:", str_Exec_Share Exit For End IfNext Set usr = NothingSet wshShell = NothingSet wshNetwork = Nothing HTH Sincerely,Dèjì Akómöláfé, MCSE MCSA MCP+I Microsoft MVP - Active Directorywww.akomolafe.comwww.iyaburo.comDo you now realize that Today is the Tomorrow you were worried about Yesterday? -anon From: Nathan CaseySent: Mon 4/12/2004 4:17 PMTo: [EMAIL PROTECTED]Subject: [ActiveDir] logon scripts What is a recommended logon script solution that will work with win9x, win2k/xp clients for drive mapping, etc that works similar to Novell logon scripts? Example: IF MEMBER OF "GROUP" THEN BEGIN MAP H:=SERVER1\VOL1: END
RE: [ActiveDir] logon scripts
Sober? What's that??? :) /Jimmy From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Roger SeielstadSent: Tuesday, April 13, 2004 6:22 PMTo: [EMAIL PROTECTED]Subject: RE: [ActiveDir] logon scripts To quote Tony Murray-Smith - "I'm still trying to get used to being sober" -- Roger D. Seielstad - MTS MCSE MS-MVP Sr. Systems Administrator Inovis Inc. From: deji Agba [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 13, 2004 11:11 AMTo: [EMAIL PROTECTED]Subject: RE: [ActiveDir] logon scripts What can I say? I'm still jet-lagged, I guess :) Thanks for the pointer. Sincerely,Dèjì Akómöláfé, MCSE MCSA MCP+I Microsoft MVP - Active Directorywww.akomolafe.comwww.iyaburo.comDo you now realize that Today is the Tomorrow you were worried about Yesterday? -anon From: Roger SeielstadSent: Tue 4/13/2004 6:24 AMTo: [EMAIL PROTECTED]Subject: RE: [ActiveDir] logon scripts Except Deji forgets one important piece of information (which is rare for him) - VBScript doesn't natively run on Win9x. It requires a separate install of Windows Scripting Host. -- Roger D. Seielstad - MTS MCSE MS-MVP Sr. Systems Administrator Inovis Inc. From: Rick Kingslan [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 13, 2004 12:19 AMTo: [EMAIL PROTECTED]Subject: RE: [ActiveDir] logon scripts Smart guy. :op -rtk From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of deji AgbaSent: Monday, April 12, 2004 11:13 PMTo: [EMAIL PROTECTED]Subject: RE: [ActiveDir] logon scripts I don't have a Win9X to test this on, but Win2K/2K3/XP is fair game for this: Set wshNetwork = WScript.CreateObject("WScript.Network")Set wshShell = WScript.CreateObject("WScript.Shell") str_Group1_Share = "file://myserver/myShare1"str_Exec_Share = "file://myserver/myShare2"str_BS_Share = "file://myserver/myShare3"str_Super_Share = "file://mySuperServer/SuperShare" strDriveToMap = "H:" usrName = wshShell.ExpandEnvironmentStrings("%USERNAME%")Set usr = GetObject("WinNT://MyDomainName/" & usrName & ",user") For Each grp In usr.Groups WScript.Echo grp.Name If grp.Name = "BS-Group" Then wshNetwork.MapNetworkDrive strDriveToMap, str_BS_Share Exit For Elseif grp.Name = "SOME_GROUP" Then wshNetwork.MapNetworkDrive strDriveToMap, str_Group1_Share Exit For Elseif grp.Name = "yet_Another_Group" OR grp.Name = "Super-DuperUser" Then wshNetwork.MapNetworkDrive strDriveToMap, str_Super_Share wshNetwork.MapNetworkDrive "K:", str_Exec_Share Exit For End IfNext Set usr = NothingSet wshShell = NothingSet wshNetwork = Nothing HTH Sincerely,Dèjì Akómöláfé, MCSE MCSA MCP+I Microsoft MVP - Active Directorywww.akomolafe.comwww.iyaburo.comDo you now realize that Today is the Tomorrow you were worried about Yesterday? -anon From: Nathan CaseySent: Mon 4/12/2004 4:17 PMTo: [EMAIL PROTECTED]Subject: [ActiveDir] logon scripts What is a recommended logon script solution that will work with win9x, win2k/xp clients for drive mapping, etc that works similar to Novell logon scripts? Example: IF MEMBER OF "GROUP" THEN BEGIN MAP H:=SERVER1\VOL1: END
RE: [ActiveDir] logon scripts
To quote Tony Murray-Smith - "I'm still trying to get used to being sober" -- Roger D. Seielstad - MTS MCSE MS-MVP Sr. Systems Administrator Inovis Inc. From: deji Agba [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 13, 2004 11:11 AMTo: [EMAIL PROTECTED]Subject: RE: [ActiveDir] logon scripts What can I say? I'm still jet-lagged, I guess :) Thanks for the pointer. Sincerely,Dèjì Akómöláfé, MCSE MCSA MCP+I Microsoft MVP - Active Directorywww.akomolafe.comwww.iyaburo.comDo you now realize that Today is the Tomorrow you were worried about Yesterday? -anon From: Roger SeielstadSent: Tue 4/13/2004 6:24 AMTo: [EMAIL PROTECTED]Subject: RE: [ActiveDir] logon scripts Except Deji forgets one important piece of information (which is rare for him) - VBScript doesn't natively run on Win9x. It requires a separate install of Windows Scripting Host. -- Roger D. Seielstad - MTS MCSE MS-MVP Sr. Systems Administrator Inovis Inc. From: Rick Kingslan [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 13, 2004 12:19 AMTo: [EMAIL PROTECTED]Subject: RE: [ActiveDir] logon scripts Smart guy. :op -rtk From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of deji AgbaSent: Monday, April 12, 2004 11:13 PMTo: [EMAIL PROTECTED]Subject: RE: [ActiveDir] logon scripts I don't have a Win9X to test this on, but Win2K/2K3/XP is fair game for this: Set wshNetwork = WScript.CreateObject("WScript.Network")Set wshShell = WScript.CreateObject("WScript.Shell") str_Group1_Share = "file://myserver/myShare1"str_Exec_Share = "file://myserver/myShare2"str_BS_Share = "file://myserver/myShare3"str_Super_Share = "file://mySuperServer/SuperShare" strDriveToMap = "H:" usrName = wshShell.ExpandEnvironmentStrings("%USERNAME%")Set usr = GetObject("WinNT://MyDomainName/" & usrName & ",user") For Each grp In usr.Groups WScript.Echo grp.Name If grp.Name = "BS-Group" Then wshNetwork.MapNetworkDrive strDriveToMap, str_BS_Share Exit For Elseif grp.Name = "SOME_GROUP" Then wshNetwork.MapNetworkDrive strDriveToMap, str_Group1_Share Exit For Elseif grp.Name = "yet_Another_Group" OR grp.Name = "Super-DuperUser" Then wshNetwork.MapNetworkDrive strDriveToMap, str_Super_Share wshNetwork.MapNetworkDrive "K:", str_Exec_Share Exit For End IfNext Set usr = NothingSet wshShell = NothingSet wshNetwork = Nothing HTH Sincerely,Dèjì Akómöláfé, MCSE MCSA MCP+I Microsoft MVP - Active Directorywww.akomolafe.comwww.iyaburo.comDo you now realize that Today is the Tomorrow you were worried about Yesterday? -anon From: Nathan CaseySent: Mon 4/12/2004 4:17 PMTo: [EMAIL PROTECTED]Subject: [ActiveDir] logon scripts What is a recommended logon script solution that will work with win9x, win2k/xp clients for drive mapping, etc that works similar to Novell logon scripts? Example: IF MEMBER OF "GROUP" THEN BEGIN MAP H:=SERVER1\VOL1: END
RE: [ActiveDir] logon scripts
What can I say? I'm still jet-lagged, I guess :) Thanks for the pointer. Sincerely,Dèjì Akómöláfé, MCSE MCSA MCP+I Microsoft MVP - Active Directorywww.akomolafe.comwww.iyaburo.comDo you now realize that Today is the Tomorrow you were worried about Yesterday? -anon From: Roger SeielstadSent: Tue 4/13/2004 6:24 AMTo: [EMAIL PROTECTED]Subject: RE: [ActiveDir] logon scripts Except Deji forgets one important piece of information (which is rare for him) - VBScript doesn't natively run on Win9x. It requires a separate install of Windows Scripting Host. -- Roger D. Seielstad - MTS MCSE MS-MVP Sr. Systems Administrator Inovis Inc. From: Rick Kingslan [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 13, 2004 12:19 AMTo: [EMAIL PROTECTED]Subject: RE: [ActiveDir] logon scripts Smart guy. :op -rtk From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of deji AgbaSent: Monday, April 12, 2004 11:13 PMTo: [EMAIL PROTECTED]Subject: RE: [ActiveDir] logon scripts I don't have a Win9X to test this on, but Win2K/2K3/XP is fair game for this: Set wshNetwork = WScript.CreateObject("WScript.Network")Set wshShell = WScript.CreateObject("WScript.Shell") str_Group1_Share = "file://myserver/myShare1"str_Exec_Share = "file://myserver/myShare2"str_BS_Share = "file://myserver/myShare3"str_Super_Share = "file://mySuperServer/SuperShare" strDriveToMap = "H:" usrName = wshShell.ExpandEnvironmentStrings("%USERNAME%")Set usr = GetObject("WinNT://MyDomainName/" & usrName & ",user") For Each grp In usr.Groups WScript.Echo grp.Name If grp.Name = "BS-Group" Then wshNetwork.MapNetworkDrive strDriveToMap, str_BS_Share Exit For Elseif grp.Name = "SOME_GROUP" Then wshNetwork.MapNetworkDrive strDriveToMap, str_Group1_Share Exit For Elseif grp.Name = "yet_Another_Group" OR grp.Name = "Super-DuperUser" Then wshNetwork.MapNetworkDrive strDriveToMap, str_Super_Share wshNetwork.MapNetworkDrive "K:", str_Exec_Share Exit For End IfNext Set usr = NothingSet wshShell = NothingSet wshNetwork = Nothing HTH Sincerely,Dèjì Akómöláfé, MCSE MCSA MCP+I Microsoft MVP - Active Directorywww.akomolafe.comwww.iyaburo.comDo you now realize that Today is the Tomorrow you were worried about Yesterday? -anon From: Nathan CaseySent: Mon 4/12/2004 4:17 PMTo: [EMAIL PROTECTED]Subject: [ActiveDir] logon scripts What is a recommended logon script solution that will work with win9x, win2k/xp clients for drive mapping, etc that works similar to Novell logon scripts? Example: IF MEMBER OF "GROUP" THEN BEGIN MAP H:=SERVER1\VOL1: END
RE: [ActiveDir] logon scripts - Kixtart
Is anyone using Kixtart as a utility along with their logon scripts? Kelly J. Jeglum LAN Mgr. Auxiliary Services University of Wisconsin Milwaukee -Original Message-From: Rick Kingslan [mailto:[EMAIL PROTECTED]Sent: Monday, April 12, 2004 11:48 PMTo: [EMAIL PROTECTED]Subject: RE: [ActiveDir] logon scripts LOL! -rtk From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of deji AgbaSent: Monday, April 12, 2004 11:28 PMTo: [EMAIL PROTECTED]Subject: RE: [ActiveDir] logon scripts I don't remember telling you my middle name :p Sincerely,Dèjì Akómöláfé, MCSE MCSA MCP+I Microsoft MVP - Active Directorywww.akomolafe.comwww.iyaburo.comDo you now realize that Today is the Tomorrow you were worried about Yesterday? -anon From: Rick KingslanSent: Mon 4/12/2004 9:19 PMTo: [EMAIL PROTECTED]Subject: RE: [ActiveDir] logon scripts Smart guy. :op -rtk From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of deji AgbaSent: Monday, April 12, 2004 11:13 PMTo: [EMAIL PROTECTED]Subject: RE: [ActiveDir] logon scripts I don't have a Win9X to test this on, but Win2K/2K3/XP is fair game for this: Set wshNetwork = WScript.CreateObject("WScript.Network")Set wshShell = WScript.CreateObject("WScript.Shell") str_Group1_Share = "file://myserver/myShare1"str_Exec_Share = "file://myserver/myShare2"str_BS_Share = "file://myserver/myShare3"str_Super_Share = "file://mySuperServer/SuperShare" strDriveToMap = "H:" usrName = wshShell.ExpandEnvironmentStrings("%USERNAME%")Set usr = GetObject("WinNT://MyDomainName/" & usrName & ",user") For Each grp In usr.Groups WScript.Echo grp.Name If grp.Name = "BS-Group" Then wshNetwork.MapNetworkDrive strDriveToMap, str_BS_Share Exit For Elseif grp.Name = "SOME_GROUP" Then wshNetwork.MapNetworkDrive strDriveToMap, str_Group1_Share Exit For Elseif grp.Name = "yet_Another_Group" OR grp.Name = "Super-DuperUser" Then wshNetwork.MapNetworkDrive strDriveToMap, str_Super_Share wshNetwork.MapNetworkDrive "K:", str_Exec_Share Exit For End IfNext Set usr = NothingSet wshShell = NothingSet wshNetwork = Nothing HTH Sincerely,Dèjì Akómöláfé, MCSE MCSA MCP+I Microsoft MVP - Active Directorywww.akomolafe.comwww.iyaburo.comDo you now realize that Today is the Tomorrow you were worried about Yesterday? -anon From: Nathan CaseySent: Mon 4/12/2004 4:17 PMTo: [EMAIL PROTECTED]Subject: [ActiveDir] logon scripts What is a recommended logon script solution that will work with win9x, win2k/xp clients for drive mapping, etc that works similar to Novell logon scripts? Example: IF MEMBER OF "GROUP" THEN BEGIN MAP H:=SERVER1\VOL1: END
RE: [ActiveDir] logon scripts
Except Deji forgets one important piece of information (which is rare for him) - VBScript doesn't natively run on Win9x. It requires a separate install of Windows Scripting Host. -- Roger D. Seielstad - MTS MCSE MS-MVP Sr. Systems Administrator Inovis Inc. From: Rick Kingslan [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 13, 2004 12:19 AMTo: [EMAIL PROTECTED]Subject: RE: [ActiveDir] logon scripts Smart guy. :op -rtk From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of deji AgbaSent: Monday, April 12, 2004 11:13 PMTo: [EMAIL PROTECTED]Subject: RE: [ActiveDir] logon scripts I don't have a Win9X to test this on, but Win2K/2K3/XP is fair game for this: Set wshNetwork = WScript.CreateObject("WScript.Network")Set wshShell = WScript.CreateObject("WScript.Shell") str_Group1_Share = "file://myserver/myShare1"str_Exec_Share = "file://myserver/myShare2"str_BS_Share = "file://myserver/myShare3"str_Super_Share = "file://mySuperServer/SuperShare" strDriveToMap = "H:" usrName = wshShell.ExpandEnvironmentStrings("%USERNAME%")Set usr = GetObject("WinNT://MyDomainName/" & usrName & ",user") For Each grp In usr.Groups WScript.Echo grp.Name If grp.Name = "BS-Group" Then wshNetwork.MapNetworkDrive strDriveToMap, str_BS_Share Exit For Elseif grp.Name = "SOME_GROUP" Then wshNetwork.MapNetworkDrive strDriveToMap, str_Group1_Share Exit For Elseif grp.Name = "yet_Another_Group" OR grp.Name = "Super-DuperUser" Then wshNetwork.MapNetworkDrive strDriveToMap, str_Super_Share wshNetwork.MapNetworkDrive "K:", str_Exec_Share Exit For End IfNext Set usr = NothingSet wshShell = NothingSet wshNetwork = Nothing HTH Sincerely,Dèjì Akómöláfé, MCSE MCSA MCP+I Microsoft MVP - Active Directorywww.akomolafe.comwww.iyaburo.comDo you now realize that Today is the Tomorrow you were worried about Yesterday? -anon From: Nathan CaseySent: Mon 4/12/2004 4:17 PMTo: [EMAIL PROTECTED]Subject: [ActiveDir] logon scripts What is a recommended logon script solution that will work with win9x, win2k/xp clients for drive mapping, etc that works similar to Novell logon scripts? Example: IF MEMBER OF "GROUP" THEN BEGIN MAP H:=SERVER1\VOL1: END
RE: [ActiveDir] logon scripts
LOL! -rtk From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of deji AgbaSent: Monday, April 12, 2004 11:28 PMTo: [EMAIL PROTECTED]Subject: RE: [ActiveDir] logon scripts I don't remember telling you my middle name :p Sincerely,Dèjì Akómöláfé, MCSE MCSA MCP+I Microsoft MVP - Active Directorywww.akomolafe.comwww.iyaburo.comDo you now realize that Today is the Tomorrow you were worried about Yesterday? -anon From: Rick KingslanSent: Mon 4/12/2004 9:19 PMTo: [EMAIL PROTECTED]Subject: RE: [ActiveDir] logon scripts Smart guy. :op -rtk From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of deji AgbaSent: Monday, April 12, 2004 11:13 PMTo: [EMAIL PROTECTED]Subject: RE: [ActiveDir] logon scripts I don't have a Win9X to test this on, but Win2K/2K3/XP is fair game for this: Set wshNetwork = WScript.CreateObject("WScript.Network")Set wshShell = WScript.CreateObject("WScript.Shell") str_Group1_Share = "file://myserver/myShare1"str_Exec_Share = "file://myserver/myShare2"str_BS_Share = "file://myserver/myShare3"str_Super_Share = "file://mySuperServer/SuperShare" strDriveToMap = "H:" usrName = wshShell.ExpandEnvironmentStrings("%USERNAME%")Set usr = GetObject("WinNT://MyDomainName/" & usrName & ",user") For Each grp In usr.Groups WScript.Echo grp.Name If grp.Name = "BS-Group" Then wshNetwork.MapNetworkDrive strDriveToMap, str_BS_Share Exit For Elseif grp.Name = "SOME_GROUP" Then wshNetwork.MapNetworkDrive strDriveToMap, str_Group1_Share Exit For Elseif grp.Name = "yet_Another_Group" OR grp.Name = "Super-DuperUser" Then wshNetwork.MapNetworkDrive strDriveToMap, str_Super_Share wshNetwork.MapNetworkDrive "K:", str_Exec_Share Exit For End IfNext Set usr = NothingSet wshShell = NothingSet wshNetwork = Nothing HTH Sincerely,Dèjì Akómöláfé, MCSE MCSA MCP+I Microsoft MVP - Active Directorywww.akomolafe.comwww.iyaburo.comDo you now realize that Today is the Tomorrow you were worried about Yesterday? -anon From: Nathan CaseySent: Mon 4/12/2004 4:17 PMTo: [EMAIL PROTECTED]Subject: [ActiveDir] logon scripts What is a recommended logon script solution that will work with win9x, win2k/xp clients for drive mapping, etc that works similar to Novell logon scripts? Example: IF MEMBER OF "GROUP" THEN BEGIN MAP H:=SERVER1\VOL1: END
RE: [ActiveDir] logon scripts
I don't remember telling you my middle name :p Sincerely,Dèjì Akómöláfé, MCSE MCSA MCP+I Microsoft MVP - Active Directorywww.akomolafe.comwww.iyaburo.comDo you now realize that Today is the Tomorrow you were worried about Yesterday? -anon From: Rick KingslanSent: Mon 4/12/2004 9:19 PMTo: [EMAIL PROTECTED]Subject: RE: [ActiveDir] logon scripts Smart guy. :op -rtk From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of deji AgbaSent: Monday, April 12, 2004 11:13 PMTo: [EMAIL PROTECTED]Subject: RE: [ActiveDir] logon scripts I don't have a Win9X to test this on, but Win2K/2K3/XP is fair game for this: Set wshNetwork = WScript.CreateObject("WScript.Network")Set wshShell = WScript.CreateObject("WScript.Shell") str_Group1_Share = "file://myserver/myShare1"str_Exec_Share = "file://myserver/myShare2"str_BS_Share = "file://myserver/myShare3"str_Super_Share = "file://mySuperServer/SuperShare" strDriveToMap = "H:" usrName = wshShell.ExpandEnvironmentStrings("%USERNAME%")Set usr = GetObject("WinNT://MyDomainName/" & usrName & ",user") For Each grp In usr.Groups WScript.Echo grp.Name If grp.Name = "BS-Group" Then wshNetwork.MapNetworkDrive strDriveToMap, str_BS_Share Exit For Elseif grp.Name = "SOME_GROUP" Then wshNetwork.MapNetworkDrive strDriveToMap, str_Group1_Share Exit For Elseif grp.Name = "yet_Another_Group" OR grp.Name = "Super-DuperUser" Then wshNetwork.MapNetworkDrive strDriveToMap, str_Super_Share wshNetwork.MapNetworkDrive "K:", str_Exec_Share Exit For End IfNext Set usr = NothingSet wshShell = NothingSet wshNetwork = Nothing HTH Sincerely,Dèjì Akómöláfé, MCSE MCSA MCP+I Microsoft MVP - Active Directorywww.akomolafe.comwww.iyaburo.comDo you now realize that Today is the Tomorrow you were worried about Yesterday? -anon From: Nathan CaseySent: Mon 4/12/2004 4:17 PMTo: [EMAIL PROTECTED]Subject: [ActiveDir] logon scripts What is a recommended logon script solution that will work with win9x, win2k/xp clients for drive mapping, etc that works similar to Novell logon scripts? Example: IF MEMBER OF "GROUP" THEN BEGIN MAP H:=SERVER1\VOL1: END
RE: [ActiveDir] logon scripts
Smart guy. :op -rtk From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of deji AgbaSent: Monday, April 12, 2004 11:13 PMTo: [EMAIL PROTECTED]Subject: RE: [ActiveDir] logon scripts I don't have a Win9X to test this on, but Win2K/2K3/XP is fair game for this: Set wshNetwork = WScript.CreateObject("WScript.Network")Set wshShell = WScript.CreateObject("WScript.Shell") str_Group1_Share = "file://myserver/myShare1"str_Exec_Share = "file://myserver/myShare2"str_BS_Share = "file://myserver/myShare3"str_Super_Share = "file://mySuperServer/SuperShare" strDriveToMap = "H:" usrName = wshShell.ExpandEnvironmentStrings("%USERNAME%")Set usr = GetObject("WinNT://MyDomainName/" & usrName & ",user") For Each grp In usr.Groups WScript.Echo grp.Name If grp.Name = "BS-Group" Then wshNetwork.MapNetworkDrive strDriveToMap, str_BS_Share Exit For Elseif grp.Name = "SOME_GROUP" Then wshNetwork.MapNetworkDrive strDriveToMap, str_Group1_Share Exit For Elseif grp.Name = "yet_Another_Group" OR grp.Name = "Super-DuperUser" Then wshNetwork.MapNetworkDrive strDriveToMap, str_Super_Share wshNetwork.MapNetworkDrive "K:", str_Exec_Share Exit For End IfNext Set usr = NothingSet wshShell = NothingSet wshNetwork = Nothing HTH Sincerely,Dèjì Akómöláfé, MCSE MCSA MCP+I Microsoft MVP - Active Directorywww.akomolafe.comwww.iyaburo.comDo you now realize that Today is the Tomorrow you were worried about Yesterday? -anon From: Nathan CaseySent: Mon 4/12/2004 4:17 PMTo: [EMAIL PROTECTED]Subject: [ActiveDir] logon scripts What is a recommended logon script solution that will work with win9x, win2k/xp clients for drive mapping, etc that works similar to Novell logon scripts? Example: IF MEMBER OF "GROUP" THEN BEGIN MAP H:=SERVER1\VOL1: END
RE: [ActiveDir] logon scripts
Our solution (up to this point) has been Kix. Pretty much usable across multiple versions of Windows, and it's working quite well with a pretty rich set of tools and support. Look at the ScrptLogic site for some advice and freebie's as well as www.kixtart.org. KixTart was developed and is maintained by Ruud van Velsen of Microsoft Netherlands, so it's not exactly unknown in the MS environment. ;o) Rick Kingslan MCSE, MCSA, MCT, CISSPMicrosoft MVP:Windows Server / Directory ServicesWindows Server / Rights ManagementAssociate ExpertExpert Zone - www.microsoft.com/windowsxp/expertzoneWebLog - www.msmvps.com/willhack4food From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nathan CaseySent: Monday, April 12, 2004 6:17 PMTo: [EMAIL PROTECTED]Subject: [ActiveDir] logon scripts What is a recommended logon script solution that will work with win9x, win2k/xp clients for drive mapping, etc that works similar to Novell logon scripts? Example: IF MEMBER OF "GROUP" THEN BEGIN MAP H:=SERVER1\VOL1: END
RE: [ActiveDir] logon scripts
I don't have a Win9X to test this on, but Win2K/2K3/XP is fair game for this: Set wshNetwork = WScript.CreateObject("WScript.Network")Set wshShell = WScript.CreateObject("WScript.Shell") str_Group1_Share = "file://myserver/myShare1"str_Exec_Share = "file://myserver/myShare2"str_BS_Share = "file://myserver/myShare3"str_Super_Share = "file://mySuperServer/SuperShare" strDriveToMap = "H:" usrName = wshShell.ExpandEnvironmentStrings("%USERNAME%")Set usr = GetObject("WinNT://MyDomainName/" & usrName & ",user") For Each grp In usr.Groups WScript.Echo grp.Name If grp.Name = "BS-Group" Then wshNetwork.MapNetworkDrive strDriveToMap, str_BS_Share Exit For Elseif grp.Name = "SOME_GROUP" Then wshNetwork.MapNetworkDrive strDriveToMap, str_Group1_Share Exit For Elseif grp.Name = "yet_Another_Group" OR grp.Name = "Super-DuperUser" Then wshNetwork.MapNetworkDrive strDriveToMap, str_Super_Share wshNetwork.MapNetworkDrive "K:", str_Exec_Share Exit For End IfNext Set usr = NothingSet wshShell = NothingSet wshNetwork = Nothing HTH Sincerely,Dèjì Akómöláfé, MCSE MCSA MCP+I Microsoft MVP - Active Directorywww.akomolafe.comwww.iyaburo.comDo you now realize that Today is the Tomorrow you were worried about Yesterday? -anon From: Nathan CaseySent: Mon 4/12/2004 4:17 PMTo: [EMAIL PROTECTED]Subject: [ActiveDir] logon scripts What is a recommended logon script solution that will work with win9x, win2k/xp clients for drive mapping, etc that works similar to Novell logon scripts? Example: IF MEMBER OF "GROUP" THEN BEGIN MAP H:=SERVER1\VOL1: END
RE: [ActiveDir] Logon scripts
Elevated privileges relates to access to the registry but does not translate to access to the file system. As such if a user has 'User' security access to a machine they will not be able to install software to it. To be able to do this you need a DMS solution that can manage installations to the box (and keep control of it during installation). Your best bet at a no cost is either to assign/publish though Active Directory or within the login script run the installation at an alternate accounts context (using a VBS, Jscript, CMD wrapper hidden from the user). Get them to spend money on a Desktop Management Solution so that you get sufficient reporting and delivery management, hard to have a reliable lockdown environment without one. Only introduces more headaches then it is worth! Cheers David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Charlie Hope-Lang Sent: 18 July 2002 09:16 To: [EMAIL PROTECTED] Subject: [ActiveDir] Logon scripts Morning all, Does the logon script run with the user rights of the user logging on?? Ie Can we install an MSI from the logon script with out running installer with elevated privileges if the user has user rights to the local machine?? Cheers Charlie -- http://www.channel5.co.uk/ -- List info : http://www.activedir.org/mail_list.htm List FAQ: http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.375 / Virus Database: 210 - Release Date: 10/07/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.375 / Virus Database: 210 - Release Date: 10/07/2002 List info : http://www.activedir.org/mail_list.htm List FAQ: http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
Re: [ActiveDir] Logon scripts
Yes, I beleive that you would have to run it with Elevated priveleges. Charlie Hope-Lang <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 07/18/2002 04:16 AM Please respond to ActiveDir To: [EMAIL PROTECTED] cc: (bcc: John Hicks/MIS/HQ/KEMET/US) Subject: [ActiveDir] Logon scripts Morning all, Does the logon script run with the user rights of the user logging on?? Ie Can we install an MSI from the logon script with out running installer with elevated privileges if the user has user rights to the local machine?? Cheers Charlie -- http://www.channel5.co.uk/ -- List info : http://www.activedir.org/mail_list.htm List FAQ : http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/