insert data into sql database where the values are in an array
Hello Experts,using vbscript i want to store data in MS SQL. i have prepared a script which works fine when i provide the static value but in actual i get the values in an array and now want to store...
View ArticleFormatting using Batch scripting
Good Day, I'd like to ask something from the experts because the extensive searching with several search engines failed me. I am looking to format both my internal and external drives inlcuding USB...
View ArticleExporting specific columns from XLS file to a new XLS or XLSX file using...
The scenario is that i have a file that our server is constantly dumping data to on a daily basis and out of all the data i only need 2 columns. I need to be a able to automate this because i need to...
View ArticlePowershell to Excel "Old format or invalid type library. (Exception from...
Hi everyone,I have a script a friend wrote & gave me written on en-US Windows 7 with French Office 2013. The script works fine for him, however for me with English Windows 7 & English Office...
View ArticleScript to check RDP connection
Hello, I'am looking for a script to check the availability of the RDP connection to Windows 2003 Server (SP1 and SP2). I'am not a great scripter, and I hope someone can help me. I'm rebooting about 600...
View Articleerror from dos command when running PS on remote server
Hi,I'm trying to execute a dfsr command on a remote server via a ps session.on server A (non dfsr) i' executing this :invoke-command -computername serverB -scriptblock {dfsrdiag backlog ....}this...
View ArticleProblem with Selecting Items From a List Box
HelloI am trying to use the code posted here http://technet.microsoft.com/en-us/library/ff730949.aspxThe problem is $x return nothing (e.g. return no output to the console and appears empty)however if...
View Articlevbscript delete folders except difine in exception
Dear,need support for below script for deleting all folders except in exception.Its deleting allDim ExceptionException = Array("Test2")Function Deletfdrs() Dim fso, f, f1, fc, i Set fso =...
View ArticleGet-Content on remote machines help
Hey all,I'm trying to read in a text file from multiple computers using a ForEach statement and getting an error that the file does not exist. I'm 100% positive the file is there but I must have some...
View ArticleNATO Phonetic Alphabet Calculator
Hi All,I'm looking for some advice, as I've been tasked with a "side project" that I'm not sure how to go about. We deal with a plethora of tracking numbers, service tags, support IDs, etc. on a daily...
View ArticleChecking for a process
Hi all,Need help with a script. I have a script that is uninstalling trend micros and then installing mcafee. The install leaves up two cmd prompts and as it installs the cmd prompts go away. The...
View ArticleAdd a domain user to local admin account
I am not great with scripts and I'm putting together what I can find on the internet. I work for a college and I am wanting to be able to add a domain user account to the local admin group of a lab...
View Articledata file with spaces, how to store each one in variable VBS
I have a data file such as a txt file and it is like this:123456789542....these can be any numbers and as many lines as needed. I need to take each number line by line storing them in 6 different...
View ArticleIs there a command similar in shell as it is in .NET VB
I was trying to download a file without going on the website and just getting sending through http request to the server. The server already has the subscription for my username and password.I wanted...
View ArticleAdd a batch or its shortcut to Windows 8 Taskbar
Hello, I would like to pin somethings to my taskbar, using powershell (so that using GPO I can customize my domain users settings). I'm experiencing some issue, trying to pin a batch file or its...
View ArticleHow can I reference a winforms control using a variable in Powershell?
I have a powershell winform that has a lot of text boxes, but for the sake of this post, lets say I have 5. I want to loop through the 5 text boxes to see if their text property is empty. If the...
View ArticleJoining together strings into Powershell variable names
I'm working with treeviews in Powershell - I have a different node for each of our buildings. In my code I'm grabbing variables, Joining them together, and using that as the variable name - but my code...
View ArticleVBS Script to validate RDP Connection
I am working on a VBS script to confirm if RDP Connection is working on remote servers. I know some server administrators check it via Telnet on default RDP port 3389. But, it is not completely...
View Articleadd/remove program
Is there a script that will show what is listed in the add/remove and nothing more.Thank you,NewbiePS
View ArticleGet a list from wsus of installed updates for a number of computers
I have a number of computers that I need to validate to see if the updates were installed. Running report from WSUS for each KB's and then locate the machine name on the report is very time...
View Article