Powershell. Loop through all AD users/mailboxes and run comand on all users/mail
down votefavoriteWhat I need to do is grant one user read access to the whole business exchange calendars. So I’ll need to loop through or create an array of all users using powershell in Exchange....
View ArticleList file permissions that are not inherited
I've got a great little bit of code that I lifted from a technet source which I failed to bookmark...It lists all folders under a root folder that do not inherit permissions. Well it turns out that...
View ArticlePowershell: How to write each name of listed item in between output
I'm writing a script that pulls data from a txt list. When the script is done, it spits out the result to a csv file. However, I notice that it would be a lot easier to read if I could indicate that...
View ArticleUser Termination script question
What I'm trying to do is automate some of the basic stuff I do on termination of an employee.determine which computer(s) the user is logged into reset the user password to an 8 character random...
View ArticlePowerShell command to change display names for Exchange Online Mail Contacts
I need a PowerShell command to fix a bunch of display names for Office 365 Mail Contacts. For various reasons I could not add the display names as I wanted so I did a whole bunch of JohnDoe instead of...
View ArticleScript to get netstat info for 1000+ servers
Hi, looking for a script that would be capable of collecting netstat info for 1000+ servers. Can anyone point me in right direction? I've seen a few old VB examples, but it was basically for 1...
View ArticlePassword Generator Critique
Just because I wanted one, inspired by the recent post, I wrote (stole some stuff from posters in the other topic) this password generator that has a lot of options. I intend to keep it in my PS tool...
View ArticleWindows Forms, pick a folder from network
Hi everybody!I am actually having some fun with a Windows Forms project and powershell.I am creating a script that shows a form allowing to create an ADuser, generate a random password, creates a...
View ArticleLittle help here
I am attempting to loop through our users' home folders and list of files each user's folder and have it print a report listing some details about each file.It all works great...except it's putting it...
View ArticleAdding PowerShell scripts to Task Sequence SCCM 2012
What are the best practices for using powershell scripts with SCCM and task sequences? So far I've read of two methods calling the script from the cmd line in the task sequence and the other is to...
View ArticleWhat was your PowerShell project this week? 5/16/14
Another week gone by?! What was your PowerShell project this week? If you didn't work on too much why not tell us about your "breakthrough" moment with PowerShell? That moment when you "got" it and...
View ArticleWhat are some of the biggest/best uses for PowerShell in Windows 7?
I love PowerShell, but I'm also new at it. I'm a Sys Admin, but my primary role right now is desktops. I actually find myself using more netsh and netuser than PowerShell.What do you think could make...
View ArticlePowerShell or VBS script needed for Windows 8 shutdown button
Hi:I need a simple PowerShell script, vbs script, or even a batch file, that when run will open a message box and ask:"Have you logged off on the in/out board?" With two buttons [Yes] [No]If yes is...
View ArticlePowershell moving one csv file to another server
I want to move one file only coming at 6am daily to move to another server. I have one script but not working as desired . Any input is welcome.$sourceFolder = "D:\test.csv" $destinationFolder =...
View ArticleDeploy PowerShell App Deployment Toolkit script with SCCM?
I've modified the PDT script to add a few registry values, the script works create when I run it locally. However with I try and push the .exe from a package in SCCM. The installation appears complete,...
View ArticleChanging user attributes in AD using powershell (server 2003)
Hi ThereHow would the command look if I basically, just need to update the existing company telephone numbers for all users to a new one? we have about 500 users and manually would take a long...
View ArticleFTP zip files.
does anyone know how to zip files in an ftp site before downloading with cmd or powershell ? I log in i can copy do everything except zip them. I cant call 7zip from inside the ftp. Any ideas?
View ArticleWhat was your PowerShell project this week? 5/23/14
Dude, no way? Another week already?So what dragons were you able to slay with PowerShell this week? Big or small, doesn't matter. I had to tackle a accurate LastLogon Report. On a larger environment...
View ArticleDSC andd xActiveDirectory resource - not quite working
HiI'm working this weekend with the PowerShell DSC feature and some of the DSC Resource kit additional configuration resources (particularly the xAD one!). I am getting some errors when I try to...
View ArticlePowershell and ACL. What the...
Hi everybody.I need your knowledge to get this horrible mess out of my head.I am trying to juggle with ACLS with Powershell, and as far as i go, something is wrong. Maybe a lack of English language (i...
View Article