Quantcast
Channel: PowerShell General
Browsing all 10624 articles
Browse latest View live

i need script for List all domain users of a specific OU

i need script for List all domain users of a specific OUKindly help me ASAP.

View Article


Retrieve User Information based on CSV File

I am trying to do the following -1. Import a CSV file with LastName, FirstName2. Match the User Account based on LastName3. Export the same user with Title in AD and also Account Status - Enabled or...

View Article


Import user from a csv file to field department

HyCan somebody help me I have a csv file inside I have Samaccountname and department and I would like to put the information in the AD for everyusers I have in my csv fileThanks Nathalie

View Article

Export empty fields

Hi everybody, I have to export the users who don't have anything in the department field ? How can I do this please?Get-ADUser -Filter * -Properties * | Select-Object -Property...

View Article

Export user where the name is not the same of the givenname

Hi I want to export the list of my users but only the one that don't have the same givenName and the sn. Because I have generic users so I don't want them in my list Get-ADUser -Filter * -Properties *...

View Article


Pre-Windows 2000 name ??

I used this command to create a bunch of new groups.$machine = get-content "C:\MyStuff\Citrix.txt"Foreach ($line in $machine){   new-qadGroup -ParentContainer 'OU=Vendor_Citrix,OU=MHH...

View Article

Create computer accounts from csv

Hello my first post here looking for help creating multiple ad computer accounts from a csv file. We also need a specified password set using the accountpassword field.  Would anyone one have or be...

View Article

To receive email alert when each new PC join to Domain

I need a script for receive email notification if there is a PC joined into Domain Please help.THanks

View Article


Image may be NSFW.
Clik here to view.

Powershell script to Install Certificate in Active Directory store

Hi Everybody!I'm trying to write a powershell script to install a certificate into the active directory certificate store,Here are the steps to do this manually, any help would be greatly...

View Article


Server Logon and Limit Windows Explorer

New guy here, We have a server 2008 R2 (32) which is a domain controller, we recently switched from open storage (6 raid-5 drives in the server) to closed storage (removing the drive) every night. I do...

View Article

Query AD for users and email report on schedule?

Hi ExpertsI am a newbie and I have to create a report that I setup as a scheduled task so the report can be emailed to specific people weekly.I'm stuck with using get-qaduser because it's a windows...

View Article

AD user query loop

Hey guys,I'm trying to loop through a list of users and find the associated accounts in AD. Some of the names are not complete though, so I have to append a wildcard to each of the names. I found out,...

View Article

Copy user groups of user to another user

Hi,I have this so far but its obviously incorrect somewhere. Basically I need to export user groups of one user into a variable then add them to another userThanksImport-Module...

View Article


Excel attachment does not exist

Following up on a previous article, we have a Windows Server 2008 R2 server where the Excel attachment isn't being attached.  If I send a CSV file, no problems.  However, when I try to schedule the job...

View Article

run sql scripts using powershell

I am creating powershell script that will execute sql scripts stored in some folder one after other and if any sql script failes to execute then it should stop at that time and catch that error (Please...

View Article


Transaction log size report

Hello everyone.I have a script that runs to get transaction log size. It runs, produces the output file.However when it runs it does produce errors in the ISE.I will include the script and then the...

View Article

sql and get-command output

when I type ps c:> help SQL > c:\sqlcommandlist.txtget-command - name *sql* > c:\sqllist.txtI get two different outputs ...Can someone educate me about this...

View Article


PowerShell Custom Object Data into SQL Server Table

Trying to populate a SQL table with contents from a custom object. The custom object will write to an out-file if it is just a text file. However, I want to take the results in the custom object and...

View Article

Changing recovery model on SQL Server 2000 DB

I'm trying to write a script that will be run as a scheduled task a couple times a week.  It will check the RecoveryModel property on the various databases, and set them to simple if they have changed...

View Article

SQL query help (cross-posted in GENERAL)

Guys,I have the following query which runs successfully inside SQL Management Studio. I would like to be able to use powershell to loop through a list of users and run this query per user (using...

View Article
Browsing all 10624 articles
Browse latest View live