Quantcast
Channel: Windows PowerShell forum
Browsing all 21975 articles
Browse latest View live

Invoke batch file on remote host

Dear allI'm fairly new to PS so my understanding of the concepts might not be profound.My task appears fairly simple, yet I struggle finding the right syntax:I want to remotely execute a scrip file.To...

View Article


Prerequisite Check Function with PowerShell

I'm trying to create a PowerShell script that will ultimately perform an action against a list of servers.  But for now I'm just trying to create a series of prerequisite checks before performing the...

View Article


Image may be NSFW.
Clik here to view.

How set-aduser to modify the AD attribute "Telephone Number"

Hi,Does anyone know How set-aduser to modify the AD attribute "Telephone Number" ?

View Article

Remove-Variable in Script

Hi,Can anyone help me explain whats wrong in the following script.  I do not understand why the value in $ActName create some sort of array and still exist if it's go through the functions.The...

View Article

Powershell chat within network

Hello everyone, I'm trying to figure out how I can make a simple IM chat with only Powershell.I was thinking about using txt files to put the text in and read that out live. When I searched for live...

View Article


Windows Server 2012 AD-DS can not be configured or uninistalled...

Good Afternoon everyone, I am currently trying to promote my 2012 Server to a Domain Controller but when I am at the first step in the setup I get the Error Message (German, Original Message):...

View Article

Reading data from inside a script

I need to make a script to install a number of features after a server has been built but I want to use one file, the PowerShell script itself, so I don't want to use an input file.  Is there a way...

View Article

How to upgrade from powershell 2.0 to 3.0 on a 64bit machine

I have a requirement to upgrade Powershell from 2.0 to 3.0 on a 64-bit machine. I have few queries on this one.1. Do i have to completely uninstall 2.0 before i upgrade or the current 3.0 would be...

View Article


Unblocking PSM1 files not working

This may apply to other PS extensions, but PSM1 files is what I was working with.  When I unblocked them, I was able to apply the change without any errors.  However, when I returned to the properties...

View Article


Pass varibales from Ps1 script to xmla file

I have power shall script  that runs the xmal script  I need to pass the $Cube and $DatabaseId  variables to xmla file to run on the cube. I can pass the $(DatabaseID) in .bat file. can I do it in...

View Article

Image may be NSFW.
Clik here to view.

Help with Reading XML file

Hey guys,I am trying to read a XML file from PowerShell and store the data into an array/variable from the tags of the XML.Here is the XML content.<?xml...

View Article

Batch Scripting For loop and Delayed Expansion

Hello, I am trying to write a simple (so I thought) batch file to take some IP's and tell me what is online.  I want to give it an list of IP's, and have it return the...

View Article

Sort Dictionary

Hi guys!I've got this problem: i create a dictionary like this:$Dic=@{Name="Alex,George,Nicole,Lucy"; Age="28,32,23,35"}i want to sort values like:$Dic=@{Name="Nicole,Alex,George,Lucy";...

View Article


How to create a user profile in remote machines remotely?

Hi,I want to do load testing with the concept of Powershell remoting. So, my scenario is like, I'm having a set of remote machines which I want to access from my local machine(which I would like to...

View Article

Query Single User is Okay - Query from Array and I cannot get it to work -...

Hi All,Trying to query the property of "ActiveSyncAllowedDeviceIDs" from the cmdlet "Get-CASMailbox."I can get the short script to work with a single-user account, but cannot from a list of users in an...

View Article


Test-Path of remote machines

Hey all. I have been studying Powershell for a little while now and I am just starting to get into scripting with it, both as a hobby and at work so please excuse any ignorance. I was asked to try and...

View Article

Can I create a website with multiple bindings with new-website?

Seems that the New-Website command only lets me specify an IP and a Port.  Is there a way to specify other bindings at the same time?Specifically I need to setup a website with one IP using port 80 and...

View Article


Running a script from ISE is different than running from the console window

Can somebody explain why this script provides a different result when executed from ISE than when executed from the console window? # ---- begin code block ---- cmd /c "echo Out to standard error...

View Article

Send Email via Outlook

I always have my Outlook open. When I send email by using the following, it will open another copy of Outlook. Is there a way for the following to use the current Outlook process instead of running...

View Article

Cannot connect to remote computer Both computers have Windows 7 and Powershell 3

Hello everyone,I am new to powershell and trying to connect to a remote computer within the same network. I am trying the following,Get-Service -computername compname and Get-Service -ComputerName...

View Article
Browsing all 21975 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>