Powershell wait for an action
Hello,i created this PS script## IdentifyingNumber will be stored in a vraiable$myApp = “7-z” $app = Get-WmiObject win32_product | Where-Object {$_.name -match $myApp}WAIT$app.IdentifyingNumber $appIN...
View ArticleRead XML file to dropdown list and sort alphabetically
I have a custom vbs script that reads a text file and creates a dropdown list to web page. How I can sort the list alphabetically? Should I read the values to array, sort it and after that put sorted...
View Articleproblem with record terminator on ftp'd files
Using Win7 Pro 64bitThis is not strictly a scripting issue, but it doesn't seem to fit neatly into any other forum, so I figured that there might be sufficient expertise here.and I am doing this in a...
View ArticleDirect Report Lookup
Hi Scripting Guys,I'm trying to search Active Directory (one specific user) so I can not only see all of this user's direct reports, but any of these accounts that have direct reports themselves....
View ArticleReplacing entries in a csv file
Hi,I am working on a code where I need to replace certain entries in a csv file. In the Get Content command, I need to use a wildcard for "Server". I tried replacing SERVER with * ,however that did not...
View ArticleOverwrite Parameter in Do loop
When I attempt to run the following function I am unable to overwrite the $nametocheck variable using read-host. This is passed as a parameter and I want to return it for use in another function. The...
View Articlesilent batch file (no dos window)
Hello All,I'm a newbie...I have found this code in a forum (claiming it would make the .cmd or a .bat run invisible) But I don't how to make it work!!!Where do I paste this code? in the batch file?...
View ArticleUsing a variable in a Powershell search and replace string
Hia couple of days ago I posted a question about doing a search and replace with wildcardsSearch and repalce with WidcardsI got a swift and very helpful answer but now I need to build on it.In a text...
View ArticleLast Windows Update except DefinitionUpdate for Microsoft Endpoint Protection
Heres the scriptSet objSession = CreateObject("Microsoft.Update.Session") Set objSearcher = objSession.CreateUpdateSearcher Set colHistory = objSearcher.QueryHistory(1, 1) For Each objEntry in...
View ArticleHow to determine which week it is in the month in PowerShell?
Hello,I am writing a script that needs to name Excel spreadsheets based on the week of the month it is (i.e. Week 1, Week 2).What would be a good way of doing this? I would consider Week 1 to be the...
View ArticleEvent Viewer Boot performance ID100 etc
Hi Scripting Guys,Another question for you here....I have a script to display boot performance for machines. I have been testing my script on Windows 7 and 8.1 and all works great!We still have a...
View ArticleVBS: Cannot create folder under %systemroot%(C:\windows) in win8.1
I has two scripts to create folder under %systemroot%(C:\windows), It work fine in win7, but fail in win8.1(I had disabled uac.). It also work when create folder under Drive C (C:\Mylogs) in win8.1I...
View ArticleHow do I know if the user is belong to Mail Restricted Group/s? Do anyone...
Hi Guys, Good day, I'm new in powershell scripting. Will someone can help me about my problem?Thanks.
View ArticleNeed help with writing data to file + formatting
I have created a script which the purpose is to grab everyone's mailbox in the environment and list their name, mailbox size, item count, last person to log on, last log on time and when it was...
View ArticleDeleteing folder for multiple users
Good morning all - As most people would admit, I am terrible at scripting in any form. In short, I need assistance with a dummy proof script to delete the contents of a folder for multiple (150+)...
View Articlepowershell script to monitor mcAfee status
Hi, I am very new to powershell. Is there any way through which we may monitor Mcafee update scenario: if its not gettting updated and failing, we shall recive mail that update failed i checked for...
View ArticleSorting array with VBS
I am reading data from file to array with For Next loop. I get the data to array but when I try to pass this unsorted array to bubblesort function I get type mismatch error. I don't understand...
View ArticleHTA dropdown list default value
I have a VBS script that reads values from XML file and creates a dropdown list from those values. Everything works, but I want to automatically choose one of the values as default but still let the...
View ArticleUsing Powershell as COMSPEC
Hi Folks, I am trying to setup COMSPEC as powershell as default interpreter. This helps me to handle the situation if the current directory is an UNC for applications being launched using system(..)....
View ArticleHow to Change the Screen Saver Settings to Mystify in Windows 7 using...
just because jrv asked for it:what specifically was beneficial in your post?continuation of the thread.Bob Blork - Mark as answer if it helped!
View Article