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.
...@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
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
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
: [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
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
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
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
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
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
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
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
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
13 matches
Mail list logo