Powershell script to get all users with there Security Group Membership
i got one powershell scriptGet-ADUser -Filter * -Properties DisplayName,memberof | % { New-Object PSObject -Property @{ UserName = $_.DisplayName Groups = ($_.memberof | Get-ADGroup | Select...
View ArticlePowershell script: Need to remove users in a single OU from all groups.
Text$MyDomainDisabledaccount = [adsi]"LDAP://OU=ZZ Disabled Accounts,DC=domain.com" $disabledaccounts = $MyDomainDisabledaccount.children foreach ($userObject in $disabledaccounts){ foreach ($group in...
View ArticleHappy Holiday's!
For those that follow it, Merry Christmas!! I'm having a blast with the family as we wrap gifts (and I pretend to peek out my door so my daughter can catch me).For everyone else, I hope you have the...
View ArticleFree PowerShell eBook from Packt Publishing - 22 Hours Left
Windows Server 2012 Automation with PowerShell Cookbookhttps://www.packtpub.com/packt/offers/free-learning
View ArticleOutlook won't format PowerShell HTML
Hi guys,It's 2AM on boxing day and for some reason I'm trying to get this script to spit out a pretty table in Outlook 2013, but no matter what I try, PowerShell just chucks out HTML in the email...
View ArticleDynamic Content in PowerShell Email
Hi guys,Is it possible to have PowerShell check the content of Get-ChildItem to see if today's date is present within the output and have it print 'Success' but if it doesn't find the date, print...
View ArticleDFS Monitor With History and Email Module
The script is based on Martin http://community.spiceworks.com/scripts/show/1536-dfs-monitor-with-history , thanks again to Martin.And just add the Email module, that will send one alert email for each...
View ArticlePowershell or any sript to get Team Foundation server permission for all users
help me to create a Powershell script to get all users (Active Directory) permission from Team Foundation sever ,i created a C# application but its not good ,or any SQL query to acheive this ?
View ArticleHappy Holidays!
For those that follow it, Merry Christmas!! I'm having a blast with the family as we wrap gifts (and I pretend to peek out my door so my daughter can catch me).For everyone else, I hope you have the...
View ArticlePowershell script to rename computers
I'm in the process of swapping two computer labs. The powers that be decided to move a general purpose computer course into a functioning CAD lab. Of course, the people who used the CAD machines have...
View ArticleTime Skew Powershell Script
Hi All,I have scoured plenty Google search results and have yet found one to help me in resolving the issue I am having. To begin with, let me explain what I am attempting to accomplish here and maybe...
View ArticleConvert to HTML the out of Powershell plain text
I have been working on a Powershell Script that generates email of the Windows backup event and attach the problem is the format it looks bad.Subject: Computer name status [backup was successful]...
View ArticleHelp updating Active Directory VIA powershell
Hi guys,I've been tasked with figuring out how to update AD users VIA Powershell. I know there's a way to do it VIA csv file, however I don't really know where do start. Do I need to import certain...
View Article* in a Month of Lunches 50% off 9-10 hours left.
I just picked up Powershell Toolmaking in a Month of Lunches. I was waiting to catch it on sale. All off the * in a Month of Lunches are 50% off for the next 9 or 10 hours....
View ArticlePowershell Remove Contact
I Am trying to remove an AD contact by filtering.this is what I have but it is not workingPowershellRemove-MailContact-Filter"Alias -like 'Delete*'"-Confirm:$falseCan i use get-mailcontact then pipe...
View ArticlePowershell ISE hanging when using forms
Hey there!I have a problem that really annoys me on this Windows 10 computer... When I create a Powershell script within Powershell ISE that uses a Windows Forms, ISE hangs randomly when I run the...
View Articleset aduser account to expire
I want to set AD user accounts (20-30 users) to expire 10 days or at 1/10/16. I kept getting to input identity and won't continue:Text$date = get-date $ou = "OU=Users,OU=PMD,DC=contoso,DC=com" $names =...
View ArticleAdding Users to AD
I am new to PowerShell and was browsing for a script to use for fun and to understand scripting. I stumbled uponCraigSCCM's script, and I had some questions about it before trying it. His script is as...
View ArticlePowershell and Long File Paths (deleting of)
For anyone encountering issues where powershell cannot delete files beecause the path is too ling (stupid 260 character limit), Boe Prox has an article on the Hey Scripting Guy blog about a solution:...
View ArticleFinding last Login on missing systems.
I am in the process of doing an inventory of the systems we have. AD is not as updated as it should be and I have a few missing laptops. Some of our users take them home to work from home. I was...
View Article