Quantcast
Channel: The Official Scripting Guys Forum! forum
Browsing all 15028 articles
Browse latest View live

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 Article


Formatting 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 Article


Exporting 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 Article

Powershell 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 Article

Script 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 Article


error 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 Article

Problem 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 Article

vbscript 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 Article


Get-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 Article


NATO 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 Article

Checking 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 Article

Add 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 Article

data 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 Article


Is 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 Article

Add 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 Article


How 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 Article

Joining 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 Article


VBS 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 Article

add/remove program

Is there a script that will show what is listed in the add/remove and nothing more.Thank you,NewbiePS

View Article

Get 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
Browsing all 15028 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>