Speed up the processing of my PowerShell script
How would I speed up the processing of my PowerShell script? It pulls out information from a apps.csv file (containing 2 apps - a Windows XP and a Windows 7 version) and information from a hosts.csv...
View ArticleUpdating a script with new commands
Hello, I have two questions dealing with one script. The script I have was written to be successfully used with Windows 2008 R2, but as the servers are being transitioned to Windows 2012 R2, I feel...
View ArticleMonitor a folder for new files, print them and then move them to a different...
I am new to vbscript, and I am building a script to complete the following actions.1. Monitor a folder for new files to be created.2. Print those files 3. Move the files to anothe folder .Although this...
View ArticleConcatenate a variable
I have the following:for ($i=0; $i -lt $maxnum) {$something = (get-wmiobject win32_diskpartition)[$i] |%{$_.StartingOffset}i++}What I would like to do is have the $something actually be $offset$i,...
View ArticleHow can I query a https website used to display the status of an application...
Need assistance on querying the status of an application using Powershell. The status of the application is displayed in a https website. I want to receive a notification when one of the listed...
View ArticleImport thumbnail photos
I'm trying to Import thumbnail photos to AD user accounts. They are saved in a folder with a first.last name. This script works but I just need it to either parse just user objects or only import from...
View ArticleTrying to srink a script I have.
I am looking for a way to only say Import-csv $file | foreach once I have tried many different things but I cant seem to figure it out.import-module -name activedirectory $file = "C\test.csv"...
View Articlehelp ! wevutil scripting question
i need help with wevutili am looking for event id 1000 in the application logthis is common even id error number so i would like to see only the ones that are level 2 - errors (not...
View ArticleCopying and installing an MSI to multiple computers
Hello, I'm trying to troubleshoot this script. Any help would be appreciated.The first error I'm getting is "Access Denied" when attempting to copy the .msi file. The file path gets created but then...
View ArticlePowerShell - Deleting multiple files that contain a specific phrase.
Hi all,Can anyone show me an example of how to remove multiple files that contain the same phrase.I would like to search through each text file in the folder C:\temp\PS for the following phrase ""Not...
View ArticleParsing Icacls results
Hello!Basically I want a conditional statement, if icacls failed processing any files, then do not continue. Please imagine you are writing a PowerShell script, this script runs$icaclsResult =...
View ArticleCustom GUI - Group Boxes and More
All, I am creating a custom GUI-Form (Used Primal Forms to familiarize myself with language/syntax) to manage separate tasks contained within multiple group boxes, so that I am only dealing with one...
View Articleadd printer on remote computer
In my environment I need to add printers on remote computers. I can’t use active directory. My account has admin privileges, but the remote computer is setup to auto login to an account and that...
View ArticleVBScript, check to see if registry keys exist before running script
Hi there, I am trying to run the following script in my environment and want to ensure that once it's run once and the registry keys are in place, it does not execute again/ run again as this causes...
View ArticleReturning Return in PowerShell
Hey all, I'm trying to write a function in PowerShell where before running the onClick handler it does some basic error checking and if it finds an error to exit the onClickHandler. But it's not...
View ArticleHow does chkdsk work on C: drive?
Usually, whenever I perform chkdsk on C: drive, window request restart before this task.I would like to know whether following code can perform within window XP or not.echo y|chkdsk C: /F /RDoes anyone...
View Articlesendkey and AppActivate
From the section of code below....I am trying to get focus on the lsnrctl window so I can use the sendkeys to that exe. But even though I see the focus the sendkeys is not able to inject...
View ArticleMenuStrip Question
Hello,I'm wondering how do you add a checkbox to a Forms.MenuStripI want to add a checkbox in the menu and then later use a IF statement to perform an action if it is checked.I see this used a lot...
View ArticleMenuStrip and a Question about Class win32_product
Hello,I have a bunch of questions I'm hoping someone can answer.1.) I would like to add a menu separator and a checkbox under a dropdownitem for a toolstripmenuitem Similar to what you would see in...
View Articleneed script to list folder permissions in folder tree and subfolder
Hi All, There is a parent folder that contains sub-folders. i am trying to pull out details on who has access to the parent folders including sub-folder. i used this powershell command "Get-Acl -path...
View Article