0
votes
2answers
29 views

Replacing a string in all config files across machines with a script

I have the below task and I am wondering what would be the best and quick way to do this. I am thinking scripting rather than a C# app but struggling with scripting in DOS. I wanted to use powershell ...
0
votes
4answers
57 views

Calling a powershell function using a .bat file

I would like to know how to call a powershell function using a .Bat file. I have this simple function: (Script.ps1) function testfunction { Write-Log "Calling from Bat file" } and I would like to ...
1
vote
2answers
23 views

Startup script to generate uninstall command

I have a text file of the format: computername1 uninstallkey1 computername2 uninstallkey2 ... computername200 uninstallkey200 I am trying to write a startup script (batch file or powershell?) that ...
0
votes
1answer
29 views

running a bat file and powershell with elevated priviliges

so i have a bat file that goes: powershell -noexit "My\file\location\myscript.ps1" the bat file is in the start up. the powershell script changes the bcd. when executed in this manner it says i ...
1
vote
1answer
40 views

Windows 8 Powershell Enable-WindowsOptionalFeature bat file

I have a .bat file that runs a powershell script. This is it powershell -Command "& {Enable-WindowsOptionalFeature -Online -FeatureName IIS-WebServerRole}" I have done this before and if I ...
0
votes
2answers
73 views

Powershell Query

HKU \\<host>\HKU\<SID>\Software\Microsoft\Windows\CurrentVersion\Run /s Example: for /f "delims=\ tokens=2,*" %t in ('reg query HKU') do reg query HKU\%t ...
0
votes
0answers
56 views

Calling PowerCLI from Batch

Sorta like it sounds. To explain: I want to add the VMID from Vsphere to a CSV for a computer automatically via batch. So far I have: $var = Get-View -ViewType VirtualMachine -Filter ...
0
votes
1answer
52 views

Error Calling powershell script from batch file in separate directory

I have the following .ps1 for unzipping a zip file... param([string]$path) $shell=new-object -com shell.application $Location=$shell.namespace($path) $ZipFiles = get-childitem *.zip get-childitem ...
1
vote
1answer
42 views

Deploy SQL File from VSS to SQL Server using Batch File

I want to know if there is any way for me to deploy a stored procedure (sql file) that is checked-in at VSS? I have a couple of procedures that I want to deploy to SQL Server. I'm trying to create a ...
0
votes
4answers
90 views

Replace or delete certain characters from filenames of all files in a folder

How do I delete certain characters or replace certain characters with other characters by some batch file execution, for filenames of all files in a Windows folder in one go, is there a DOS command ...
0
votes
1answer
56 views

Error running PowerShell script with .bat

I'm trying to run a .bat file calling a shell .ps1 file. I've tested my script directly in powershell and there it works. But when I run the .bat, a error occurs saying to me something like [ The ...
2
votes
1answer
79 views

Call powershell scripts with AX 2009

How can I proceed to run a powershell script from AX ? is it possible to do this through batch job? I mean is it allowed by AX to do that on server side process ?I had a lot of problems to run some ...
0
votes
3answers
132 views

Unsigned Powershell scripts from HTA

I have created the below batch file and it works flawlessly as long as I run it manually. However, if I run the .bat file from a HTA application, PowerShell says that he can't run the script because ...
-2
votes
0answers
267 views

schedule a powershell script via windows task scheduler to run every hour

I want to write a powershell script that looks at a simple sqlplus query and if the result is greater than 0, runs a BAT file problem is, I don't have ANY knowledge on powershell or cmd coding and ...
0
votes
3answers
66 views

Powershell or Batch EXITCODE 7zip

how can I get the exit code of a 7zip's operation? for example: 7z x filename.zip -y how can I get it? at now, I do some operations in bat, but I can change language. I found something with AHK ...

1 2 3 4 5 15
15 30 50 per page