A simple powershell script to bulk rename files in a folder in Windows 7
In this post I'm showing you how to buld rename a set of files in a folder. I'm using a powershell script to do this.Read More
View ArticleMicrosoft Virtual Academy: PowerShell M03
Today I continue forward on my goal of completing Microsoft's Virtual Academy's PowerShell 3.0 training.Read More
View ArticleIdentifying Active Directory built-in groups with PowerShell
Built-in groups are predefined security groups, defined with domain local scope, that are created automatically when you create an Active Directory domain. You can use these groups to control access to...
View ArticleReview Database File Properties with PowerShell
One of the things a database administrator needs to keep track of is the usage of the file systems where the database files are kept. One of the features of the Windows operating system is the...
View ArticleRemotely query user profile information with PowerShell
The PowerShell script discussed in this article will help you in querying for information about Windows user profiles on remote computers. The script returns user name, profile type, and in-use status...
View Articleget-adcomputer question
im trying to allow the ability to type partial names into the read-host prompt... example to type in "hsc123" but get all computers with the name hsc12301, hsc12302, hsc12303, etc. I am a newbie when...
View Articlequery network speed on all devices in specific OU
Need to query adapter speeds for all devices in specific OU following works for my device but need to report on all devices in...
View ArticleScript help for GPO
I have a powershell script that I am using as a computer startup script to install Lync 2013 and it works fine, here is my issue. I created a test OU and applied my GPO to that OU I also created a...
View ArticleScript for alarm and music
I was hoping someone could help me find a script that was an alarm (say for 7am) and would start up wmp and start randomly playing a song. I would appreciate if anyone could cash in any ideas, I find...
View ArticleHow to highlight a cell in Excel a certain color?
I found this code online and it works perfect. $erroractionpreference = “SilentlyContinue” $a = New-Object -comobject Excel.Application $a.visible = $True $b = $a.Workbooks.Add() $c =...
View ArticleWant to delete (60) Disconnected mailboxes in 2010
We have moved over 60 mailboxes in exchange 2010 to another mailbox database. The original mailboxdatabase now has over 60 disconnected mailboxes. We want to delete the mailboxes now and not wait for...
View ArticlePowershell.exe As Elevated?
I am running a command from the run line on the start menu, but when it runs the script, it says:Warning: To preform some operations you must run an elevated Windows PowerShell console. powershell.exe...
View ArticleRunning job on remote computer as scheduled job
There seems to be times and reasons why running a powershell command or script on a remote computer as a scheduled job is a neccesity. I have been trying to come up with a way to do this on all my...
View ArticleImport users from CSV file
Hello,I'm trying to import users from a CSV file into AD.This is what I've got so far:Import-Csv .\test.csv | foreach-object { New-ADUser -Title $_.UID -Surname $_.Surname -GivenName $_.GivenName...
View ArticleThe server threw an exception. (Exception from HRESULT: 0x80010105...
When I use PowerShell to call Office Word Com Object the exception occured.$:word = New-Object -ComObject 'Word.Application'$word.Visible = $true$doc = $word.Documents.Open($File)$selection =...
View ArticleNot reading variable properly when script run from the shell.
Hello,I think this is probably something I'm doing incorrectly.I'm doing a simple script to send an email with the Net.Mail.MailMessage class. This is because with that it's easy for me to construct...
View Articleis Powershell like Perl?
Sorry for the simple question. Seems I can't use my Perl oneliners at work anymore... but I can use Powershell... So before i try to learn it.... So.. can i use powershell to write one liners that...
View Articlecan't delete a file
This code works when I run it against my local computer. $packageID = Read-Host remove-item c:\temp\tmp\remove\$packageID.* remove-item c:\temp\tmp\remove2\$packageID.* The file $packageID.* was...
View Articlemodifying mapirecipient with powershell
I would like to set the mapirecipient field from $True to $False for a contacts in Active Directory ( These are contacts and are not mail enabled) by loading the Exchange shell I can get the...
View ArticleNeed script to run for each site then create site report then email to site...
All I'm currently having issues with combining multiple scripts into one. What I need is to run my script against each site ou then create the site specific csv file by site name then email it to the...
View Article