Pulling out only the information needed...
All,I have a CSV file that has the following data: az12345, "cn=az23456,ou=stuff,o=company,c=co" az22345, "cn=az23456,ou=stuff,o=company,c=co" az32345, "cn=az23456,ou=stuff,o=company,c=co" ETC... What...
View ArticleStrange Behavior for 'Remove User Group Membership'
Hello all, I have completed my first attempt at a PS script to be used for terminated users. One of the last tasks in the script is to change the value for 'HiddenFromAddressListsEnabled' object to...
View ArticlePowershell Newbie Question
I have only used powershell as needed in the past, most of the time with script GUIs and when I had a lot of time to figure it out. But, today I am really pressed for time and need to provide a...
View ArticleDisable Internet Detection on Adapters
We don't want certain servers on our network to have have access to the internet. They are placed on private subnets with no routing to the internet. All of the interfaces for these servers show a...
View ArticleBrowsing .NET Framework Classes
Some tools seem to make it extremely easy to find WMI classes and properties I can read, modify, etc. I use WMI CIM Studio, WMI Explorer, and a couple of others. My question is, in sample code for...
View ArticlePowershell Compare Files Script Help
I am having a problem with a powershell script I am trying to write. I want to compare multiple .txt files to a master .txt file. If the user are in the master .txt file remove it from the .txt file....
View ArticleExport-CSV not working as expected
I'm running a script to remotely grab installed software from the registry. (I like this method over "Get-WmiObject win32_Product" and other methods.)I really want the computername to be the first...
View ArticleQuery user account in Child domain
We have a forest that we manage with several child domains under us. I would like to be able to pull a list of all the users in a given child domain at a given time with a simple PowerShell script. I...
View ArticleCan somebody help me export this script to TXT or CSV?
I've found a script that I'm using to discover all members and nested members of a distribution group. The script is great, but I can't seem to find out how to export the tree view results to .txt or...
View ArticleHow do I remove multiple items from a array in powershell
Hi,I have a problem where I would like to create a list of letters which will be in items in my array and if they are remove them from the array. For example letters like 'test' and 'new'.So here is...
View ArticleSet a flag
I have a script that is performing a tak in a loop. I am generating an email and would like to somehow set a flag across the whole script that can identify if one instance of the task has failed.Would...
View ArticleAdding the Users in a group through Powershell
Dear All,We have to import all the Mailbox enabled users to a Universal Distribution group and have to import all the Newly created Mailbox enabled user to the same group.I have got the following...
View ArticleUICulture "en-GB" and the "update-help" issue: why do I recieve en-US updates...
Yet (November 2012) there are not other helpfiles except the files for "en-US" culture. I noticed some weird behaviour running british Windows 8 PCs. Can someone explain this? a) update-help .. does...
View ArticleAccessing a web service using certificate authentication
I have a web service that requires certificate authentication, and I would like to call it using PowerShell.If I export my certificate to a pfx file, I can access the service with this...
View ArticleHow to create a GPO that implements a logon script
Using the Powershell Group Policy module it seems the only way to add a policy to a GPO with using its equivalent registry value. What if I want to add a policy for a logon script? Is there an...
View ArticleStatus Monitoring - elseif statements
Hi All,I have written a script to ping servers every hour and return with results. These in turn can be used to justify the course of action to be taken by the script. It was working at one point, but...
View Articleget-eventlog | get-member confuse
Hi,why can not Iwrite the following command get-eventlog | get-memberto see properties ofthe object eventlog ?On the other hand, I can writeget-service | get-member.nesher13
View ArticleDoes PowerShell Support Find?
I am using PowerShell on Windows Server 2008 R2 and Windows Server 2012. In both instances, when I try to use the find command, I always get this:FIND: Parameter format not correctFrom within...
View ArticleHowTo Remove Context Menu Handler with powershell
Hi,I'm trying to remove some Context Menu Items with a Powershell script. Therfore I'd like to delete the following registry Key:HKLM\SOFTWARE\Classes\*\shellex\ContextMenuHandlers\7-ZipRemove-Item...
View Article