I am trying to stop the wuauserv service on remote computers, do some other processing and then restart the wuauserv service. I am having problems getting the service to stop and restart. I ...
I have a script that searches the file system for a string then if found copies the file to a destination directory. these parameters are in the ps1 file. I want to be able to put these parame...
Hi there,
I just wanted to have a file search on my machine and external device with only the extension like ".xyz".I know i can easily search using dir on each drives but it is not effici...
Hi there,
I have to analyse the members of the local Administrators group on 500+ of servers. I want to do that with powershell & WMI. So I found the Win32_GroupUser Class for this query - ...
am using psexec with powershell 1.0 to excute a script that will give me the version of Adobe Acrobat reader installed on my workstations.
Reference: http://www.leeholmes.com/blog/UsingPow...
Hi,
I am trying to create a script so I can export my users mailbox statistics to a txt file and e-mail them to my helpdesk guys each night as a scheduled task. We have had instances where ...
I am trying to write a script that logicaly does the following:
Gets all Unique Employee ID within AD and output to a CSV - tick
Get the data from an HR database dump in a format that I ca...
Hello,
I am working on a script to import users into AD from a CSV file via PowerShell. Now the following code works:
$OuDomain = "OU=Teachers,OU=Staff,OU=Alumwell Users,DC=Alumwell-s"
$C...
I am attempting to create a Powershell script (without using Quest commands) that bulk creates users that are not mail enabled and are added to a security group in AD. The script uses a CSV f...
I have attached the code below. The code returnes a list of keys, I am now having problems returning the values of each key. I need the "display names" of each regkey returned.
Also I would...
Everything about this script works great.
Here's the issue.
When I check the NTFS Permissions for Domain Admins it has only "Special Permissions" checked and nothig else. So why does this ha...
hi All,
I am trying to work out how I could could create a text file with employeeid's that are used more than once in a domain. So if employeeid 11111 was used 3 times and 11123 was used 2...
Hello Powershell Experts,
I would like to create a powershell script that allows me to get a list of installed programs on a remote server. In researching this, I think the best option is ...
Hey Everyone,
The end goal in my script is to create a Task Sequence variable for SCCM so that the task sequence sets the correct time zone information. The PowerShell script below works fi...
I have exported a CSV file with two columns, sAMAccountName and AccountExpires, from a separate database (not AD). For each user in the file, I want to compare it with the users in the Active...
Hello,
I know how to retrieve displayname, totalitemsize and sort by totalitemsize. For instance:
Get-Mailbox -resultsize 2000 -OrganizationalUnit ad.buffalo.edu/ITORGS | Get-MailboxStati...
Hello
How can i use powershell to rename a computer name and altso the computer name account in Active Directory ?
Hi guys,
How do i export the output of below ps1 to csv? I want the code to run within this ps1 not a separate ps1 script.
I know we can use Export-Csv, but i'm not sure how to put it in m...
Hello experts,
I am looking for a way, using PowerShell, to obtain a list of all RDP sessions on a Terminal Server. I would like it to be like the list you can find in Terminal Services Ma...
Hi,
I have the script below (that actually Chris Dent had created) and I need it to do a few further things..and was wondering if you could help to do the following.
I have a CSV file pas...
Thru some recent experimentation (having not used Powershell very much) I found the following code produced the most consistent directory listing for my needs (Everything lines up just right s...
Within an MS PowerShell Script.. How can I share an existing folder on a remote server?
Hello,
i need to find users DN with a csv liste of users name. So i have they's name and i want to find the DN. I have to do the LDAP root search becacause users are not on the same OU. This ...
Hi,
I am having a hard time iterating over a powershell
where i have
$arr = "C:\windows","C:\Program Files"
$hash = @{"arr" = $arr}
then i want to pass this as a parameter to anothe...
Greetings Experts!
I have a list of users in an Excel spreadsheet. Column A is the fist name. Column B is the last name. I need to take those two bits of information, query AD, and get t...