Converting old server time check batch file to PowerShell
Hi Guys,I have batch file that checks the offset between our time servers and two external ones. This batch file works in XP, but not in Windows 7 pro. Where it breaks down is it doesn't display the...
View ArticleConnect to a VM in VMM via powershell
GreetingsI have been looking into the VMM on 2012 commandlet library and I do not see a way to connect to a VM.For example, when I need to see a VM, I go to the console in VM's and Services, right...
View ArticleOdd behavior with ADSI query in Remote Powershell
You would see that when I use a variable to capture the value and echo then it returns nothing. But if I directly echo it, it prints the results. This only happens when I execute the command remotely,...
View ArticlePS modules download
Hello all I'm totally newbie in windows power shell. Please bear with me. I 'm using windows 7 and by default installation, it installs power shell either 1.0 or 2.0. I wanted to use latest power...
View ArticleSet Primary DNS Suffix Using Powershell
For a Windows Server 2012 installation, what Powershell cmdlet can be used to change the Primary DNS Suffix ? I've tried using 'Set-DnsClientGlobalSetting -SuffixSearchList contoso.com' but this only...
View Article.vbs to disable firewall based on OS
I need to determine OS and disable firewall accordingly. Windows xp works, however HNetCFg.FwMgr does not work on Vista or 7 - oh and GPO is not an option - any help much appreciated. (ignore msgbox...
View ArticleVB Script to accept PC names in text file and get registry key value out of...
Hi All,My task: Create VB script to accept PC names from a text file, process each host name to get Registry key value of individual host name and finally export them to a text file or an excel sheet...
View ArticleLog parser query
Hi, I need assistance in writing a log parser query which can read input from a txt file which contains smtp addresses. The query should search for each of the smtp addresses in the input file against...
View ArticleHow to redirect output of the RUNAS command on a logfile ?
Hi,i would like to redirect the output of the runas command to a textfile (not the output of the application used in the runas but really the runas output like "Error 1326 : Bad password or...
View ArticleUpload PST files to FTP server
Hi Guys,I am trying to search the computer for .pst files and then upload them to a FTP server but I am running into issues.$ftp = "ftp://url/EXTERNALS/temp/" $user = "ftpuser" $pass = "passw" $files =...
View ArticleCreating Excel using C# in SSIS Script task.
Hi Guys,I need to dynamically create an excel (with rows and columns) from a script task in a foreach container and just send an email to a group..Can anyone guide me on this..Thanks in advance...
View Articlevb script - Run uninstall from 32 bit or 64 bit
Hey gang - I have an issue that maybe someone can help with. I know very little about scripting. I have this script running on XP and Win 7 machines using 2 separate scripts with different paths...
View Articlepwdlast set to email reminder
Ok I have a powershell script that grabs the password last set for all users along with the username and puts it in a csv file. I have vbscript that reads this data so far. I am needing to take this...
View ArticleDealing with speech marks in batch files
HiI have a batch file that processes files in a given folder. It takes the folder path as a parameter (%1) and then processes certain files within that folder. My problem is that the folder parameter...
View ArticleGet-ADObject command run as "Network Service"
I've got a real simple get-adobject script, that simply lists all my users who are persons. (Included below). I want to run this as "Network Service", but I can't seem to get it to. I'm using the...
View Articlecombine two windows_onload in HTA
Hello,I have 2 VBscript that I have combined into a HTA that has over 2,500 lines. The HTA works perfectly from joining to domain, install printers and software, etc. The issue I am having is that both...
View Articlefind machines with service running
how do I find a specific service running on all my servers on my single domain?I tried get-service -computername (get-qadcomputer -searchroot "ou.......") -displayname servicenamebut it failed when it...
View Articlehow to change other smtp address?
Exchange 2010 sp3, Win2k8 R2 ADmy proxyAddresses contain several email address:SIP:12345@acme.com SMTP:Bbunny@acme.com smtp:Bugs@somedomain.comi can change the primary SMTP address because there's a...
View ArticleGet-counter doesn't work after reboot in the script.
Is there a bug with Get-counter for remote machine where it won’t collect data after reboot? $server=“server01”try {$TQRS1= (Get-Counter-ComputerName$server-Counter"\DNS\Total Query...
View ArticleSending an sms from email by using VB Script.
Hi,What is the Vb code to send sms via gmail or any othwe email system.Thanks.
View Article