Check if a first name and last name exist in AD.
HI all,I need your help.I've a powershell script that work so fine and that update the "pager" attribut for every user found in temp.csv...
View ArticleStatus DAG database locations
This is a script I wrote to show the status of all Exchange 2010 DAG databases. It displays to the EMS console color coded to see db's running off of Activation Preference location. And it will handle...
View ArticlePowershell script works fine when fun from powershell console, but does not...
I'm trying to run my powershell script from a batch file but I can't seem to get it to perform the same way when doing that.If I run my powershell script from powershell console it works fine, if I run...
View ArticleDeleting all children of home folders in a specific OU
Hi All, I'm having an issue with my code where when I try to delete all the folders within the home directory but not the directory itself it will just delete my script rather than do what it's...
View ArticlePowershell Command to install a MSI with a MST
I am able to use the following commandline to install a MSI with the arguments I want{Start-Process -FilePath "msiexec.exe" -ArgumentList "/i TEST.msi /qb" -Wait -Passthru}I am unable to get the...
View ArticleResize Hyper-V VHD Disk Files with PowerShell
I’d like to think that we plan ahead and build Hyper-V virtual machines with adequate disk space. But sometimes our best plans can quickly fly out the window. Or you might have a legacy virtual machine...
View ArticleAutomated Disaster Recovery with Hyper-V Replica and PowerShell 3.0 for FREE!
Hyper-V Replica is a new built-in feature of both Windows Server 2012 and our FREE Hyper-V Server 2012 products. Hyper-V Replica enables Hyper-V hosts or clusters to enable distance replication of...
View ArticleLooking to create a PowerShell script that deletes everything under all users...
Hi All, Looking to create a powershell script that doesn't delete the home directory from everyone but deletes everything within there home directory and then remap their home directory to another...
View Articleneed to change prompt line
Hi Everybody,I have ran into small problem, I have tested this $PSEmailServer varaible and changed the prompt line "PS C:\Windows\SysWOW64\WindowsPowerShell\v1.0> "I want get back to old line.pls...
View ArticleUsing PowerShell to Get Started in Microsoft Azure
Microsoft Azure provides a whole new way to manage your data. Rather than having to buy expensive hardware, configure the operating system, install and configure SQL Server, you can spin up a new...
View ArticleAnsible Is Learning Windows
Ansible 1.7, which should be released in a few weeks time, will feature Windows integration in "beta" status.Read More
View Articlecompare write time of files
I need to compare a file with today's date. If the file date is today's date then copy file. If the file date is 1 day old or older do nothing. (Get-Item...
View ArticleHow to manipulate multiple files in a folder
I have this code: $whatdate = (Get-Date).Date$today = $whatdate.ToShortDateString()$file = (Get-Item 'C:\pstfiles\file1.pst').LastWriteTime.ToShortDateString()foreach ($pst in $file) {$today -like...
View ArticleTotal MemberOf for a user with -LDAPFilter
Hello,This is my first post in the forum, thanks in advance for your help.So, I need to count the total number of groups a user is member of (including nested), but using the LDAPFilter and NOT the...
View ArticleOverwhelmed. Can someone help me with this?
I downloaded PowerShell 4 (for Windows 7) yesterday and spent a few hours using Google to try to learn from what other people have done. I got a script working to list a set of URLs that had a certain...
View Articleexport ODBC connetctions?
Can I export all ODBCconnections viaPowerShellandimport them later?I need thisforanApp-VProject.
View ArticleAutomating deployments in Configuration Manager with PowerShell
One of the main responsibilities of being a ConfigMgr administrator is to perform application deployments. After you have all the applications packaged and setup in the ConfigMgr Software Library, you...
View ArticlePowerShell – Maintenance Windows and ConfigMgr Console Extensions
It’s been awhile and I’ve been having way to much fun with ConfigMgr 2012. I’ve been working for the last year on large deployment and would like to share some of the items that have made my day just a...
View ArticlePractical PowerShell Part 3: Create Custom Objects Quickly
This week we continue our exploration of what we can do with PowerShell. If you are just joining us, take a few minutes to get caught up.Read More
View ArticleDebugging A PowerShell String
A friend had asked for some assistance with a script that was adding objects into Active Directory. It was failing to create Active Directory groups – “Invalid DN Syntax” was the descriptive message we...
View Article