Powershell script to check if a process is running, if not start and send an...
I have a script that has been modified from other forums to check a process and start it if it's not running. After it starts the program it sends and email, I don't know how to get it to send an email...
View ArticleHow to code batch file to run MRT.exe?
I would like to code a batch file to run C:\WINDOWS\system32\MRT.exe in full scan without requesting any information.Does anyone have any suggestions on how to set the option command?Thanks in advance...
View ArticleScavenging on MS DNS Server & Zones using WMI
Hi All,I am current entered in WMI tool to query dns server and change configuration in server & zones. Currently I need to do below changes in DNS Server & Zone level.1. Enable Scavenging...
View ArticleAttempts to write to the same log file within one batch script results in:...
All - I've been trying to setup an automated process on our Windows 2003 server. I'm running this batch scripts:@echo off set CCM_HOME=c:\progra~1\ibm\rational\synergy\7.2 set...
View ArticleSet-AuthenticodeSignature and Remote
I have a simple script that sits on Machine1. The script pulls a certificate from the CurrentUser\My store for codesigning and passes it to the Set-AuthenticodeSignature command. If I execute that...
View ArticleHow can I change my projected display settings with script?
I'm using a DisplayLink Plug and Display laptop docking station to get an additional external monitor on my work machine (running Windows 8 Pro). Most of the time, it works beautifully. However, I...
View ArticleMove files to different drive
Windows 2003 file serverHere is the script: (moves files that have not been accessed for 30 days to the drive E:\backup)get-childitem P:\download -rec| where -FilterScript {$_.LastAccessTime -le...
View Articleftp script into telnet session
I have a script that is supposed to change the format of a TXT for EDI purposes. However It is also supposed to answer O to overwrite the file in the directory at the prompt but does not. Then take the...
View Articlevbscript that queries ldap from non-joined domain pc
Hello,I trying to script out outlook 2010 signatures for my users. I'm able to accomplish this if the user is logged into a pc that is in the domain. However, most of the users do not log into the...
View Articlescript for search and delete folder
Hi,I need script for search and delete particular folder from specified pathe.g : i want to delete 022326 folder from all...
View ArticleUsing VBA or HTA script to input to website with CSV and outputing results to...
1. Scope-go to a website and pluck any piece of information from that website based on 1 piece of data from an excel spreadsheet: I want a simple interface for the program where there is one field...
View ArticleSend-MailMessage : Unable to connect to remote server Line 1 character 17...
After running below code Send-MailMessage -to "c-druparel@pa.gov" -from "c-druparel@pa.gov" -Subject " Test message" -Body " Test message" -SmtpServer" 172.18.183.66"If you run into error given...
View ArticleAdding an array item with += drops custom AliasProperty
Code:$a = @(1,2,3) Get-Member -InputObject $a -MemberType AliasProperty "`nadd AliasProperty 'size'" $a = Add-Member -InputObject $a -MemberType AliasProperty -Name 'size' -Value 'Length' -PassThru...
View ArticleHow to get the Profile Modified date stored as local type and status is local?
Hi,can any one help me with the below:How to get the Profile Modified date stored as local type and status is local from Control pannel-->System and Security-->System-->Advanced System...
View Articlenetwork interface useage
I am trying to nail down a wmi query to monitor the bandwidth useage of a network interface. I have been trying all kinds of things like: Get-WmiObject -ComputerName Server01 -Namespace "root\cimv2"...
View ArticleHow to refine a list to the most recent unique items in PowerShell
I'm sure this has been covered, so my apologies...I have a list where some items may show up more than once, but I just the status of the most recent one.I've tried $list | sort date -descending | sort...
View ArticleNOTE: Script Explorer Cancelled
For explanation, see http://blogs.msdn.com/b/powershell/archive/2013/04/05/microsoft-script-explorer-next-steps.aspxTony Soper
View Articlebatch to copy folders
Dears,I want to create a batch file that copies a entire folder to another location. The batch im using right now ,only copies the files that are in the folder not the entire folder itself and. I want...
View ArticleNeed batch command needed to delete multiple user folder in a Shared directory
Hello, What is a simple method of using batch command to delete multiple directories from a Shared folder. I can get around dos commands but nothing with advanced scripting. The folders I like to...
View ArticlePowershell: Interface to type password
Hello guys.I'm trying to use powershell to show an InputBox to type a password as a Secure String.If I use the Read-Host on Powershell ISE it works, like the print below:But when I run the script, it...
View Article