E-Mailing a attached document
I am trying to e-mail a script for expiring passwords. I have that script all setup and was going to have it send a email to me with a csv file of everyone on the list. I have that done so my question...
View ArticleReg Query and OpenRemotebaseKey
Hey everyone,I have been trying to set up a script that would check the registry Uninstall branch for certain programs listed and have been failing with the same error messages each time. The script is...
View ArticleVBscript parameters on eventid 4625
Hi,I am new to Scripting advance stuff so i have started a script using Vbscrip, which i would prefer to do and not a powershell script.i would like to get 2 parameters from the event id 4265 (Account...
View ArticleHow can multiple computers needs to restart automatically after windows...
I created the following batch script on a fresh copy of Windows 7 system for installing Windows updates and rebooting automatically. -------------------------Batch File-------------------------------...
View ArticlePrinter and network drive not mapping
I have created a domain in win2008r2 server,and created a GPO for printer and share drive mapping.In event veiwer am getting the below error(The user 'Dell Printer CN clour laser jet' preference item...
View ArticleUnresponding internet explorer
hey, so i was trying to script myself some bot for a daily routine actions on this soccer simulator and i encountered a problem- as im trying to log into my account it somehow doesnt fill and send my...
View ArticleAdd IP show to script
Hello !I'm trying to integrate a IP show on this script , can anyone help me please?Best regardsstrcomputer = inputbox("Enter Computer Name or IP") if strcomputer = "" then wscript.quit else 'ping...
View ArticleEditing a script to show last password change for disabled accounts.
get-aduser -filter * -Properties whencreated, Enabled | Where-Object {($_.Enabled -eq $False)} | Select-Object name, whencreated, Enabled Here is the script I have,I would also like to add a column to...
View ArticleCatching particular WMI exception
Hello AllCan someone please help me with the following question.I am trying to be more specifc when catching exceptions if I do the followingGet-WmiObject -ComputerName Server1 -Class Win32_PowerPlan...
View ArticleRun Multiple scripts using MS script control
Hello Can anyone help me to run multiple VB scripts at the same time using the same instance of MS Script control ???
View ArticlePopulate a pulldown menu (dropdown listbox)
Hello,I am in the process of creating a HTA. I need to populate a pulldown menu from a collection of subfolders. In other words, I need to populate a pulldown with the names of the subfolders. I...
View ArticleUsing DOM DocumentFragments to update HTA Listbox using VBScript
Hey, Scripting Guy!I followed -> http://blogs.technet.com/b/heyscriptingguy/archive/2005/08/15/how-can-i-dynamically-populate-a-list-box-in-an-hta.aspx?CommentPosted=true#commentmessage to...
View ArticleHow to set a script to output into ascending or descending order
I am using this script and I would like PasswordLastSet to be in oldest password set to newest password set. Is there a easy way to do this or should I put it into a csv file and then do it in excel?...
View ArticleRegistry key check failing in Win 2003, works fine in other OSs ?
Hi,My script does the below;-takes a registry key input as a parameter from user with option k-checks if the registry entered exists than exports that into a text file.-if registry key doesn't exist...
View ArticleInstalling SQL Server 2012 remotely via Powershell using Invoke-Command
I am trying to perform a SQL Server 2012 command line installation using Powershell Invoke-Command on Windows 2012 Datacenter.The code I am using is as follows: $ret = Invoke-Command -ComputerName...
View ArticleScript to find Event ID xxx in system Events
Script required to find event id 1206 in system events.
View ArticleProblems with modifying an object attribute via Powershell Script
Hello,I'm trying to take a list of email accounts and modify their employeeType field based on their classification. I have 3 scripts, 1 for each classification and 3 lists of email accounts in CSV...
View ArticleGet-WinEvent time-stamp filtering not producing desired results
I am trying to filter events via the following commands to get specific logs from the last 24 hours:$EventLogFilter = @{logname='ForwardedEvents'; id=4771,4625,4768; StartTime=(Get-Date).AddHours(-24)}...
View ArticlePowerShell 3 ISE in Remote Desktop - scripts tries to execute when hyphen...
I make a remote desktop connection into my dev PC from my main PC.I've noticed that from within the PowerShell 3 ISE command line, if I specify the name of a ps1 script file and then press the hyphen...
View ArticleWindows Back Up Notification Mail
I am able to send mail on sucessfull backup and failed backup, but need to attach all details that is available in details tab of Eventviewer in logs of (Microsoft-Windows-Backup). Bala
View Article