Powershell cmdlet for Windows Firewall rules.
Windows Firewall with Advanced Security has rule groups (i.e. "Remote Desktop" group of rules) and profiles (Domain, Private, Public).To enable a certain rule group via powershell you do the...
View ArticleHelp Sending Email
Hello,I use the below script for sending email which is very sucessful, but i have 2 problems for which i require help.1.) If there is no attachment the script sends email which i want to avoid it, if...
View ArticlePowershell commands for Lync 2013 in Office365
Is there anyone here that could help point me in the direction of how to reset a remote users status with PowerShell? (i.e. A user sets their status to "Off Work" and forgets they're set that way for...
View ArticlePowershell script in XML to find folder size and file size
I have checked the powershell script posted herehttp://community.spiceworks.com/scripts/show/1738-get-foldersizes?page=2 and tried to use it but my requirement is slightly different. The objective of...
View ArticleSearch-Mailbox: deduplication switch?
I have been trying to find out how to do a search-mailbox command to find emails with a particular name during a given year and it works just fine, but I want to run it with deduplication enabled. You...
View ArticleHelp me split huge XML with many Doctype and XML declorations using powershell
I have multiple xml docs that were compiled into one. The files must be broken into individual XML documents, by splitting them apart at the XML declarations and/or DOCTYPE declarations. I hear this...
View ArticleGood tool or script to show AD groups, the users in them, and the shares attach?
In a hurry and trying to do too many things at once...I need a powershell script or even a AD adaware tool that can generate the following results:All AD groups, the members in each group and the drive...
View ArticleRequire a script to find the computer objects in multiple domain
Hi All,I have around 150 Windows servers to which I need to find out if these exists in AD or not.The problem is I have around 10 domains and I need to find out the servers exist in those 10 domains...
View ArticlePowershell Send-MailMessage (Or SMTPClient) Protocol Error with Exchange 2010
I am attempting to script the sending of some e-mails to external recipients, so I need to authenticate with the Exchange server. Using either Send-MailMessage or SMTPClient. I get the following...
View ArticlePowershell and Exchange
I would like to export some contacts i have in an OU in my active Directory and make these contact mailusers ( NOT USERS with a MAILBOX) I have the following lines in powershell but can't seem to get...
View ArticleWhat was your PowerShell project this week? 3/28/2014
Hard to believe another week has gone by!What was your PowerShell project this week?I recently helped someone run an equivalent to the DU command in Linux in PowerShell. Their version was taking over...
View ArticleScript to set route
OK so I messed up pretty bad here, and I'm hoping someone can help me. I do remote tech support, and had a user who was unable to get out to the internet. For some "brilliant" reason I decided to...
View ArticleAdd a single user to multiple SharePoint groups via PowerShell.
Hello.I have a steady stream of tickets that ask me to create a new user and copy over 5-15 groups from an already existing user to their permissions. These are unfortunately SharePoint groups, and not...
View ArticleSetting up switches in the PARAM section
Going along with my scripting project of the week, I'm trying to write a script that will query each network computer's WMI and report back their respective results. I'm trying to make my scripts at...
View ArticleUser Custom Attributes
Hi,I have enabled two custom attributes for User property - Employee ID and Medicare. When i do query using get-aduser it's not showing custom attributes in a result.
View ArticleSet permission and ownership inheritance problem in Powershell
Hello!We're having a problem with this script. When we run it without the ForEach-loop it works fine and sets the permissions and ownership on the folder, subfolders and files. But when we add the...
View ArticleOPen File Dialog Box in Powershell
I have a script that gets a text file that has a list of PCs, pings them and exports to a csv. All this works fine$file = Get-Content "c:\Powershell\PingPC.txt"$Output2 =...
View ArticleNeed a script to move files into folders
i have over a million files in a folder. files names are as...
View ArticlePowerShell script to remove the Password never expires in AD to users in a file.
Hello,We recently moved off of Novell and are now using Active Directory only, before Novell was taking care of our password policy but now we would like AD to. First we need to remove the Password...
View ArticleError when running powershell script to update Telephone numbers
Hi all!I'm wondering if someone can help, I'm trying to import and replace telephone numbers in AD via a Powershell script from an exported and updated CSV file.The script I'm using is:Powershell1 2 3...
View Article