VBScript Form Submission Help
So I'm working with both macro express and vbscript to submit a query on a web tool we have here at work. The macro express side works great and passes the needed variables out to the vbscript as it's...
View ArticleHow to delete a file with size of 1GB using scripts
Hi, I have a script which deletes all the backup files of mine except 1 file which is more than 1 GB. And every other day I have to manually delete those files as the drive is only 600GB. Please advice...
View ArticleScripting - Add computer to AD group
Hi guys, Just wondering if you have any Script or Template that could do the below.The Task During SCCM OS build task sequence; I want to run a script to add the computer account to a group I created...
View ArticlePowershell closing Excel objects with ReleaseComObject leaves dangling posh...
Per this link:http://social.technet.microsoft.com/Forums/en-US/ITCG/thread/81dcbbd7-f6cc-47ec-8537-db23e5ae5e2fthe correct way to avoid Excel zombies is to release all ComObjects in the powershell...
View Articleexecute sql query or sp stored in cell by passing id in powershell
I will pass 10 and corresponding script in script column will execute by opening it in power shell, how to proceedActually I will use Query Analiser and connect power shell--Himanshu Kulkarni
View ArticleSend an email in a shutdown script using batch file that calls an executable
I started out with what I thought was a simple task. I wanted to get an email if my building looses power and when it comes back online. My mail is web based but allows smtp and I have an executable...
View Articlerelaunch from a specified point in case of error in my script
Hello, i have an issue, i would like to relaunch my script from a specified point.In my script people try to put an UNC , if this UNC \"\server\share " is wrong. i want my script detect it and i...
View ArticlePassword expiry notification!
Experts out there !I am running the below script to send out email notification to all AD users whose password is going expire (mainly for the remote users who do not login to domain), below script...
View ArticleVBscript text file items compare
I dont even know if whatI am trying to do is possible, but Ill ask anyway. I currently have a script that pulls Hostname and Ip from a xml document then runs a nslookup on results. the result output...
View ArticleInactive user 90 days to include lastlogin formatting lastlogonTimestamp when...
Search-ADAccount -UsersOnly -SearchBase "ou=Path,ou=To,ou=OrgUnit,dc=example,dc=com" -AccountInactive -TimeSpan 90 | Get-ADUser -Properties Name, sAMAccountName, givenName, sn, lastLogonTimestamp,...
View ArticleEscaping a registry value with -PATH in the name
I'm writing a script to rewrite the default document locations for Microsoft Office. Word 2013 stores the default document path under the following key:...
View ArticleNeed to do auto SnapShot to hyperv machine with powershell
Hello, I need to do every week once a time snapshot to my v.machine and i wnat to do it with power shell and than a task schdular. i have a scrip but i keep geting an error :my script:...
View ArticleUsing ip address list to get arp -a
I have a spreadsheet containing ip addresses, i was thinking of using a script to run each address along side arp -a and take the mac address and add it to the list alongside the corresponding ip...
View ArticleWindows Server Backup Robocopy Script
Hey Guys,I'm trying to do local backups of a server to a Buffalo NAS device on the network using Windows backup on server 2008 R2. Ideally, I'd like to do incremental backups M-F with a full backup on...
View ArticleDelete conflicting objects in AD and keep an ongoing log of what is being...
Hello,I need to create a script that deletes conflcting objects within AD, and then append that info into a log. Below is what I have, however, I cannot get what is being deleted to be appended to the...
View ArticleShortcut Powershell Quirks
Hi I am using PowerGUI and running the code below The C drive entries come out file, path, destination, ownerHowever in the D drive the destination value ($LinkTarget) is mainly empty, because the...
View ArticleCalendar Free/Busy Status
Hi:Could someone please write me a VBA Script for Outlook 2007. Basically I receive many calendar invitations from a mailbox (say 123@xyz.com). Some are for 1 day or shorter. However, many are for...
View ArticleIs there a way to create a script to input large amounts of data into a file...
Essentially I am creating a Map. For testing purposes I would want it to be 200*600 Which is 120,000 tiles that I would like to avoid entering manually :)I want each tile to have 10 variables and the...
View ArticleCreate user script fails
Hi Everyone,I have a power shell script designed to create an OU and then create users inside this OU. The commands for these parts are:# CREATES THE OU dsadd ou...
View ArticleVBScript to import reg file if the machine name=xxx?
Hi,Here is my vbscript which checks the computer name and then it'll run the registry key if the first 3 letters of machine code matches. But unfortunately it's not working. Please help me.....
View Article