Re: [scripting] RE: bat file will only run one time

2017-09-29 Thread Micheal Espinola Jr
f *David Landry > *Sent:* Friday, September 15, 2017 12:29 PM > > *To:* scripting@lists.myitforum.com > *Subject:* [scripting] RE: bat file will only run one time > > > > Thanks Keith. > > > > I really like what you are doing here with the random generated password.

[scripting] RE: bat file will only run one time

2017-09-16 Thread Keith Garner
...@lists.myitforum.com [mailto:listsad...@lists.myitforum.com] On Behalf Of David Landry Sent: Friday, September 15, 2017 12:29 PM To: scripting@lists.myitforum.com Subject: [scripting] RE: bat file will only run one time Thanks Keith. I really like what you are doing here with the random generated password. I just

[scripting] RE: bat file will only run one time

2017-09-15 Thread David Landry
tforum.com [mailto:listsad...@lists.myitforum.com] On Behalf Of Keith Garner Sent: Wednesday, September 13, 2017 12:40 AM To: scripting@lists.myitforum.com Subject: [scripting] RE: bat file will only run one time PowerShell: First you will need a function to write to an INI file: https://github.c

RE: [scripting] RE: bat file will only run one time

2017-09-15 Thread Carneiro, Smita A.
From: listsad...@lists.myitforum.com [mailto:listsad...@lists.myitforum.com] On Behalf Of David Landry Sent: Friday, September 15, 2017 3:04 PM To: scripting@lists.myitforum.com Subject: RE: [scripting] RE: bat file will only run one time Yes .. I saw that. But we have a GPO that changes it and ke

RE: [scripting] RE: bat file will only run one time

2017-09-15 Thread David Landry
: [scripting] RE: bat file will only run one time Next step is changing your admin password. - Sean On Sep 12, 2017, at 12:39 PM, David Landry mailto:david.lan...@lairdtech.com>> wrote: Thank you to all for all the guidance. It is very much appreciated. From: listsad...@lists.myitfor

[scripting] RE: bat file will only run one time

2017-09-13 Thread Jimmy Martin
ay, September 12, 2017 3:26 PM To: scripting@lists.myitforum.com<mailto:scripting@lists.myitforum.com> Subject: [scripting] RE: bat file will only run one time That looks like VB code and should have the .vbs extension. I haven't checked the script itself, but see if using the .vbs exte

[scripting] RE: bat file will only run one time

2017-09-12 Thread Keith Garner
PowerShell: First you will need a function to write to an INI file: https://github.com/keithga/DeploySharedLibrary/blob/master/DeployShared/Windows/Set-PrivateProfileString.ps1 Next you will need a function to write to your Bootstrap or CustomSettings.ini file: https://github.com/keithga/Deploy

[scripting] RE: bat file will only run one time

2017-09-12 Thread David Landry
om Subject: [scripting] RE: bat file will only run one time That looks like VB code and should have the .vbs extension. I haven't checked the script itself, but see if using the .vbs extension instead of .bat helps. -Aakash Shah From: listsad...@lists.myitforum.com<mailto:listsad...@l

Re: [scripting] RE: bat file will only run one time

2017-09-12 Thread Sean Martin
f Of Benke, Richard L. (WWRC) > Sent: Tuesday, September 12, 2017 4:20 PM > To: scripting@lists.myitforum.com > Subject: [scripting] RE: bat file will only run one time > > I numbered the lines for reference. > > You’re opening a file handle in line 13, but you’re never clos

[scripting] RE: bat file will only run one time

2017-09-12 Thread David Landry
will only run one time I numbered the lines for reference. You're opening a file handle in line 13, but you're never closing it. This is leaving the file handle open for that instance of the script, which is preventing subsequent instances of the script from being able to open it. End y

[scripting] RE: bat file will only run one time

2017-09-12 Thread Benke, Richard L. (WWRC)
I numbered the lines for reference. You're opening a file handle in line 13, but you're never closing it. This is leaving the file handle open for that instance of the script, which is preventing subsequent instances of the script from being able to open it. End your script with another objTS.C

[scripting] RE: bat file will only run one time

2017-09-12 Thread Matt Hebbel
I know this isn't batch or vbs, but if the CustomSettings.ini file is the INI file you're modifying, check out this link: https://www.scconfigmgr.com/2014/08/23/using-powershell-to-modify-settings-in-mdt-2013/ If you scroll down towards the bottom of the page, there's some excellent guidance an

[scripting] RE: bat file will only run one time

2017-09-12 Thread Aakash Shah
That looks like VB code and should have the .vbs extension. I haven't checked the script itself, but see if using the .vbs extension instead of .bat helps. -Aakash Shah From: listsad...@lists.myitforum.com [mailto:listsad...@lists.myitforum.com] On Behalf Of David Landry Sent: Tuesday, Septemb