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

Migration in Hybrid environment

Hi Team,We have a hybrid environment as in, on premises Exchange 2007 servers &  hybrid as Exchange2013.we are in the middle of migration from on premises to cloud office 365. Could you help on...

View Article


Migrating Users and Groups from Windows 2000 server to Windows 2012 Standard.

(I asked this same question in the Migration Forum and they suggested I post it here, so here goes...) OK...let me see if I can get this question out the way I need to.... I inherited a Windows 2000...

View Article


Strange behaviour of read-host

Hello, after some hours fighting against PowerShell (v3.0 in Win2012 and v4.0 in Win8.1) I have found an strange behavior in my script. I ask for a text to the user (using "$text = Read-Host") and I...

View Article

Using a SecureString password in an automated script?

Hello all, I've been having issues getting a secure string to work with an automated script. Basically, a piece of software we use can accept commands via powershell/command shell but requires a...

View Article

New-WebBinding syntax to add SSL binding to specific IIS Web Site

I can't figure out what I'm doing wrong -- to be fair to myself the online support "New-Item" is pretty poor but I am new to this.I'm trying to add an SSL binding to 1 of 3 web sites.  The script below...

View Article


Create profile and set console font

Hi,I'm not really a powershell expert, even though i use it daily. I've been looking into creating a profile to make life easier. So i made a little script to auto create a profile and set the console...

View Article

Match values in Array...

I have the following:$Installapps = get-wmiobject -classname win32_product $Installappsname = $Installapps.name $Installappsver = $Installapps.version $ArrGUID="CDBurnerXP (64 bit)","Citrix","Adobe...

View Article

AD User Creation Error

Hey guys! I've been working on a little project recently and I had a little error, the project is simple, a little program to create users in active directory by clicking on a button. I used that...

View Article


Does a Do While supersede a Do Until?

Hi guys,I have some code the asks the user some questions. The first part of the questions are written in DO Until loops due to the nature of the input required. The next section contains a lot of...

View Article


Help with Powershell - moving files to folders based on date

I have spent about a week on this task, and I know I am nowhere near an expert on Powershell, I am running into a wall.Here is what I want to accomplish - I have a folder with 1000's of files going...

View Article

User information without using AD cmdlets

Hi,Sorry if this has been asked many times before. Is there a way to get user information contained in AD without using the AD cmdlets? We are trying to convert some logon scripts to powershell and the...

View Article

Datatype missmatch with comobject

Hello,I'm new to PS scripting and I'm struggling with COMobjects. Maybe one of you can help me.I do have a comobject:$carsim = New-Object -ComObject carsim.applicationand i can get its methods:$carsim...

View Article

Can not remove an items from an ARRAY

Hello,I'm getting a list of groups that a user belongs too.I don't want "Domain users" or "users" as part of the array. I have tried this scenario below to remove with no luck.What is the best way to...

View Article


Module Function Name Resolution - Issues with DefaultCommandPrefix

Just getting started on module development, running PS4, and I've run into an... inconsistency... that I'm trying to understand. I've got two test functions, Get-Something and Set-Something in a script...

View Article

Transfer COMobject from Visual Basic to Powershell

Hello,What I got in VB:Sub Main() Dim h As Object Dim id As Integer 'integer is data type int32 (4 bytes) Dim test As Integer Set h = CreateObject("CarSim.Application") 'Launch Carsim test =...

View Article


Image may be NSFW.
Clik here to view.

Return Secondary SMTP Addresses that prefix with SMTP

I am running the following command which returns a few properties along with all the secondary addresses. The issue I need to resolve is to filter all secondary addresses which do not begin with...

View Article

get windows key

i'm new to powershell and am looking for a script that can be run remotely against a list of windows server 2008 64 bit, windows server R2 64bit.

View Article


Using Remote Differential Compression (RDC) with PowerShell

Hey Guys,to support our software deployment solution we built up repository servers in each of our bigger locations (35 servers alltogether). These servers keep antivirus pattern repository, software...

View Article

PowerShell Script Module PreCache Ignores DefaultCommandPrefix in Manifest -...

Refer to this thread for...

View Article

Hypervisor - Manged/Remote onto VM's

Hello,I am very much a beginner in using PowerShell, and have come across an IT Infrastructure using Hyper-V-Server 2012 R2 where several VM's have been created etc. The Hyper-V-Server 2012 R2 is setup...

View Article
Browsing all 21975 articles
Browse latest View live