7 reasons why you should learn PowerShell
As a technical college teacher I’m always changing up our program to give my students the best chance of landing good IT jobs. Because of this, I have been pushing PowerShell as a must-have skill for...
View ArticleHelp Make Script better
Hello Experts,I have written a script to stop anti-virus service on few servers. Everything's working as expected. I wanted to get your guy's input on how I can make this script better or if there...
View ArticleUpdate the hypen attributes in active directory using powershell command
I am using below command to update the hyphen attributes in active directory for 2003 Server Native.However, I am getting the error while updating the hyphen attribute.Command :($ADUserPath =...
View ArticleIgnoring blank fields of csv file
Hi, I am new to powershell and I need some help if you are kind :)I have one script for adding users to my AD and I want to import a csv file. The script is working, but I want to add one user to more...
View ArticleException calling "Add" with "1" argument(s): "This row already belongs to...
Good afternoon Powershell.com !I am trying to automate some paper based processes using Powershell. We already had in place a Powershell solution where the output was an Excel Spreadsheet, but for...
View Articleunderstanding how to add Export-CSV into a script?
Hey Guys,S0 I managed to figure out how to Get-Content from a file. but Ive looked at many examples of Export-CSV and I just dont know where it should be inserted int the script to work..? if I can...
View ArticleRemotely Querying a key on all user's registry on multiple machines
basically what I want to do is run a query on all machines within an IP range to find a registry key from each user on each machine, all the machines are on a domain which I have domain admin onit...
View ArticleGet a list a users from a group, then get all of those users group recursive...
I am stumped on this.. I am close I just cannot figure out how to get the recursive group membership for the list of usersHere is what I am doing, but I have tried this several ways$group=...
View ArticlePowershell and Plink
Back again Being that I am new to powershell; I am trying my best to learn it and to get my first function to work completely.I have this fuction; it does complete but somewhere I must have went wrong...
View ArticleInvoke Command not reading a parameter
Hi thereI'm just testing a section of my script whereby i want to eliminate hard coding a version folder and pass something like thisLogin credentials are passed in the script from another XML so that...
View ArticleTrying to invoke script from two levels up
I need to execute a script that is in a path structure that is two folders up (back) from my current location. I can not move either script. I have tried invoke-expression -command ".\<script...
View ArticleInstallation of Software's using SCCM from Service-Now
Trying to atomize the Installation of Software's using SCCM from Service-Now. written Powershell Scripts which run in the Firewall and connects to the SCCM Server. But we are getting the following...
View ArticleHidden Object Properties in PowerShell
Q: I understand that some objects have hidden properties in PowerShell. How can I see these hidden properties?A: To view every property of a PowerShell object, use the following command:Read More
View ArticlePowerShell tips for building objects with custom properties and special...
I’ve been building a number of scripts that query information using PowerShell.To create those, I used some PowerShell tricks to make the output look just like I wanted. This post is a compilation of...
View ArticleHelp!! Passing listbox items to display in textbox
Hi, I am having trouble with the passing listbox items to display in a textbox.Firstly Please create a folder on called C:\Test and add a couple of .txt files in the folder. When executing the below...
View ArticleAdd an additional window with question
Hello to all, i am a beginner in powershell, maybe you can help me.This script opens a window where you can enter a licensekey, and this key will be written in a certain Reghive....
View Articlework with windows files
Hello, i am new in Powershell. I Need very urgent help. i have to convert files "RC_*.zip" from a Windows Folder with a Java script with a foreach Loop. I do this with one file in a dos Batch file and...
View ArticleAdding PowerShell Script to Primalform
I am trying to add a PowerShell script into a PrimalForm GUI and seem to be having difficulty getting it work. The script allows you to update Active Directory description on multiple machines listed...
View ArticlePass variable into Invoke-Command for remote execution
I am trying to copy a file on a remote computer by executing a script on my local computer. The -Path and -Destination need to be variables.This work:Invoke-Command -ComputerName $server...
View ArticleTrusted Sites in Internet Option
I am using the following, in a batch file, to add a trusted site to the internet options security tab trusted sites area:powershell -Command "& {set-location...
View Article