Script to Clear Outlook Auto-Complete Cache (2010)
Hey Spiceheads, looking for a super simple PowerShell script to delete the Outlook 2010 Auto-Complete Cache on my local computer. Yes, I know this can be done from the GUI, but I want a script, so I...
View ArticleRunning PS ISE as Admin
I added Start-Process powershell_ise -verb runas to my ISE profile thinking it would start PS with elevated permissions.Now when I open ISE it continues to open new PS windows without stopping so i...
View ArticlePowershell missing ADComputer cmdlets
Started the videos mentioned in http://community.spiceworks.com/topic/934838-goodbye-cmd-hello-ps?page=1 and in the 2nd video they are showing how to search help, using get-help G*Adcomputer*On my...
View ArticleRestart-Computer from AD query Get-ADComputer
Powershell$pcnames=Get-ADComputer-Filter{name-like"*server*"}|ftnameecho$pcnamesname----WINSERVERserverRDS-SERVERTSERVER01The above works fine and prints the expected output. However, the below errors...
View ArticleNesting If statements
I wanted to get feedback on if this is possible. I've created a function to uninstall some programs. I'm not going to post the whole thing but I wanted to see if this seems like it will work. Due to...
View ArticlePS Script
Hi Guys, I'm new to powershell scripting and I need some help.I'm creating a simple script that will get Basic PC information and I can't seem to get the output file to a text file. attached is the...
View ArticleImporting users to AD from a CSV
Hello,I have a CSV file that contains a list of users we want to migrate onto a new environment.In the file is the username, first name and last name.Does anyone have a script that will import the...
View ArticleScript to find files created in the last 24 hours?
I need a batch file or PowerShell script to be able to find .wav files created in the last 24 hours from a particular directory. Also would like to then export it to a text file. Thanks for the help.
View ArticleHelp with my powershell script Comparing two folders
Here is my powershell script$fs1 = Get-ChildItem -Recurse -path "C:\diff\left" $fs2 = Get-ChildItem -Recurse -path "C:\diff\right" Compare-Object -ReferenceObject $fs1 -DifferenceObject $fs2...
View ArticleOffice 365 migration
Hey guys, I am very new to PS, I have a project at work that I need some help with. I am trying to archive everybody's outlook at once, then have a new pst file created, and then copy EVERY EMAIL into...
View ArticleNew-MailUser, or New-Mailbox
I wrote a VBS script a feew years ago to create new AD user accounts. That was when we had Exchange 2003.When we moved to Exchange 2007 the part of the script that created the mailbox stopped working...
View ArticleNeed help with powershell script being called from a batch file
Here's the setup:Installing OSSEC on multiple machines on a domain running from a 2003 server that utilizes no group policy with no plans to implement gpo (not my decision). I have automated the...
View ArticlePowerShell GUI WPF/Xaml: Need help updating the form in real-time
I've been banging my head on this for a bit, and Google gives me just enough to frustrate me without actually showing me a solution that works, so here goes:I've built a WPF/Xaml based GUI for my...
View ArticleAdding multiple users to multiple AD groups
Hi,I'm having some difficulties with Add-ADGroupMember cmdlet.When I manually write the following command to Powershell I have no issues with...
View ArticleFile Copy Script?
Hey all, I need to transfer a dozn files from one of our servers program files folder to around 40 client PC's System32 and syswow64 folders. So naturally doing it manually is going to be a cumbersome...
View ArticleRemoving contact(s) from AD group
Hey Everyone - I need to remove a specific contact (not user) from an AD group.Currently I am using get-adobject to find the CN of said contact. It is as...
View ArticlePowershell: Search data in text file and export to CSV
I am trying to gather a specific number from a text file, then export that number to .csv.For example, I have a text file called: log.txt under C:\data. When I open the file, It contents the words "...
View ArticleReplacement Shell for PowerShell
Ever looked at PowerShell.exe and wondered why Microsoft hasn't updated the shell? In years? Looked longingly at your Linux counterparts and their advanced shell capabilities? ConEmu goes a long...
View ArticlePowerShell help.
Yes I know, I know.. I need to learn PS to make it out here. I was wondering if someone could help me get a script together to take ownership of a registry and delete it. I been attempting to get it...
View ArticleExport group members, but have department information as well.
Greetings All,So I am fairly new to Powershell and I am finding my way slowly but surely, however this one task has me stumped. I can easily export all members of the one group using the following...
View Article