PowerShell Renaming a Folder based on User's Rights
So, I need to rename folders within a folder called SHARESIn there are THOUSANDS of use's personal network folders.If user account BOB1 is the owner to personal network folder BOB1 then all is...
View ArticleWanting to learn Powershell
18Yrs Old - Currently a SysAdmin apprentice.As the title says, I want to start learning Powershell. One of the main reasons is because lots of people seem to think it's very useful and can save a lot...
View ArticlePowershell monitor directory use file name as argument
I currently have a powershell script that runs with a user entered argument. I would like to actually have it read a file name, minus the extension, and run the script with that file name. So...
View ArticleAD Powershell > "-AccountDisabled:$false" still lists disabled accounts
I'm trying to run this report to get a list of logon dates for ENABLED users. However, it still spits out DISABLED users as well. What should be changed?Thank you.Search-ADAccount -UsersOnly...
View ArticleSearch for a Date string in AD user description field with a variable.
We have terminated user accounts in an OU that have in their AD User description field various info and a date, like "Disabled - Term 11/20/2015 TM Bla Bla Bla"I have the following code that will...
View Articlepowershell output file name as hostname and move to shared drive
how to set get output file name as host name of computer in powershell and transfer it to a shared drive
View ArticleAdd OU to this
I'm not a PS guy by any means whatsoever, but i like this script. Can anyone tell me how to add OU to this so it exports as a field in the CSV file?Import-Module ActiveDirectory Search-ADAccount...
View ArticleDisplay Script Results In the PS Console
Hi,I have a script which allows me to add domain users to AD groups using their UPN. The script works great but I am now having trouble figuring out how to display the output results of the script on...
View ArticleUsing Powershell To Audit the Active Directory
From a Power shell script I can see when the users where created and whether or not they are active. However, I need to also find out who created the user as there are a couple of admins. Any ideas?
View ArticlePowerShell - Script continue after reboot
How do you all handle a configuration script that can pick up after a reboot?An example would be, building a script to deploy DNS, DHCP, and a few other server roles that usually need a reboot BEFORE...
View ArticleAdding Variable to Read-Host -Prompt
Hi there,Quick question that someone may know the answer to, I have been scouring sources to no avail.I have a simple script for to read input with prompts as follows:Text$Mailbox = Read-Host -Prompt...
View ArticleScript PowerShell: Concatenation....help!
Hello,My environment :I have X files in a directory :file1_OD02.txt, file2_OD02.txt, file3_abcd.txtWhat I need to do :Get the content of every files that have "OD02" in their filename(file1_OD02.txt...
View ArticleGet a foot in powershell
Hi there,i want to learn powershell but i have that one big problem.I don't know a single use case to start something. Sure, i read the commands and what they do. I'm totally into the idea of lerning...
View ArticlePowershell pull First & last name, Samaccountname, whencreated, Groups.
This is what I have but not fully to pull to info the way I want. import-module activedirectory$userlist = Get-Content 'c:\temp\AllUsersSamaccountname.txt'Get-ADUser -Filter '*' -Properties memberof |...
View ArticleSaving Word document as HTML and RTF
I'm attempting to use Powershell to save a copy of a word document as a HTML file and a RTF file. It is not creating the files but also not giving an error so I can't seem to find where I'm going...
View ArticleWhy are my variables dying?
In a Powershell window I get what I want (what I really, really...
View ArticlePowershell script to copy folder...but only if it doesn't exist
Basically what I'm trying to do is copy a directory to multiple remote computers from an input file but only if the remote directory doesn't exist...is such a thing possible in Powershell?Sorry but I...
View ArticleCall script on remote computers by machine name/IP
So here's the deal:We have to audit a large Health Company, and we have the software to do it. But; the company has in-house IT and their AD is kinda stuffed so the GPO we deployed isn't being...
View ArticleScript to get CPU, Memory,Hard drive & uptime status.
Dear AllPl help, Need a script that collect the servers from a serverslist.txt and give the out like in csv file - ( any script ps,vb,batch)cpu usage% or statusmemory usage % & total memory or %c...
View ArticlePulled ADuser list - need to pull out only samaccountname
A novice powershell user i am.....I've pulled the list of users in our AD, but I want to strip out only the samaccountname and not sure how. Here's what I got so far.TextGet-Aduser -Filter *...
View Article