Populate an array with the results of a loop from a hashtable
Hi guys,I am trying to populate an array with the results of a loop over a hashtable.The scenario is I have a finite number of applications I want to check to see if their GUID is in the UNINSTALL...
View ArticlePowershell Download File from Redirect URL
So, I'm using ADWCleaner as a test, but it would hold true for any redirect...I believe....
View ArticleWhy can't I use a variable for a path?
Hi Guys,I am writing a script that checks the value of a registry property. I first define a path to thelocation in the registry then try to get its value into a variable then test. Here's the...
View ArticleMake each line of a .CSV file it's own .CSV file? PowerShell
I've got a multi line .csv file that I'd like to make separate .csv files for a Create SCCM Application function I wrote. Any ideas?Master CSV files has 20 lines, I'd like to put the header on each new...
View ArticleGrowing influence of Powershell
Hey guys! I have been noticing an increased prevalence of Powershell lately. Do you feel that Powershell is something that admins should have working knowledge of? What do you think SAM?
View ArticleChanging ADUser Password
Hey guys - I have been toying with changing passwords in AD. Text$ResetPwd = Set-ADAccountPassword -Identity (Read-Host "Enter UserName") -Reset This code posted works - however - my question;What if I...
View ArticleHow to ftp a daily ftp folder via script
I need to ftp an Script to cd into newest (dated) FTP directoryI need a script. It needs to log onto an SFTP site and copy a daily directory with the previous dates name. My dir structure on my source...
View ArticlePowershell to search registry
We've recently migrated a fileserver to a new 2012 VM, with the old one now powered off. It seems Autdesk Revit has some settings in registry (favourite places) that point to the old server. This means...
View ArticlePowerShell Remoting or ... ?
So over in this thread I suggested the OP use PowerShell to rename a registry key on 68 computers. Seems he misspelled the key on a program's installer and and needs it fixed.Rename-Item will rename...
View ArticleWhat was your PowerShell project this week? 8/8/2014
Hi folks!Martin9700 is away this week and he's asked me to continue the tradition here of asking folks to post their PowerShell project for the week.To kick the ball off this week, I've had two...
View ArticleCreate Local Users from CSV
Hey everyone,I am having a Senior Moment here. We have a group of 20 non-domain Windows 7 workstations that we have built. I need to create 9 different local account, each with their own password,...
View Articlepiping variable into export-csv gives junk data
I'm grabbing servername and when created from each of our domains then combing that data and trying to output it to a csvexamplePowershell$computer1=Get-ADComputer-filter{OperatingSystem-Like"Windows...
View ArticleConvert XLTX file to PDF in Powershell
I am trying to convert a .xltx file to a pdf. I have managed to accomplish this with .xls, xlsx, .doc and .docx files but I get errors when trying to convert .xltx to a PDF.Below is my...
View ArticleAccount Password and Email
So we are going to try to resolve an issue. We want to create an account for subs so when they come in, they login, still have access to all the classroom software and then access the teacher lesson...
View ArticleResetting Home Drive Permissions PS Script
I have another client with messed up home drive permissions. The root folder had domain users - read / write NTFS permissions, so when ever a users home folder was created, it also inherited this...
View ArticlePowershell script to collect MAC addresses
Hi All,I need a basic powershell script to collect Name, IP and mac addresses from my active directory domain environmentIn detail, script needs to do following;- List AD Computers- Login each...
View ArticleOT: What do you use for version control and sharing powershell scripts
Right now I'm the only person working with powershell on the team. I want to get more people involved and share my scripts and let them work with what I have written and collected. I almost think we...
View ArticlePowershell - CSV - AD Attribute Update
I'm trying to get AD attributes updated with information from my payroll system. I have a good dump of employee information, and can get most things updated, but I'm having some small problems that...
View Articlescript to populate ProxyAddresses and Mail attribute based on the UserPrincipalN
Hi,I am trying to populate the ProxyAddresses AND mail attribute for ALL users based on their UserPrincipalName.Need help with the following:$UPN = Get-ADUser -Filter * |select UserPrincipalName$user =...
View ArticleBadly need help on Disabling AD users using Powershell
Situation:Windows Server 2008 R2 system.We have around 700 AD users that needs to be disabled. HR has provided a list of users (in txt file) in the format of Display Name (John Smith)Since the provided...
View Article