SCCM cdosys send mail vbscript WinPE 4.0 errors
I in my SCCM 2007 environment could use cdosys.dll and vbscript to send mail. I have all the same files and the same script when I run the script I always get the Error " error in loading dll:...
View ArticleUse CSV and batch file for net user command
Hello Guys,I am trying to load domain user id's from a csv file and parse them through the net user /domain command. I would appreciate it if someone could help me open the csv file and store each...
View ArticleNeed help with an AD powershell script to copy telephonenumber field to...
So what would a script look like if I wanted to filter AD for null iphone fields and if null copy the telephonenumber field to IPphone?
View Articlescript to move computers from one ou to another based on os
hi thereI am looking for a script to move computers from specific ou to another based on their OS.thanks
View ArticleGUI for Exchange Tasks in PS
I would like to push out to our HelpDesk a means of checking Exchange servers such as Get-MailboxDatabaseCopyStatus but with a GUI front end as a stand-alone applet, for example, that would also...
View ArticleBatch File Rename Using CSV
Hey Guys,I have several folder that each contain 500-2000 files. In each folder I have a csv file that contains two columns with the headers current and new.Columns A contains the current name and...
View ArticleFiltering Mounted Drives and Reporting Freespace
Hello all,Writing (what should be) a relatively simple script in Powershell, in fact the first useful thing I've tried to write, and I'm running into a few problems. Ideally, this script should get a...
View ArticleUnable to catch error in function
Hello all, Lately I have decided to write some functions because I copy/paste a lot of my VBS code. Functions should make it easier to recycle written code, but I'm having troubles with catching errors...
View ArticleParsing Log file with PowerShell
Hey Guys, I have the following line in a txt file (log file) 2012-08-14 18:00:00 [ERROR] . Exception SQL error 1 2012-08-14 18:10:00 [ERROR] . Exception SQL error 22012-08-15 18:00:00 [INFO] . Started...
View ArticleParse LogFile Using PowerShell
Hello, I am new to PowerShell, and trying to parse Log file for the most recent [ERROR] keyword . Content of my log file is as follows[ERROR] 2013-12-23 19:46:32[ERROR] 2013-12-24 19:46:35[ERROR]...
View ArticleExporting Last Logon Time
I had a script that export the last logon time:Get-ADUser -Filter * -Property LastLogonTimestamp | Select SamAccountName,@{Name='Last Logon';Expression={$_.LastLogonTimeStamp.ToString()}} | Export-CSV...
View ArticleVBS objshell.AppActivate doesn't work with Windows Task Scheduler
Hi all,This script do the following : Open Adobe Flash media Live Encoder with an encoding profileActivate the Adobe Flash... WindowSend enter key to start encodingSet objShell = WScript.CreateObject(...
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 ArticleDelete users profile with exception.
Hi Guys,new guy here in line with scripting... would you be so kind to help me to acquire a single script to delete profiles. with below requirement?1. script should not remove any profiles starting...
View ArticleHow to monitor websites live or not using Power Shell 2.0?
Dear, I am new to the windows power shell. I want to learn power shell 2.0 .i wanna to write the sample script to monitor the websites up or down within 15 to 20 min of time and how to take backup...
View ArticleForeach Loop
Iam trying to input a list of machines to a foreach loop and the loop should process only one machine at a time.Consider the below loop. Say the variable $machinenames has the Values:-ComputerA...
View Article2012 Powershell DFS Cmdlets under 2008
Hello Scripting Guys, I'm working on 2008 DFS and I need the Powershell Cmdlets to automate some DFS tasks, such Cmdlets come available under Windows 2012, which is PowerShell version 4. I installed PS...
View Article(SYSPREP) Computer Rename script with pre-define prefix using drop list...
I would like help from the community to create a script to rename a computer for sysprep the following format example is below. The script to needs to have a predefined characters at the beginning...
View ArticleMove User OU with permission condition in memberof
I need to make an appointment within any memberof in my domain and move this user with for another OU with a condition. For exemplo: - If my user this Group Domain Admin move for determinate OU. - If...
View ArticleWrite-Verbose is quick or Get-Member is slow?
HelloI have some trouble with Write-Verbose.When I use Write-Verbose with Get-Member. I see something like this:PS C:\Users\masalov\Desktop> Get-Content .\temp.ps1 [CmdletBinding()] Param ( )...
View Article