how to run bat in vbscript when the bat parameter will be set by another program
for example c:doe22doe22.bat %input file% %weatherfile% where %input file% %weatherfile% are parameters. I need a vbscript, say runbat.vbs. which can be executed by command something like:"cmd /c...
View ArticleScript for the status of "check for updates" for a remote server along with...
Hi,I am looking for a script ( VBA or PS) to check the windows System & security update status for a remote computer with last reboot time.means return value should have: Updates Status:"WINDOWS IS...
View ArticleCheck Registry Value exists Remote Computers
I have the below code which checks the registry for a specifc value (Hotfix_778101), I need to get it to read a list of servers from a txt file and check on each of the servers whetehr the value...
View ArticleParse and return multiple strings from log files and export to .CSV file
Hi All, I'm trying to parse the following log file and output to a .CSV file. The log file is created by a utility called ROIScan which is created by MS for Office reporting.I need to search for...
View ArticleConvert PDF to Word
I have a PowerShell script that converts Word documents to PDF. Now that Word 2013 can read PDF's directly and can then save the PDF as a Word document, is there a way to do so in PowerShell?Thanks...
View ArticleRUNNING POWRSHELL SCRIPTS FORM DOS BATCH SCRIPT
Hi,How can I call a powershell script from within a DOS batch script ( . bat ) file ?ThanksIreshad
View ArticleLooking to modify the below vbscript to provide input through text file
Hi,Looking for some guidance on the below vbscript that i tried from the internet ,the vbscript that I am trying is a one which delets the currently configured SCCM boundaries from WMI and eventually...
View ArticleDesired State Configuration Package Resource
I feel as though I'm missing something stupid here. After watching the presentation on CH9 about this, and reading through the TechNet library (http://technet.microsoft.com/en-us/library/dn249912.aspx)...
View ArticleUsing New-Item with credentials
I've not found the help I need on this one. I'm attempting to create a folder on a remote machine using the IP address and using credentials. The sniplet I have is:$username = 'user\someuser'...
View ArticleHELP: Enumerating Files in folder -> RegExp-ing special patern file names
Hi everybody. I’m Testing this piece of Jscript code: Function enFilesInFldr(folderspec){ var objFSO = new ActiveXObject("Scripting.FileSystemObject"); // FSObject var f =...
View ArticleUnable to import-module in Powershell
Running Windows 7 X64. Installed Windows 7 RSATWhen I try to import grouppolicy module, I get the following error:The specified module 'grouppolicy' was not loaded because no valid module file was...
View ArticleRenaming a User Account Does Not Automatically Change the Profile Path
Hello guys,When you rename a user account in on a computer that is running Windows 7, the user profile path is not changed automatically. It may cause some confusion when the %SystemDrive%\users folder...
View ArticleIn PowerShell, Get/Set timestamps on Reparse Points are inconsistent - bug or...
If I read the CreationTime property (or other timestamps) on a Reparse Point I get the CreationTime for the Reparse Point; but if I write it, the target is updated, not the Reparse Point. Is this a...
View ArticleHow could I validate CSexported XML file to parse by Powershell ?
I used the below script to change CSexported data to csv file. http://jorgequestforknowledge.wordpress.com/2013/02/08/parsing-a-csexport-generated-xml-file-into-a-scoped-csv-file/ One xml worked fine....
View ArticleAccessing website with certificate authentication from Powershell
I am using powershell script which sends xml message to a web service and to send data it needs to provide certificate for authentication. I have got this to work if I just have one cert under...
View ArticleConverting existing cert to code signing cert
I have a cert but it is not listed when I run the following command. How do I convert a regular cert/key pfx file to code signig cert so that I can sign powershell scrtip.Get-ChildItem -Path cert:...
View ArticlePowershell Output Formatting in SQL
I'm trying to retrieve Citrix licencing information and then write that info to a sql database for reporting. Let me start off by saying that i don't know much about power-shell, but that i have been...
View ArticleRead file from text in vb script
Hi i have a vb script Option Explicit Dim objADObject, strOwner, objSecDesc ' Specify the owner. strOwner = "MyDomain\jsmith" ' Bind to the AD object. Set objADObject = GetObject("LDAP://cn=Test...
View ArticleLaunch script powershell from cmd
Hi Everyone!!First of all thanks for all the support that you provide!! I've read in the forum but I couldn't get anything about the following issue:I have a scrip called "test.ps1", this script...
View ArticleHow can I launch a VBS script for keyboard presses starting from a program...
(Windows XP/7) If I create a shortcut of my VBS script, it doesn't follow what I programmed with vbs. If I launch it with a double click and navigate back to the target window during my builded-in wait...
View Article