Powershell people I need help
I need an easier way of creating a script that finds the following information. My boss would like all users listed by department. So I use Get-Distribution because the department distributions have...
View ArticlePowershell Parameter Sets
It must be Monday. I am writing a new Powershell script (well updating an old one) and I wanted to use a feature I have never used before. I wanted to use Parameter sets, but for the life of me I...
View ArticleI want to learn powershell...
Dear scripts spiceheads, Need some advice where do I start if I wanted to learn powershell? Google offers many sites but I'm looking for easy-to comprehend tutorials. I've been seeing lots of useful...
View ArticlePowershell and Connection Closure
#Create Time Stamp $time = Get-Date ForEach ($server in (Import-CSV 'C:\output\servers.csv')){ #Test the port by checking to see if it is open and listening write-host 'Testing connectivity to SQL...
View ArticleGetting installed software from OU
I know there are tons of forums on the net on this topic, I have been google-ing for a few days, but nothing does exactly what I am looking for. I am trying to query specific computers in an OU for...
View ArticlePowershell Script to Send File to SFTP
Hey everyone. I need to be able to automate a task with Powershell.. I need a file to be uploaded to an SFTP every 60 minutes. Can anyone help me out with this? I am a powershell newbie.
View ArticleNeed to convert 35,000 .txt files from UNICODE to ANSI/ASCII
We rec'd a batch of unicode files that we need to load into Summation, however, they have to be converted to ANSI/ASCII. I seem to have found a way to do it one file at a time using powershell, when I...
View ArticlePowershell help getting file details
I need help trying to figure out how to access the the details tab on a file's property from powershell. I've tried using get-itemproperty command, but I'm not sure how to access the details tab
View Articlepowershell 3 cmd new-aduser fails to update certain fields
New-Aduser creates the user from CSV but fails to update some of the fields like Office,office phone,fax,street address, mobile no etc.
View ArticleSet hidden system folder to normal
We recently used DFS to replicate folders off a server. Two out of 10 folders were created as hidden system folders. I have searched and found the following but it does not help: Get-ChildItem |...
View ArticlePowershell Scripting to make a simple backup solution (remotely)
I am currently working a simple but yet easy backup solution and having a bit of trouble here with my script. Client has 1 physical server running Server 2012 core. on that server there are 2 VM's a...
View ArticlePowershell - specify multiple values for -notlike ?
Hi, I have a shutdown script as below. As you can see I've filtered out servers but we also have tablet computers which use VPN. I would like to specify an addition -notlike parameter to rule out...
View ArticlePowershell: Passing arguments and parameters to elevated window
Good day all, I'm back again with another question. More of an issue really. I am essentially using the Start-Process to start another powershell process with elevated credentials. I am also passing...
View ArticlePowershell script to read user names from a txt file and export AD data into csv
I want to have a script that will readt user names from a txt file I have and then get user name, department and email from ad and put it in a csv file. please help me with that I will really...
View ArticlePowershell Script to copy certain Files
I am working on an upgrade for some weird software and I need to write a script to move certain files that I choose to certain locations. Example: Server A with all Pervasive DB files. I need to move...
View ArticleNeed Powershell DHCP Script Assistance
I have two individual scripts that result in the information I need. How do I combine the two scripts so I can export it to .CSV? Script #1 Get-DHCPServerv4OptionValue -ComputerName (server name here)...
View ArticlePass Powershell variable run as creds?
I'm working on developing a powershell profile and have to right click and run the powershell with my admin creds. I also have a variable $cred start in my profile that requests my admin creds to use...
View ArticleQuestion on passing variable created from a Get-Childitem output
Good Morning, Happy Holidays everyone. I have an issue I am trying to work out with a script I am writing to help with my daily tasks. There is a log file that I want to get the contents of and pass...
View ArticleYour Own PowerShell Pocketbook ideas?
Since I've started using powershell more often I've created a notepad txt file that saves all my most use commands for a quick reference. I'm curious what other methods people are using to create...
View ArticleGet-Member of a Group for Certian Users? Powershell
I have a list of 14 users that I'd like to see if they are members of a specific group in AD. I have the below command that tests a user and their groups., but I'm not sure how I could use it to...
View Article