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 ArticleIs 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 ArticleKilling 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 ArticleBatch 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 Articleget-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 ArticlePowerShell 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 ArticleCheck 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 ArticleScript 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 ArticleHelp 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 ArticleProblem 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 ArticleLocal 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 ArticleBitLocker 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 ArticleHelp 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 ArticleOutlook 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 ArticlePowershell 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 ArticleVB 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 ArticleHow 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 ArticleTest-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 ArticleWhy 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 ArticleVbs 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