What's the best way to search for excel files in specific folders and move them?
Hey guys, We have a network drive with the following folder structure:G:\projects\client name\project_number_xx\05_From_Proofreader\filename.xlsxwhere Client name, Project number, and filename.xlsx...
View ArticlePowerShell PowerCamp - Learn PowerShell in a Weekend
PowerShell represents the future of managing Windows, and most SpiceHeads agree it's an important skill. But from speaking at the last two Spiceworlds in London, there is a definite lack of knowledge...
View ArticleSCRIPT to Stop and Start the Azure VM's
Hi Team,I have power shell command to start and stop the Azure VM's without logging into the Azure portal.Here i'm Looking for a Script and want to Schedule it.Every time i can't login to Power Shell...
View ArticleOpen PDF and create log of who has opened
Hi,We have a training PDF that all of our users have to read before a system update. I've been asked to find a way to create an automatic log of who has opened the file. My first thought was to do this...
View ArticleFolder moves + Permissions
Hi, GuysI'm having a blonde moment, but this is something I've put off long enough!!!So, I have two folders:s:\data\transfers:\data\transfer_backup1: At the end of each week, the contents of...
View ArticleMonitor just files in a share?
Hello, I found a script to monitor a share I have for new files/folders and then notify my when they are created. Is there a way to adjust this to not notify upon folder creation and only when a file...
View ArticleAutomate Set-Acl in Powershell
I have found a few articles online, but few has come close to what i want to achieve. Hoping others in this community can help.Me = Terrible at PS scripting (but working on it)I have a folder that has...
View ArticleFiltering Out Output
I am creating an Inactive Users report and want to filter out users that are inactive and are disabled. I want to show users that are inactive but are enabled, if this is clear as mud. I am piping this...
View ArticleRunning bypass from cmd.exe - access denied
I'm running an import-gpo command from a batch file that passes the -bypass command. This script runs a number of other powershell cmdlets with no issue. However when I get to the import-gpos I get an...
View ArticleWhat are your favorite resources to learn PowerShell DSC?
Mastering PowerShell DSC can make you feel as powerful as Captain Picard. We've listed some of our favorite books and courses to help get started, but now I want to hear what's helped you ramp up your...
View ArticlePower shell
How to parse the description field in active directory as a variable Example (Manager) description: Name, Start DATE, Manager
View ArticleLoad Text Files and Exporting as CSV
Ok, I'm working on the next (Powershell) step of my project, and it's been two days again, and I've seemingly hit a wall.So I have these text files, that I've been lucky enough to manipulate in...
View ArticleFinding unused computers w/ PowerShell
I am trying to write a script that will create a report of computers that have not been logged into for a while. I am trying to use the Get-ADComputer command because I see the LastLogonDate in the...
View ArticleActive directory reports
Hi all,I work for a company with several clients and in turn different Domain Controllers. To assist our customers we would like to have a Powershell script that will churn out a document containing...
View ArticleQuestion for the Experts
I've been reading a bit on the bus home about powershell and had in mind that one can nest commands. I then tried something but came up with an error. Can someone explain me why?As get-childitem has a...
View ArticleHelp with Inbox Rules Exchange 2010
We have a very long and complicated inbox rule that basically sends emails to attorney's based on the county and class of crime they work with. This list changes when attorney's get reassigned. I am...
View ArticleConverting Powershell object to an array, Maybe?
I have an array calledPowershell$ProxyEmail="FNLN@company1.com","FNLN@company2.com","FNLN@company1.com"I want to get rid of the duplicates so i use the following...
View ArticleGood solution for removing stale AD objects?
I've been hunting online and found several different ways to remove stale AD objects like users or computers. I'm trying to do a cleanup and get rid of a lot of inactive machines and accounts. I'm not...
View Articlepowershell new-user from .csv file
I'm trying to create new users from a .csv file. In this case I'm trying to set the password to a unique value as well. The command I'm trying is:TextImport-csv .\users.csv | new-aduser -Enabled...
View ArticleChanging script to accept parameters
Hey everyoneI need some help. I have this script that we use to set an IP address, but I have been asked to modify it so that it accepts parameters for the IP addresses, Subnet etc from the command...
View Article