Re: [ActiveDir] Can't remove Directories in Windows 2003
You may need to map deeper and delete subfolders. Either use subst (locally on server) or net use * \\server\share\deep_path and delete the subfolders. Then you will be able to delete the parent folders. It looks like users have created a deep folder structure beneath the share. M@ On 28/03/06, Ibarra, Juan [EMAIL PROTECTED] wrote: I am doing a data migration from three old servers to a new one and I have two issues: Since we are consolidating data onto the same directory in the new server when a job from server 1 runs, it removes the data that was already copy from server2. This is the syntax I am using: robocopy.exe \\share.company.com\oldshare F:\newshare\subfolder /MIR /SEC /R:3 /LOG:F:\logs\share.log What I am doing wrong here? When trying to delete a folder from one of these shares, I now get the following message. If I look at the size of this share is 0K. I have tried taking ownership of it, deleting it from DOS, a UNIX tool and nothing. Is there anything out there that I can use? Thanks, Juan
RE: [ActiveDir] Script not working thru GPO
Thank you That fixed that line.. Now to another line. As I mentioned before this script works fine outside of GPO. Do you see anything wrong with ComputerName = From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Darren Mar-EliaSent: Tuesday, March 28, 2006 12:16 PMTo: ActiveDir@mail.activedir.orgSubject: RE: [ActiveDir] Script not working thru GPO Good catch Kamlesh. Jeff, check out: http://msdn.microsoft.com/library/default.asp?url=""> for an example of this. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kamlesh ParmarSent: Tuesday, March 28, 2006 8:59 AMTo: ActiveDir@mail.activedir.orgSubject: Re: [ActiveDir] Script not working thru GPO If this is the exact script then Where have you defined value of "ForAppending" ?? Aserror message contains"invalid argument" -- Kamlesh On 3/28/06, Cothern, Jeffrey D Mr CTR USSOCOM HQ [EMAIL PROTECTED] wrote: I have a script i created in vbs. This script works when run on the machines locally but when i set it up as a machine startup script it gets this error script: path and name of script Line:13 Char: 1 Error: Invalid Procedure call or argument Code: 800A0005 Source: Microsoft _vbscript_ runtime error As I said this runs correctly when run on the machine localy but not thru GPO. I am assuming that I cannot do a objFSO.OpenTestFile thru the GPO. Is there some other way I can accomplish the write to the test file? Jeff Here is the Script Code: Dim WshShell, bKeyDim regComputerNameDim ComputerNameDim ServerlistDim objServerlistDIM objFSODIM strCurrenLineDIM intIsComment Serverlist = "\\fileserver\serverlist.txt"regComputerName = "HKLM\SYSTEM\CurrentControlSet\Control" "ComputerName\ComputerName\ComputerName" Set objFSO = CreateObject("Scripting.FileSystemObject")Set objServerlist = objFSO.OpenTextFile(serverlist, ForAppending) Set WshShell = WScript.CreateObject("WScript.Shell")ComputerName = objShell.RegRead(regComputerName)objfile.Write "ComputerName" WshShell. RegWrite"HKLM\System\CurrentControlSet\Services\Eventlog\Application\AutoBackupLogFiles", 1, "REG_DWORD"WshShell. RegWrite"HKLM\System\CurrentControlSet\Services\Eventlog\Security\AutoBackupLogFiles", 1, "REG_DWORD" WshShell. RegWrite"HKLM\System\CurrentControlSet\Services\Eventlog\System\AutoBackupLogFiles", 1, "REG_DWORD" bKey = WshShell.RegRead("HKLM\System\CurrentControlSet\Services\Eventlog\Application\AutoBackupLogFiles")bKey = WshShell.RegRead("HKLM\System\CurrentControlSet\Services\Eventlog\Security\AutoBackupLogFiles") bKey = WshShell.RegRead("HKLM\System\CurrentControlSet\Services\Eventlog\System\AutoBackupLogFiles") WScript.Echo WshShell.RegRead("HKLM\System\CurrentControlSet\Services\Eventlog\Application\AutoBackupLogFiles")WScript.Echo WshShell.RegRead("HKLM\System\CurrentControlSet\Services\Eventlog\Security\AutoBackupLogFiles") WScript.Echo WshShell.RegRead("HKLM\System\CurrentControlSet\Services\Eventlog\System\AutoBackupLogFiles") -- ~"Be the change you want to see in the World"~
RE: [ActiveDir] View Delegated Tasks?
Dear Dan, What about those of us who can't go ...? RH __ -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Dan HolmeSent: Wednesday, March 29, 2006 1:49 AMTo: ActiveDir@mail.activedir.orgSubject: RE: [ActiveDir] View Delegated Tasks? teaser For anyone whos going to Windows Connections in Orlando, come to my Advanced Delegation session. Ill show you an option that is so simple and powerful for delegating and then being able to pull reports on your delegation that it will blow your mind. Believe me Im not tooting my own horn Im no brainiac the key word was SIMPLE /teaser Dan From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steve LinehanSent: Thursday, March 23, 2006 5:06 PMTo: ActiveDir@mail.activedir.orgSubject: RE: [ActiveDir] View Delegated Tasks? You can however use something like DSRevoke to build a report: http://www.microsoft.com/downloads/details.aspx?FamilyID=77744807-c403-4bda-b0e4-c2093b8d6383DisplayLang=en. Thanks, -Steve From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lee, WookSent: Thursday, March 23, 2006 4:40 PMTo: ActiveDir@mail.activedir.orgSubject: RE: [ActiveDir] View Delegated Tasks? You can't. The delegate wizard is write only. You have to look at the security descriptor on the OU and figure out what changes were made. Wook Lee AD Architect - HP IT From: [EMAIL PROTECTED] on behalf of Harding, DevonSent: Fri 3/17/2006 10:52 AMTo: ActiveDir@mail.activedir.orgSubject: [ActiveDir] View Delegated Tasks? When I delegate permissions to a group in ADUC to a specific OU (using the Delegate Wizard), how can I go back and see who was delegated and the permissions? Devon Harding Windows Systems Engineer Southern Wine Spirits - BSG 954-602-2469 __This message and any attachments are solely for the intendedrecipient and may contain confidential or privileged information.If you are not the intended recipient, any disclosure, copying, useor distribution of the information included in the message and anyattachments is prohibited. If you have received this communicationin error, please notify us by reply e-mail and immediately andpermanently delete this message and any attachments. Thank You.
RE: [ActiveDir] Script not working thru GPO
Whats objFile being set to? Set WshShell = WScript.CreateObject(WScript.Shell) ComputerName = objShell.RegRead(regComputerName) objfile.Write ComputerName Hmm maybe Im missing something entirely because I dont see where objShell is being set to anything either ? :m:dsm:cci:mvp| marcusoh.blogspot.com From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cothern, Jeffrey D Mr CTR USSOCOM HQ Sent: Wednesday, March 29, 2006 8:45 AM To: ActiveDir@mail.activedir.org Subject: RE: [ActiveDir] Script not working thru GPO Thank you That fixed that line.. Now to another line. As I mentioned before this script works fine outside of GPO. Do you see anything wrong with ComputerName = From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Darren Mar-Elia Sent: Tuesday, March 28, 2006 12:16 PM To: ActiveDir@mail.activedir.org Subject: RE: [ActiveDir] Script not working thru GPO Good catch Kamlesh. Jeff, check out: http://msdn.microsoft.com/library/default.asp?url=""> for an example of this. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kamlesh Parmar Sent: Tuesday, March 28, 2006 8:59 AM To: ActiveDir@mail.activedir.org Subject: Re: [ActiveDir] Script not working thru GPO If this is the exact script then Where have you defined value of ForAppending ?? Aserror message containsinvalid argument -- Kamlesh On 3/28/06, Cothern, Jeffrey D Mr CTR USSOCOM HQ [EMAIL PROTECTED] wrote: I have a script i created in vbs. This script works when run on the machines locally but when i set it up as a machine startup script it gets this error script: path and name of script Line:13 Char: 1 Error: Invalid Procedure call or argument Code: 800A0005 Source: Microsoft _vbscript_ runtime error As I said this runs correctly when run on the machine localy but not thru GPO. I am assuming that I cannot do a objFSO.OpenTestFile thru the GPO. Is there some other way I can accomplish the write to the test file? Jeff Here is the Script Code: Dim WshShell, bKey Dim regComputerName Dim ComputerName Dim Serverlist Dim objServerlist DIM objFSO DIM strCurrenLine DIM intIsComment Serverlist = \\fileserver\serverlist.txt regComputerName = HKLM\SYSTEM\CurrentControlSet\Control ComputerName\ComputerName\ComputerName Set objFSO = CreateObject(Scripting.FileSystemObject) Set objServerlist = objFSO.OpenTextFile(serverlist, ForAppending) Set WshShell = WScript.CreateObject(WScript.Shell) ComputerName = objShell.RegRead(regComputerName) objfile.Write ComputerName WshShell. RegWriteHKLM\System\CurrentControlSet\Services\Eventlog\Application\AutoBackupLogFiles, 1, REG_DWORD WshShell. RegWriteHKLM\System\CurrentControlSet\Services\Eventlog\Security\AutoBackupLogFiles, 1, REG_DWORD WshShell. RegWriteHKLM\System\CurrentControlSet\Services\Eventlog\System\AutoBackupLogFiles, 1, REG_DWORD bKey = WshShell.RegRead(HKLM\System\CurrentControlSet\Services\Eventlog\Application\AutoBackupLogFiles) bKey = WshShell.RegRead(HKLM\System\CurrentControlSet\Services\Eventlog\Security\AutoBackupLogFiles) bKey = WshShell.RegRead(HKLM\System\CurrentControlSet\Services\Eventlog\System\AutoBackupLogFiles) WScript.Echo WshShell.RegRead(HKLM\System\CurrentControlSet\Services\Eventlog\Application\AutoBackupLogFiles) WScript.Echo WshShell.RegRead(HKLM\System\CurrentControlSet\Services\Eventlog\Security\AutoBackupLogFiles) WScript.Echo WshShell.RegRead(HKLM\System\CurrentControlSet\Services\Eventlog\System\AutoBackupLogFiles) -- ~ Be the change you want to see in the World ~
[ActiveDir] OT - Somebody already experience with SQL Server Express?
Hi, I was just reading about MS SQL Server Express and I was wondering if somebody has already experience with it, more specifically with migrating from MSDE on a SBS box? Reason is that I want to know if it is an interesting thing to consider or not. Also WSUS is installed on the box. Thanks in advance for sharing, Bart
Re: [ActiveDir] OT - Somebody already experience with SQL Server Express?
Hang on.. SBS? SBSmonitoring is not supported on anything other than MSDE. As part of R2 we'll get SQL 2005 workgroup... Whatcha doing to that box? (me see SBS and I get protective motherly instincts kick in) Watch companyweb.. we're finding that it prefers .NET 1.whatever and not 2.x as well. Bart Van den Wyngaert wrote: Hi, I was just reading about MS SQL Server Express and I was wondering if somebody has already experience with it, more specifically with migrating from MSDE on a SBS box? Reason is that I want to know if it is an interesting thing to consider or not. Also WSUS is installed on the box. Thanks in advance for sharing, Bart 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] OT - Somebody already experience with SQL Server Express?
Hi Susan, Thanks for the feedback, I knew there were some SBS mothers and/or fathers reading this list :-) It's not like I need SQL Express, it was a is that a new direction to follow kinda question. SQL is not really my thing, only use it for apps that require it. But it could have been that is was interesting for some advantages... But as you just pointed out, I don't think there are real advantages on a SBS box, instead more risks and looking for trouble! That's preciesly the answer I was looking for, thanks! Bart On 3/29/06, Susan Bradley, CPA aka Ebitz - SBS Rocks [MVP] [EMAIL PROTECTED] wrote: Hang on.. SBS?SBSmonitoring is not supported on anything other than MSDE.As part of R2 we'll get SQL 2005 workgroup... Whatcha doing to that box?(me see SBS and I get protective motherlyinstincts kick in)Watch companyweb.. we're finding that it prefers .NET 1.whatever and not2.x as well.Bart Van den Wyngaert wrote: Hi, I was just reading about MS SQL Server Express and I was wondering if somebody has already experience with it, more specifically with migrating from MSDE on a SBS box? Reason is that I want to know if it is an interesting thing to consider or not. Also WSUS is installed on the box. Thanks in advance for sharing, BartList info : http://www.activedir.org/List.aspxList FAQ: http://www.activedir.org/ListFAQ.aspxList archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
RE: [ActiveDir] OT - Somebody already experience with SQL Server Express?
Bart- SQL2005 can coexist with SQL2000. From a basic appcompat standpoint, you can load an instance of sql2005 side by side with sql2000 (msde). If theres some reason SBS in particular wont function in this capacity, well, thats the SBS tradeoff I guess. Thanks, Brian Desmond [EMAIL PROTECTED] c - 312.731.3132 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bart Van den Wyngaert Sent: Wednesday, March 29, 2006 10:20 AM To: ActiveDir@mail.activedir.org Subject: Re: [ActiveDir] OT - Somebody already experience with SQL Server Express? Hi Susan, Thanks for the feedback, I knew there were some SBS mothers and/or fathers reading this list :-) It's not like I need SQL Express, it was a is that a new direction to follow kinda question. SQL is not really my thing, only use it for apps that require it. But it could have been that is was interesting for some advantages... But as you just pointed out, I don't think there are real advantages on a SBS box, instead more risks and looking for trouble! That's preciesly the answer I was looking for, thanks! Bart On 3/29/06, Susan Bradley, CPA aka Ebitz - SBS Rocks [MVP] [EMAIL PROTECTED] wrote: Hang on.. SBS? SBSmonitoring is not supported on anything other than MSDE. As part of R2 we'll get SQL 2005 workgroup... Whatcha doing to that box?(me see SBS and I get protective motherly instincts kick in) Watch companyweb.. we're finding that it prefers .NET 1.whatever and not 2.x as well. Bart Van den Wyngaert wrote: Hi, I was just reading about MS SQL Server Express and I was wondering if somebody has already experience with it, more specifically with migrating from MSDE on a SBS box? Reason is that I want to know if it is an interesting thing to consider or not. Also WSUS is installed on the box. Thanks in advance for sharing, Bart 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] OT - Somebody already experience with SQL Server Express?
No it will...but typically folks want to upgrade things like SBSmonitoring which isn't supported. In the R2 era we'll have SQL 2005 workgroup and MSDE side by side. The limit is just the RAM on the box and the number of applications that BY DESIGN want to grab ram and BY DESIGN release it at will... Exchange is by design takes memory. ISA 2004 on a msde instance by design takes memory.. At a certain point in time on a SBS box.. with a max of 4 gigs.. as long as the application place nice with others and shares their toys, you are fine. If they don't play nice on the playground with others...then you start putting manditory throttles on MSDE instances so they will play nice on the playground together. (stomped on SBSmonitoring, and ISA's msde instances already) Brian Desmond wrote: *Bart-* * * *SQL2005 can coexist with SQL2000. From a basic appcompat standpoint, you can load an instance of sql2005 side by side with sql2000 (msde). If there’s some reason SBS in particular won’t function in this capacity, well, that’s the SBS tradeoff I guess.* * * **Thanks,*** **Brian Desmond*** [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] **c - 312.731.3132** *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *Bart Van den Wyngaert *Sent:* Wednesday, March 29, 2006 10:20 AM *To:* ActiveDir@mail.activedir.org *Subject:* Re: [ActiveDir] OT - Somebody already experience with SQL Server Express? Hi Susan, Thanks for the feedback, I knew there were some SBS mothers and/or fathers reading this list :-) It's not like I need SQL Express, it was a is that a new direction to follow kinda question. SQL is not really my thing, only use it for apps that require it. But it could have been that is was interesting for some advantages... But as you just pointed out, I don't think there are real advantages on a SBS box, instead more risks and looking for trouble! That's preciesly the answer I was looking for, thanks! Bart On 3/29/06, *Susan Bradley, CPA aka Ebitz - SBS Rocks [MVP]* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hang on.. SBS? SBSmonitoring is not supported on anything other than MSDE. As part of R2 we'll get SQL 2005 workgroup... Whatcha doing to that box? (me see SBS and I get protective motherly instincts kick in) Watch companyweb.. we're finding that it prefers .NET 1.whatever and not 2.x as well. Bart Van den Wyngaert wrote: Hi, I was just reading about MS SQL Server Express and I was wondering if somebody has already experience with it, more specifically with migrating from MSDE on a SBS box? Reason is that I want to know if it is an interesting thing to consider or not. Also WSUS is installed on the box. Thanks in advance for sharing, Bart 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/ -- Letting your vendors set your risk analysis these days? http://www.threatcode.com 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] Script not working thru GPO
Foudn that problem and the other which was with objShell Here is the working script.Now to find a way to have it check if the server name is already in the serverlist.txt file and if so skip to the end. Dim regComputerNameDim strComputerNameDim ServerlistDim objShellDim objServerlistDIM objFSODIM strCurrenLineDIM intIsCommentConst ForAppending = 8 Serverlist = "\\fileserver\serverlist.txt"regComputerName = "HKLM\SYSTEM\CurrentControlSet\Control" "\ComputerName\ComputerName\ComputerName"Set objFSO = CreateObject("Scripting.FileSystemObject")Set objServerlist = objFSO.OpenTextFile(Serverlist, ForAppending) Set objShell = CreateObject("WScript.Shell")strComputerName = objShell.RegRead(regComputerName)objServerlist.WriteLine (strComputerName) objShell.RegWrite"HKLM\System\CurrentControlSet\Services\Eventlog\Application\AutoBackupLogFiles", 1, "REG_DWORD"objShell.RegWrite"HKLM\System\CurrentControlSet\Services\Eventlog\Security\AutoBackupLogFiles", 1, "REG_DWORD"objShell.RegWrite"HKLM\System\CurrentControlSet\Services\Eventlog\System\AutoBackupLogFiles", 1, "REG_DWORD" From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]Sent: Wednesday, March 29, 2006 9:20 AMTo: ActiveDir@mail.activedir.orgSubject: RE: [ActiveDir] Script not working thru GPO Whats objFile being set to? Set WshShell = WScript.CreateObject("WScript.Shell")ComputerName = objShell.RegRead(regComputerName)objfile.Write "ComputerName" Hmm maybe Im missing something entirely because I dont see where objShell is being set to anything either ? :m:dsm:cci:mvp| marcusoh.blogspot.com From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cothern, Jeffrey D Mr CTR USSOCOM HQSent: Wednesday, March 29, 2006 8:45 AMTo: ActiveDir@mail.activedir.orgSubject: RE: [ActiveDir] Script not working thru GPO Thank you That fixed that line.. Now to another line. As I mentioned before this script works fine outside of GPO. Do you see anything wrong with ComputerName = From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Darren Mar-EliaSent: Tuesday, March 28, 2006 12:16 PMTo: ActiveDir@mail.activedir.orgSubject: RE: [ActiveDir] Script not working thru GPO Good catch Kamlesh. Jeff, check out: http://msdn.microsoft.com/library/default.asp?url=""> for an example of this. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kamlesh ParmarSent: Tuesday, March 28, 2006 8:59 AMTo: ActiveDir@mail.activedir.orgSubject: Re: [ActiveDir] Script not working thru GPO If this is the exact script then Where have you defined value of "ForAppending" ?? Aserror message contains"invalid argument" -- Kamlesh On 3/28/06, Cothern, Jeffrey D Mr CTR USSOCOM HQ [EMAIL PROTECTED] wrote: I have a script i created in vbs. This script works when run on the machines locally but when i set it up as a machine startup script it gets this error script: path and name of script Line:13 Char: 1 Error: Invalid Procedure call or argument Code: 800A0005 Source: Microsoft _vbscript_ runtime error As I said this runs correctly when run on the machine localy but not thru GPO. I am assuming that I cannot do a objFSO.OpenTestFile thru the GPO. Is there some other way I can accomplish the write to the test file? Jeff Here is the Script Code: Dim WshShell, bKeyDim regComputerNameDim ComputerNameDim ServerlistDim objServerlistDIM objFSODIM strCurrenLineDIM intIsComment Serverlist = "\\fileserver\serverlist.txt"regComputerName = "HKLM\SYSTEM\CurrentControlSet\Control" "ComputerName\ComputerName\ComputerName" Set objFSO = CreateObject("Scripting.FileSystemObject")Set objServerlist = objFSO.OpenTextFile(serverlist, ForAppending) Set WshShell = WScript.CreateObject("WScript.Shell")ComputerName = objShell.RegRead(regComputerName)objfile.Write "ComputerName" WshShell. RegWrite"HKLM\System\CurrentControlSet\Services\Eventlog\Application\AutoBackupLogFiles", 1, "REG_DWORD"WshShell. RegWrite"HKLM\System\CurrentControlSet\Services\Eventlog\Security\AutoBackupLogFiles", 1, "REG_DWORD" WshShell. RegWrite"HKLM\System\CurrentControlSet\Services\Eventlog\System\AutoBackupLogFiles", 1, "REG_DWORD" bKey = WshShell.RegRead("HKLM\System\CurrentControlSet\Services\Eventlog\Application\AutoBackupLogFiles")bKey = WshShell.RegRead("HKLM\System\CurrentControlSet\Services\Eventlog\Security\AutoBackupLogFiles") bKey = WshShell.RegRead("HKLM\System\CurrentControlSet\Services\Eventlog\System\AutoBackupLogFiles") WScript.Echo WshShell.RegRead("HKLM\System\CurrentControlSet\Services\Eventlog\Application\AutoBackupLogFiles")WScript.Echo WshShell.RegRead("HKLM\System\CurrentControlSet\Services\Eventlog\Security\AutoBackupLogFiles") WScript.Echo WshShell.RegRead("HKLM\System\CurrentControlSet\Services\Eventlog\System\AutoBackupLogFiles") --
RE: [ActiveDir] Script not working thru GPO
Is there any reason youre not just expanding the %ComputerName% environment variable in your script? As far as searching the file: Dim line Dim found found = false While Not objServerList.EOF Line = objServerList.ReadLine If line = strComputerName Then found = true End If Wend If found then Do stuff Else Do other stuff End If Thanks, Brian Desmond [EMAIL PROTECTED] c - 312.731.3132 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cothern, Jeffrey D Mr CTR USSOCOM HQ Sent: Wednesday, March 29, 2006 11:55 AM To: ActiveDir@mail.activedir.org Subject: RE: [ActiveDir] Script not working thru GPO Foudn that problem and the other which was with objShell Here is the working script.Now to find a way to have it check if the server name is already in the serverlist.txt file and if so skip to the end. Dim regComputerName Dim strComputerName Dim Serverlist Dim objShell Dim objServerlist DIM objFSO DIM strCurrenLine DIM intIsComment Const ForAppending = 8 Serverlist = \\fileserver\serverlist.txt regComputerName = HKLM\SYSTEM\CurrentControlSet\Control \ComputerName\ComputerName\ComputerName Set objFSO = CreateObject(Scripting.FileSystemObject) Set objServerlist = objFSO.OpenTextFile(Serverlist, ForAppending) Set objShell = CreateObject(WScript.Shell) strComputerName = objShell.RegRead(regComputerName) objServerlist.WriteLine (strComputerName) objShell.RegWriteHKLM\System\CurrentControlSet\Services\Eventlog\Application\AutoBackupLogFiles, 1, REG_DWORD objShell.RegWriteHKLM\System\CurrentControlSet\Services\Eventlog\Security\AutoBackupLogFiles, 1, REG_DWORD objShell.RegWriteHKLM\System\CurrentControlSet\Services\Eventlog\System\AutoBackupLogFiles, 1, REG_DWORD From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, March 29, 2006 9:20 AM To: ActiveDir@mail.activedir.org Subject: RE: [ActiveDir] Script not working thru GPO Whats objFile being set to? Set WshShell = WScript.CreateObject(WScript.Shell) ComputerName = objShell.RegRead(regComputerName) objfile.Write ComputerName Hmm maybe Im missing something entirely because I dont see where objShell is being set to anything either ? :m:dsm:cci:mvp| marcusoh.blogspot.com From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cothern, Jeffrey D Mr CTR USSOCOM HQ Sent: Wednesday, March 29, 2006 8:45 AM To: ActiveDir@mail.activedir.org Subject: RE: [ActiveDir] Script not working thru GPO Thank you That fixed that line.. Now to another line. As I mentioned before this script works fine outside of GPO. Do you see anything wrong with ComputerName = From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Darren Mar-Elia Sent: Tuesday, March 28, 2006 12:16 PM To: ActiveDir@mail.activedir.org Subject: RE: [ActiveDir] Script not working thru GPO Good catch Kamlesh. Jeff, check out: http://msdn.microsoft.com/library/default.asp?url=""> for an example of this. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kamlesh Parmar Sent: Tuesday, March 28, 2006 8:59 AM To: ActiveDir@mail.activedir.org Subject: Re: [ActiveDir] Script not working thru GPO If this is the exact script then Where have you defined value of ForAppending ?? Aserror message containsinvalid argument -- Kamlesh On 3/28/06, Cothern, Jeffrey D Mr CTR USSOCOM HQ [EMAIL PROTECTED] wrote: I have a script i created in vbs. This script works when run on the machines locally but when i set it up as a machine startup script it gets this error script: path and name of script Line:13 Char: 1 Error: Invalid Procedure call or argument Code: 800A0005 Source: Microsoft _vbscript_ runtime error As I said this runs correctly when run on the machine localy but not thru GPO. I am assuming that I cannot do a objFSO.OpenTestFile thru the GPO. Is there some other way I can accomplish the write to the test file? Jeff Here is the Script Code: Dim WshShell, bKey Dim regComputerName Dim ComputerName Dim Serverlist Dim objServerlist DIM objFSO DIM strCurrenLine DIM intIsComment Serverlist = \\fileserver\serverlist.txt regComputerName = HKLM\SYSTEM\CurrentControlSet\Control ComputerName\ComputerName\ComputerName Set objFSO = CreateObject(Scripting.FileSystemObject) Set objServerlist = objFSO.OpenTextFile(serverlist, ForAppending) Set WshShell = WScript.CreateObject(WScript.Shell) ComputerName = objShell.RegRead(regComputerName) objfile.Write ComputerName WshShell. RegWriteHKLM\System\CurrentControlSet\Services\Eventlog\Application\AutoBackupLogFiles, 1, REG_DWORD
[ActiveDir] Removing sp1 via recovery consol
Hello, How can I uninstall Windows 2003 service pack 1 via recovery consol? Is there a command to do that? Adriao F Ramos
RE: [ActiveDir] Script not working thru GPO
You need to open the same file for reading first, read all the lines into an array then run a do/while or for/next statement against the array to check if theres a name match. :m:dsm:cci:mvp| marcusoh.blogspot.com From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cothern, Jeffrey D Mr CTR USSOCOM HQ Sent: Wednesday, March 29, 2006 11:55 AM To: ActiveDir@mail.activedir.org Subject: RE: [ActiveDir] Script not working thru GPO Foudn that problem and the other which was with objShell Here is the working script.Now to find a way to have it check if the server name is already in the serverlist.txt file and if so skip to the end. Dim regComputerName Dim strComputerName Dim Serverlist Dim objShell Dim objServerlist DIM objFSO DIM strCurrenLine DIM intIsComment Const ForAppending = 8 Serverlist = \\fileserver\serverlist.txt regComputerName = HKLM\SYSTEM\CurrentControlSet\Control \ComputerName\ComputerName\ComputerName Set objFSO = CreateObject(Scripting.FileSystemObject) Set objServerlist = objFSO.OpenTextFile(Serverlist, ForAppending) Set objShell = CreateObject(WScript.Shell) strComputerName = objShell.RegRead(regComputerName) objServerlist.WriteLine (strComputerName) objShell.RegWriteHKLM\System\CurrentControlSet\Services\Eventlog\Application\AutoBackupLogFiles, 1, REG_DWORD objShell.RegWriteHKLM\System\CurrentControlSet\Services\Eventlog\Security\AutoBackupLogFiles, 1, REG_DWORD objShell.RegWriteHKLM\System\CurrentControlSet\Services\Eventlog\System\AutoBackupLogFiles, 1, REG_DWORD From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, March 29, 2006 9:20 AM To: ActiveDir@mail.activedir.org Subject: RE: [ActiveDir] Script not working thru GPO Whats objFile being set to? Set WshShell = WScript.CreateObject(WScript.Shell) ComputerName = objShell.RegRead(regComputerName) objfile.Write ComputerName Hmm maybe Im missing something entirely because I dont see where objShell is being set to anything either ? :m:dsm:cci:mvp| marcusoh.blogspot.com From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cothern, Jeffrey D Mr CTR USSOCOM HQ Sent: Wednesday, March 29, 2006 8:45 AM To: ActiveDir@mail.activedir.org Subject: RE: [ActiveDir] Script not working thru GPO Thank you That fixed that line.. Now to another line. As I mentioned before this script works fine outside of GPO. Do you see anything wrong with ComputerName = From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Darren Mar-Elia Sent: Tuesday, March 28, 2006 12:16 PM To: ActiveDir@mail.activedir.org Subject: RE: [ActiveDir] Script not working thru GPO Good catch Kamlesh. Jeff, check out: http://msdn.microsoft.com/library/default.asp?url=""> for an example of this. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kamlesh Parmar Sent: Tuesday, March 28, 2006 8:59 AM To: ActiveDir@mail.activedir.org Subject: Re: [ActiveDir] Script not working thru GPO If this is the exact script then Where have you defined value of ForAppending ?? Aserror message containsinvalid argument -- Kamlesh On 3/28/06, Cothern, Jeffrey D Mr CTR USSOCOM HQ [EMAIL PROTECTED] wrote: I have a script i created in vbs. This script works when run on the machines locally but when i set it up as a machine startup script it gets this error script: path and name of script Line:13 Char: 1 Error: Invalid Procedure call or argument Code: 800A0005 Source: Microsoft _vbscript_ runtime error As I said this runs correctly when run on the machine localy but not thru GPO. I am assuming that I cannot do a objFSO.OpenTestFile thru the GPO. Is there some other way I can accomplish the write to the test file? Jeff Here is the Script Code: Dim WshShell, bKey Dim regComputerName Dim ComputerName Dim Serverlist Dim objServerlist DIM objFSO DIM strCurrenLine DIM intIsComment Serverlist = \\fileserver\serverlist.txt regComputerName = HKLM\SYSTEM\CurrentControlSet\Control ComputerName\ComputerName\ComputerName Set objFSO = CreateObject(Scripting.FileSystemObject) Set objServerlist = objFSO.OpenTextFile(serverlist, ForAppending) Set WshShell = WScript.CreateObject(WScript.Shell) ComputerName = objShell.RegRead(regComputerName) objfile.Write ComputerName WshShell. RegWriteHKLM\System\CurrentControlSet\Services\Eventlog\Application\AutoBackupLogFiles, 1, REG_DWORD WshShell.
[ActiveDir] Quiet? DEC? Related?
Hmm.. everyone must be having fun at DEC... this list has been very quiet this week! - Brendan Moon
RE: [ActiveDir] Quiet? DEC? Related?
Don't worry we're still here.. ;-) Met vriendelijke groeten / Kind regards, Ing. Jorge de Almeida Pinto Senior Infrastructure Consultant MVP Windows Server - Directory Services LogicaCMG Nederland B.V. (BU RTINC Eindhoven) ( Tel : +31-(0)40-29.57.777 ( Mobile : +31-(0)6-26.26.62.80 * E-mail : see sender address From: [EMAIL PROTECTED] on behalf of Moon, Brendan Sent: Wed 2006-03-29 19:26 To: ActiveDir@mail.activedir.org Subject: [ActiveDir] Quiet? DEC? Related? Hmm.. everyone must be having fun at DEC... this list has been very quiet this week! - Brendan Moon 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. winmail.dat
RE: [ActiveDir] Quiet? DEC? Related?
Maybe we should ask a question on the merits of doubling down on an 11 when the dealer has a face card showing... :-) Diane From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Almeida Pinto, Jorge deSent: Wednesday, March 29, 2006 9:35 AMTo: ActiveDir@mail.activedir.orgSubject: RE: [ActiveDir] Quiet? DEC? Related? Don't worry we're still here.. ;-) Met vriendelijke groeten / Kind regards, Ing. Jorge de Almeida Pinto Senior Infrastructure Consultant MVP Windows Server- Directory Services LogicaCMG Nederland B.V. (BU RTINC Eindhoven) (Tel : +31-(0)40-29.57.777 (Mobile: +31-(0)6-26.26.62.80 * E-mail: see sender address From: [EMAIL PROTECTED] on behalf of Moon, BrendanSent: Wed 2006-03-29 19:26To: ActiveDir@mail.activedir.orgSubject: [ActiveDir] Quiet? DEC? Related? Hmm.. everyone must be having fun at DEC... this list has been very quiet this week! - Brendan Moon
RE: [ActiveDir] Quiet? DEC? Related?
Do you believe that any 50-50 situation (coin toss) ever gone heads-tails-heads-tails-head-tailsand so on for ever? Of course not. Does that then mean that the odds change? Of course not. But it does mean that there are small waves of heads and waves of tails. Same in blackjack. The book says to hit it yet I would put equal value on feeling the current wave. Of course if you can at least keep a running count of big/small in the remaining deck that helps too. Bryan Lucas Server Administrator Texas Christian University (817) 257-6971 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ayers, Diane Sent: Wednesday, March 29, 2006 2:23 PM To: ActiveDir@mail.activedir.org Subject: RE: [ActiveDir] Quiet? DEC? Related? Maybe we should ask a question on the merits of doubling down on an 11 when the dealer has a face card showing... :-) Diane From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Almeida Pinto, Jorge de Sent: Wednesday, March 29, 2006 9:35 AM To: ActiveDir@mail.activedir.org Subject: RE: [ActiveDir] Quiet? DEC? Related? Don't worry we're still here.. ;-) Met vriendelijke groeten / Kind regards, Ing. Jorge de Almeida Pinto Senior Infrastructure Consultant MVP Windows Server- Directory Services LogicaCMG Nederland B.V. (BU RTINC Eindhoven) ( Tel : +31-(0)40-29.57.777 ( Mobile : +31-(0)6-26.26.62.80 * E-mail : see sender address From: [EMAIL PROTECTED] on behalf of Moon, Brendan Sent: Wed 2006-03-29 19:26 To: ActiveDir@mail.activedir.org Subject: [ActiveDir] Quiet? DEC? Related? Hmm.. everyone must be having fun at DEC... this list has been very quiet this week! - Brendan Moon
RE: [ActiveDir] Quiet? DEC? Related?
Diane, ALWAYS double down. ;) themolk. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ayers, DianeSent: Thursday, 30 March 2006 6:23 AMTo: ActiveDir@mail.activedir.orgSubject: RE: [ActiveDir] Quiet? DEC? Related? Maybe we should ask a question on the merits of doubling down on an 11 when the dealer has a face card showing... :-) Diane From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Almeida Pinto, Jorge deSent: Wednesday, March 29, 2006 9:35 AMTo: ActiveDir@mail.activedir.orgSubject: RE: [ActiveDir] Quiet? DEC? Related? Don't worry we're still here.. ;-) Met vriendelijke groeten / Kind regards, Ing. Jorge de Almeida Pinto Senior Infrastructure Consultant MVP Windows Server- Directory Services LogicaCMG Nederland B.V. (BU RTINC Eindhoven) (Tel : +31-(0)40-29.57.777 (Mobile: +31-(0)6-26.26.62.80 * E-mail: see sender address From: [EMAIL PROTECTED] on behalf of Moon, BrendanSent: Wed 2006-03-29 19:26To: ActiveDir@mail.activedir.orgSubject: [ActiveDir] Quiet? DEC? Related? Hmm.. everyone must be having fun at DEC... this list has been very quiet this week! - Brendan Moon
RE: [ActiveDir] Quiet? DEC? Related?
Interesting... an employee of Texas Christian University giving gambling advice... Next you'll be offering advice on (ahem) "adult" situations... ;) themolk. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lucas, BryanSent: Thursday, 30 March 2006 6:41 AMTo: ActiveDir@mail.activedir.orgSubject: RE: [ActiveDir] Quiet? DEC? Related? Do you believe that any 50-50 situation (coin toss) ever gone heads-tails-heads-tails-head-tailsand so on for ever? Of course not. Does that then mean that the odds change? Of course not. But it does mean that there are small waves of heads and waves of tails. Same in blackjack. The book says to hit it yet I would put equal value on feeling the current wave. Of course if you can at least keep a running count of big/small in the remaining deck that helps too. Bryan Lucas Server Administrator Texas Christian University (817) 257-6971 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ayers, DianeSent: Wednesday, March 29, 2006 2:23 PMTo: ActiveDir@mail.activedir.orgSubject: RE: [ActiveDir] Quiet? DEC? Related? Maybe we should ask a question on the merits of doubling down on an 11 when the dealer has a face card showing... :-) Diane From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Almeida Pinto, Jorge deSent: Wednesday, March 29, 2006 9:35 AMTo: ActiveDir@mail.activedir.orgSubject: RE: [ActiveDir] Quiet? DEC? Related? Don't worry we're still here.. ;-) Met vriendelijke groeten / Kind regards, Ing. Jorge de Almeida Pinto Senior Infrastructure Consultant MVP Windows Server- Directory Services LogicaCMG Nederland B.V. (BU RTINC Eindhoven) ( Tel : +31-(0)40-29.57.777 ( Mobile : +31-(0)6-26.26.62.80 * E-mail : see sender address From: [EMAIL PROTECTED] on behalf of Moon, BrendanSent: Wed 2006-03-29 19:26To: ActiveDir@mail.activedir.orgSubject: [ActiveDir] Quiet? DEC? Related? Hmm.. everyone must be having fun at DEC... this list has been very quiet this week! - Brendan Moon
[ActiveDir] adfind and authorig
What switches would you use to get adfind to just list all mail enabled security distribution groups that begin with DL- and only list the authorig attrib to find out who can send to that group. I don't want any other attribs like member,etc. Just who can send to that group? Is this possible? Thanks
RE: [ActiveDir] adfind and authorig
http://blogs.brnets.com/michael/archive/2004/06/24/168.aspx :m:dsm:cci:mvp| marcusoh.blogspot.com From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tom Kern Sent: Wednesday, March 29, 2006 4:46 PM To: activedirectory Subject: [ActiveDir] adfind and authorig What switches would you use to get adfind to just list all mail enabled security distribution groups that begin with DL- and only list the authorig attrib to find out who can send to that group. I don't want any other attribs like member,etc. Just who can send to that group? Is this possible? Thanks
Re: [ActiveDir] adfind and authorig
Thanks On 3/29/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: http://blogs.brnets.com/michael/archive/2004/06/24/168.aspx :m:dsm:cci:mvp| marcusoh.blogspot.com From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Tom KernSent: Wednesday, March 29, 2006 4:46 PMTo: activedirectorySubject: [ActiveDir] adfind and authorig What switches would you use to get adfind to just list all mail enabled security distribution groups that begin with DL- and only list the authorig attrib to find out who can send to that group. I don't want any other attribs like member,etc. Just who can send to that group? Is this possible? Thanks
RE: [ActiveDir] Quiet? DEC? Related?
Just wrapped up Day 3. 530 people. General consensus is that it was the best DEC ever. More to follow when I can type on something bigger than a credit card. -gil -Original Message- From: Ayers, Diane [EMAIL PROTECTED] To: ActiveDir@mail.activedir.org ActiveDir@mail.activedir.org Sent: 3/29/06 1:23 PM Subject: RE: [ActiveDir] Quiet? DEC? Related? Maybe we should ask a question on the merits of doubling down on an 11 when the dealer has a face card showing... :-) Diane From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Almeida Pinto, Jorge de Sent: Wednesday, March 29, 2006 9:35 AM To: ActiveDir@mail.activedir.org Subject: RE: [ActiveDir] Quiet? DEC? Related? Don't worry we're still here.. ;-) Met vriendelijke groeten / Kind regards, Ing. Jorge de Almeida Pinto Senior Infrastructure Consultant MVP Windows Server - Directory Services LogicaCMG Nederland B.V. (BU RTINC Eindhoven) ( Tel : +31-(0)40-29.57.777 ( Mobile : +31-(0)6-26.26.62.80 * E-mail : see sender address From: [EMAIL PROTECTED] on behalf of Moon, Brendan Sent: Wed 2006-03-29 19:26 To: ActiveDir@mail.activedir.org Subject: [ActiveDir] Quiet? DEC? Related? Hmm.. everyone must be having fun at DEC... this list has been very quiet this week! - Brendan Moon 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/