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

Need a VB-Script that read a txt-file and only the lines that are new since...

Hi,I need help to write a VB script that read all new lines since the last time.For example:  The script reads the textfile at specific time, then 10 minutes later the script read the file again, and...

View Article


Is there a vb or powershell script that can be used to list out the devices...

Is there a vb or powershell script that can be used to list out the devices that a server can boot from? It is necessary to restrict the bootable devices to Fixed drives or SAN unless the user has a...

View Article


Killing processes on multiple machines remotely via powershell issue.

I am getting an error when trying to deploy the following code to multiple machines, see below.Code:$remote = new-pssession -computername teststation-2, teststation-1 import-pssession -session $remote...

View Article

Batch File Read Log 1st line

Hi everyone, I've a batch to robocopy folders every night between servers. A log file is generated and a mail is sent at the end using Blat.exe I would like to send the mail only if the robocopy...

View Article

get-process for current user

I want to try to get a powershell script to list the current process by the current user. Please assist.Thanks!!!!Lee Mossolle

View Article


PowerShell GUI Listbox - .Remove/.RemoveAt - An error occurred while...

I have two listboxes:  one that contains a whole bunch of mailboxes, and the other that has the "selected mailboxes" with a ">>" and "<<" button in between them.  The adding part of one to...

View Article

Check process

Just trying to see if there's a way to check on a process and if the process does not exist, send email alert.I did search on the forum and came accross  this :  $ProcessCheck = Get-Process abc...

View Article

Script to find a user and restart two services

I am looking to make a script to first find a user that is connected to a server (list) the to stop Spooler, then stop cpsvc. Once the services are stopped, the script would then clear out the folder...

View Article


Help with a simple FOR /F loop in Batch file

Hello, I'm having an issue with a simple FOR loop in a batch file. According to the FOR command's syntax (Microsoft's Technet on FOR), this loop should read & echo each line of iwov.txt, but...

View Article


Problem with a script and mdt 2013

Hi, with mdt 2012 update 1, i have a script that change the name of the computer, so the script goes to the active directory looging for a UUID match and name and if he find it he change the name, this...

View Article

Local printer management --Spooler Issues--

Trouble: of the 3 production printers on a local machine 1 to many of the printers may have a Job get stuck in printing for some unknown issue. Clicking cancel job / Delete fails to remove the Job from...

View Article

BitLocker and TPM Recovery Information

Hey Scripting guys. Here's my dilemma.  We are storing BitLocker and TPM recovery information in AD.  We don't use MBAM because we don't have the necessary MDOP licenses.  Anyway, with Windows 7 boxes...

View Article

Help exporting generated AD accounts

I have a script that I made that will create active directory users. I want to export it to a .csv file with the headings Firstname,Lastname,Loginname,Password. Here is what I have so far:$csvcontent =...

View Article


Outlook Results into SQL Table

Hi,i've got a script that scans our backup reports in the public folders and outputs the results to a html file, that bit works fine. I want to expand the results to start putting results into a SQL...

View Article

Powershell equivalent of DOS %~dp0 command

Hello Folks!Does anyone know of a way to output the directory path of the powershell file being executed is located?  I'm using SCCM to install applications via a script which means the source files...

View Article


VB script to run a batch script as admin

I have batch script the I need to run as an administrator, I created a VBscript wrapper that calls a runas and runs my batch file, however the batch file is not being elevated high enough on Windows 7...

View Article

How do I query a groups members, including subgroups, to output givename,...

Hi Scripting Guy members,I am new to powershell and I haven't been scripting verylong. I've been learning how to pipe commands so here is where I am so far:get-adgroupmember "spec - new product...

View Article


Test-Connection problem

Running in to strange issue with the Test-Connection cmdlet, both inside a script I am writing and when running it directly from a powershell session.  No matter what computer/site I try to test I get...

View Article

Why does event driven copy-item ignore -dest in powershell terminal

I'm trying the following in powershell:$dest = local directory to contain copies $path = directory to monitor$watcher = New-Object System.IO.FileSystemWatcher $watcher.Path = $path...

View Article

Vbs script for admin account?

Hello and thanks for visiting my thread.I am wondering if there is an VBS script that checks if there is an admin account on a pc, if so, is it active or not, and then if it is active it needs to...

View Article
Browsing all 15028 articles
Browse latest View live


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