Quantcast
Channel: Windows PowerShell Forum
Browsing all 2562 articles
Browse latest View live

Unable to Add a member to a group

Dear All,We have all the domain Controllers (Parent and Child Domains) in Windows Server 2003 with Service pack 2 Operating System. I have Installed Powershell Version 2 in one of the Root Parent...

View Article


Unable to Add Users from a Child Domain to a Group

Hi All,We have a root domain (XXX.COM) and Twenty Six Child Domains (a.XXX.COM,b.XXX.COM....) we have to add all the users with Mailboxes from the child domain to a Distribution Group (All_Users) in...

View Article


Adding 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 Article

PS performance - is there a working memory default /limit in a shell? CPU...

thank you in advanceroys99

View Article

WPF Data validation in Powershell

Hi I am using Powershell 3 to create a WPF GUI (using XAML code) and so far I have been able to create the form as I need and everything works fine. I was looking for data validation (specially in text...

View Article


Image may be NSFW.
Clik here to view.

Large Mail Senders with exclusions

My ProblemWe have email archiving enabled for all users in our Organization, i.e. any email you send/receive outside or inside my organization will be sent to archiving server at DELL.Below is a cmdlet...

View Article

need to read a comma delimited file into a hash table as fast as possible

i have a 40K lines text file like:012345678,012345I want to read it directly into a hash table so i can later easily resolve any ID (012345678) into any code (012345) and i got a bit lost..tnxroyroys99

View Article

Where can we file bugs/feature requests for Powershell? (Long)

I'm in the process of writing a PowerShell script that will change text in a script (from " to ') and then append text to the beginning and ends of each line. The actual code of the script isn't...

View Article


System.Windows.Forms.TextBox : user account query receive error

Dear Expert,Please assist, receive error in window form while query user infoAdd-Type -AssemblyName System.Windows.Forms $Form = New-Object system.Windows.Forms.Form$objTextBox = New-Object...

View Article


PowerShell RegEx for PCI Data

I am trying to search through a drive for potential Credit Card data.  The below script will use Regular Expressions to search the "C:\Test_PCI_Data\" folder, and then output matches to a text file...

View Article

How to merge data from two hashtabes with different types of data

I've been working on this one for a few hours and I am out of ideas, am hoping someone here had dealt with a similar issue. My problem is I am collecting data from two sources, one source is...

View Article

Export data from sql to CP1250 encoded file

Help me Scripting Guys!I have an SQL table and I need to export data in CP1250 encoded file.I tried export-csv, out-file but I can't export in this code page. Is there any option to my problem?My last...

View Article

Powershell 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 Article


List ActiveSync users and their partnerships

 have done some searching and I try to use this script but keep getting this error message: Expressions are only allowed as the first element of a pipeline. At line:1 char:107+ get-casmailbox -filter *...

View Article

How to find the recent modified file with time using the power shell script

Hi All,I have some 'n' number of files in one folder.For example in my system in 'C' drive assume that I have folder1 in that folder I have test1.log , test2.log , test3.log .........test1.log modifed...

View Article


Search AD account for entire domain except on OU

Hi everyone,I would like to use PS to search for all disabled accounts in the domain except for one OU; how can I modify below for this? Search-ADAccount –AccountDisabled –UsersOnly –SearchBase...

View Article

Including XML data in Output File Name

I am using the following powershell script to extract data from a SQL database and create an XML file.  I want to use the data in the "Job" XML tag in the filename of each file being created from each...

View Article


Syntax Question

Hello All,I came across this syntax online and was wondering how exactly this works "SID= '$($OriginalUser.SID)'" which is part of gwmi win32_UserProfile -ComputerName testboxcpc -filter "SID=...

View Article

isql call unable to open input file

I am making a call with Sybase isql. It works from a standard command prompt but fails in Powershell. The SQL file is a simple "select count" for now.Command Prompt:H:\>isql -SSomeServer -USomeUser...

View Article

How to ask a hash table inside a hash table

I have the following code which works but I would like to write to the output the users DN but I cannot work out how to access the imbedded hash table. Can any help me with this simply fix :)$usersou =...

View Article
Browsing all 2562 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>