Powershell to Enable "Protect from Accidental Deletion" on ALL OU's
Howdy folks...The client I am currently working with has partially set the "Protect from Accidental Deletion" attribute on their AD...I want to extend this feature to ALL organisation units (OUs) in...
View Articlefind list of local Administrators in all server of domain
Hi Team,I have around 1000 server running in my domain, I need to find out Member of local administrator in all the servers of domain. do we have any script which can full fill my requirement....
View ArticleHow to Compare 2 CSV file and store the result to 3rd csv file using...
I want to do the below task using powershell script only. I have 2 csv files and I want to compare those two files and I want to store the comparision result to 3rd csv file. Please look at the...
View ArticleNeed help with writing comments before executing function
Hello all,i have below code i need to write comment before executing function. [Parameter()][string] $Backuppath= ( write-host "Enter Backuppath"Select-FolderDialog ) ,# (read-host "Enter...
View ArticleAD ACE Script
Hi,Powershell formatting... I have an incredible headache. Anyways, what I'm trying to do seems easy enough, but I've just spent hours on trying to format it correctly.We have a ton of mail enabled...
View ArticleMerge XML
I have split up what is going to be a very large amount of XML data into multiple files for long term maintenance reasons. However, I need to combine all this information into a single XML object for...
View ArticlePossible to run advertised programs with Powershell
Hi all so where I work we re-image the machines about every 6 months typically we log into them, go to control panel and select from 2 images (advertisements x64 or x86). My question is could I...
View ArticleAppend a top line to multiple txt files
Hi there, I have to manipulate txt files in powershell and I may not be very good at it... so any help is welcome ^^ I've got multiple files in a single folder. They are exports from a DB and are...
View ArticleRemove all groups from one user
I need a Powershell script using native or Quest cmdlets to remove ALL groups from a user in AD. Now here's the catch, the user is a member of groups from 3 different trusted domains in a single...
View ArticleCreate a child or subdomain in a field or domain
I am trying to create a child or subdomain in a field or domain in Windows Server 2008 R2 SP1.ps>powershell.exe -noprofile -command "&{ start-process powershell -ArgumentList '-noprofile -file...
View ArticleRun 5 commands in parallel using scriptblock
Hi,I have an array of 10000 commands that I want to process through an application, but only 5 commands in parallel at the same time. So I will take 5 commands from the array $arrCommands, then run...
View Articleproblem with the powershell pipline parameter process
Hi, I'm confused with the pipeline processing of object-property-parameter association.Here my Cmdlet example Function test-psboundbug{ [CmdletBinding(DefaultParameterSetName='Parameter')] param(...
View Articlecreate a child or subdomain in a field or domain in Windows Server 2008 R2...
I am trying to create a child or subdomain in a field or domain in Windows Server 2008 R2 SP1 using Powershell.ps>powershell.exe -noprofile -command "&{ start-process powershell -ArgumentList...
View ArticleFetch the data from sql server table to array
In the following script i am fetching the servers details from text file. Please anyone help me to get the same information from sql server database table. with using this query"SELECT DISTINCT...
View ArticleI have to merge two csv files into 1 csv and then export out the related...
I have 2 csv files that have data as per below that I want to import into excel using either PowerShell or a Visual Studio 13 code to merge the data from the imports into one excel sheet. or even to a...
View ArticleFind a user in an array and output that line of the array
HelloI have 2 arrays.1 is Users (actually they are local admins on a server) aka $LocalAdmins Jack Joe JillThe other array contains 3 columns, one of which is usernames aka $NTResultsUser...
View ArticleHelp Searching GPO XML
Good afternoon-I'm trying to search all of the GPOs in my environment for "NT AUTHORITY\Authenticated Users" in any User Rights Assignment section. We need to implement a forest-wide authentication...
View ArticleFilter/ Variable Question
Why can I get results onscreen with this code:## Generate List of all users in Password Change Lockout Write-Verbose "Generating List of users in Password Change Lockout Group" -Verbose...
View ArticleExchange 2010 Picture Upload using Remote Powershell
When I first setup Exchange I cobbled together this Powershell command to upload pictures of the employees to display in outlook. It runs fine when I am logged into the server and open the EMS, paste...
View Article