Creating a Batch file to Execute Two Programs in Parallel
I have two programs that I want to execute at a certain time in parallel every day. Now I realize that Task Scheduler will allow me to create a task to execute a program, but if I list both programs,...
View ArticleSplitting a whole number
I feel like this should be simple, but 30 minutes of searching has lead me no where.. I am simply trying to split a 5 digit number into an array so I can build another number.01234 split into element...
View ArticleScript (VBS or batch) to move archive eventlogs into anothre location
I have a few questions regarding event log re-location:1) we try to change event log location to network share, it seems working after change it at event log properties2)But we concerned about the logs...
View ArticleOPEN ALL FILES IN A SPECIFIC FOLDER
Hello,I would need a script (bat file or else) That would open all files that are in a specific folder.For instance, in the C:\temp folder. I would need the script to open all files *.* (an of course...
View ArticlePower Shell script to check files and display a message
I have the following requirement.I have some 800 servers which get a set of files transferred from a remote source each and every hour in a designated location on the server. The file names are...
View ArticleScript - unhide
I used the following example to run my batch program. Now I need to kill it and start again. How do I do that ? I am unable to find the instance in Task Manager.Dim oShell Set oShell =...
View ArticleHelp with If Or statement in wscript
Hello,I'm very new to scripting and i've put a script together for desktop techs to set a global printer to a computer. The script will pop up a box and they put the printer name in and then it runs...
View ArticleWould like to automate this Powershell command that sets the UPN of all mail...
I have command that changes the UPN of all mailbox usersGet-ADUser -Filter * -properties homemdb | where {$_.homemdb -ne $null} | ForEach-Object ($_.SamAccountName) {$CompleteUPN = $_.SamAccountName +...
View ArticleRFC 1951 decompress data in PowerShell
I’m processing a file, which contains compressed data. The doc says decompress is by using RFC 1951 algorithm. I was able to put the data into a [Byte[]] array, I know the uncompressed size, so I can...
View ArticlePowerShell Terminal Services/Citrix
Hi I am trying to use Powershell 2.0 to carry out the following task on Citrix XenApp 6.5I am using the following commandSend-XASessionMessage -ServerNameI would like to send a message to all sessions...
View ArticleNetdom, Psexec, Batch Issue
Hello All,I have a batch file I created not all too long ago that does exactly what I need it to do, but recently, I added another two lines to it, in hopes to rename a computer and this is causing a...
View ArticleRemoving only exchange license using PowerShell in Office365
Howdy Scripting Guys and Gals,This is an Office 365 PowerShell Question. I'm trying to write a script that will only remove a single sku part from a user license. In other words, I have user that...
View ArticleNeed to create a mouse click event in powershell
Hello, I've just started using powershell. I have written an automation script that works perfectly with the exception on one step. I’m creating a batch of records in an in-house web application with...
View Articlewant to use VBscript to modify one fo registry keys
Anyone can help with a vbscript to modify one of the software registry keys: Windows Registry Editor Version 5.00...
View ArticleChrome Scripting
I am relatively new to scripting through Powershell 3.0, but I have had minor experience with the command prompt. I have a few batch files where I was able to access chrome incognito automatically by...
View ArticleVBScript for switching Static IPs to DHCP.
Hey everyone. Here's the quick run down: We have about 200 machines that are scattered by different OS's (Windows XP, Windows 7 and a very few Windows 8) and they are all statically assigned. We would...
View ArticlePowershell
I am having problems getting this script to work. Can someone help?Display a list of processes where the process ID is between 100 and 200; sort the display by process:Get-Process |where { $_.'ID' -gt...
View ArticlePowerShell with Credentials
I have an issue with trying to use a stored set of credentials and invoke an executable using the stored set. Example standard Domain User running migwiz.exe will not work. I would like to create a...
View ArticleVBScript paste data copied from IE into Excel and Match Destination Formatting
Hi Guys,I have some data that I'm copying from a web based inventory program at work and I need to use VBScript to paste it into Excel the same as if I went to the paste button and selected "Match...
View ArticleVbscript for XML editing is not working in win server 2008 R2, same script...
Please look in to the script. Set xmlDoc = CreateObject("Microsoft.XMLDOM") XMLDir = "C:\" xmlPath = quote & XMLDir & "123.xml" & quote xmlDoc.load xmlPath'Locate the desired node 'Note the...
View Article